Add Extrafields on PDF Models: Difference between revisions

Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
Tag: 2017 source edit
Line 57: Line 57:
* Rename the copy as '''pdf_my_template.modules.php'''
* Rename the copy as '''pdf_my_template.modules.php'''
* Edit and make the following changes in the code:  
* Edit and make the following changes in the code:  
# Rename 'class pdf_crabe' to 'class pdf_my_template'
# Rename '''class pdf_crabe''' to '''class pdf_my_template'''
# Rename constant '$this->name = "crabe";' to '$this->name = "my_template";
# Rename constant '''$this->name = "crabe";''' to '$this->name = "my_template";
# Save file. Now the template will be available in the list of models in Dolibarr.
# Save file. 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 before going further ...
676

edits

Navigation menu