Create a PDF document template: Difference between revisions

Jump to navigation Jump to search
Tag: 2017 source edit
Line 81: Line 81:
#'class pdf_cyan extends ModelePDFPropales' to 'class pdf_mycompanyblue extends ModelePDFPropales'
#'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('DocModelMycompanyblueDescription');'.
#Save file.
#Save file.


* Edit the file custom/mymodule/core/modules/modMymodule.class.php and make the following changes in the code:
*Edit the file custom/mymodule/core/modules/modMymodule.class.php and make the following changes in the code:


# 'models' => 0 to 'models' => 1
#'models' => 0 to 'models' => 1
# Save file.
#Save file.
* Activate your new module
 
*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 the admin settings of proposal.
83

edits

Navigation menu