31,003
edits
| Line 9: | Line 9: | ||
FYI, all models are in '''htdocs/includes/modules''', into subdirectory propale for commercial proposals, facture for invoices, commandes for orders, etc... | FYI, all models are in '''htdocs/includes/modules''', into subdirectory propale for commercial proposals, facture for invoices, commandes for orders, etc... | ||
= | = Create your new template = | ||
For security, we will retain the original models. For the example, we assume we creates a new module we call 'mycompanyblue' and inspired by the module 'azur': | |||
* | * Copy and paste file pdf_propale_azur.modules.php | ||
* | * Rename the copy into pdf_propale_mycompanyblue.modules.php | ||
* | * Edit and make the following changes in the code: | ||
# | # Rename 'Class pdf_propale_azur { ' into 'Class pdf_propale_mycompanyblue { ' | ||
# | # Rename 'Function pdf_propale_azur ($db=0)' into 'Function pdf_propale_mycompanyblue ($db=0)' | ||
# | # Save file. Now template is available in the list of models into Dolibarr | ||
# Test this model (see previous section) before going further ... | |||
= Personnaliser = | = Personnaliser = | ||