Create a PDF document template: Difference between revisions

Jump to navigation Jump to search
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:


#from <nowiki><syntaxhighlight lang="PHP">Class pdf_cyan</syntaxhighlight></nowiki> to <nowiki><syntaxhighlight lang="PHP">Class pdf_mycompanyblue</syntaxhighlight></nowiki>
#'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 Dolibarr.


Test this model (see previous section) before going further.
Test this model (see previous section) before going further.
<br />


==For a new module==
==For a new module==
83

edits

Navigation menu