Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.48k stars 2.8k forks source link

Unable to override object_discounts.tpl.php in custom module #32002

Open donowr opened 3 days ago

donowr commented 3 days ago

Bug

In my custom module, I am successfully overriding two other .tpl.php files (objectline_create.tpl.php and objectline_edit.tpl.php), but I am unable to override object_discounts.tpl.php. This raises the question of whether:

There is a bug specifically preventing object_discounts.tpl.php from being overridden or its not possible

Thank you for your help

Dolibarr Version

19.0.1

Environment PHP

8.1

Environment Database

No response

Steps to reproduce the behavior and expected behavior

Copy the object_discounts.tpl.php file into the corresponding /custom//core/tpl/ directory with modifications. Test the module to see if the custom template is used.

Attached files

No response