83
edits
Tag: 2017 source edit |
|||
| Line 79: | Line 79: | ||
*Edit the file and make the following changes in the code: | *Edit the file and make the following changes in the code: | ||
# | #'class pdf_cyan extends ModelePDFPropales' to 'class pdf_mycompanyblue extends ModelePDFPropales' | ||
#'$this->name = "cyan";' to '$this->name = "mycompanyblue";'. | #'$this->name = "cyan";' to '$this->name = "mycompanyblue";'. | ||
#'$this->description = $langs->trans('DocModelCyanDescription');' to '$this->description = $langs->trans('DocModelCyanDescription');'. | #'$this->description = $langs->trans('DocModelCyanDescription');' to '$this->description = $langs->trans('DocModelCyanDescription');'. | ||
| Line 88: | Line 88: | ||
# 'models' => 0 to 'models' => 1 | # 'models' => 0 to 'models' => 1 | ||
# Save file. | # Save file. | ||
* Activate your new module | |||
Now the template will be available in the list of models in the admin settings of proposal. | |||
Now the template will be available in the list of models in | |||
Test this model (see previous section) before going further. | Test this model (see previous section) before going further. | ||
==For a new module== | ==For a new module== | ||
edits