Create a PDF document template: Difference between revisions

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' to 'Class pdf_mycompanyblue'
#from <nowiki><syntaxhighlight lang="PHP">Class pdf_cyan</syntaxhighlight></nowiki> to <nowiki><syntaxhighlight lang="PHP">Class pdf_mycompanyblue</syntaxhighlight></nowiki>
#'$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');'.
#Save file.
#Save file.
* Edit the file custom/mymodule/core/modules/modMymodule.class.php and make the following changes in the code:
# 'models' => 0 to 'models' => 1
# Save file.


Now the template will be available in the list of models in Dolibarr.
Now the template will be available in the list of models in Dolibarr.
83

edits