Skip to content

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

@donowr

Description

@donowr

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/<module_path>/core/tpl/ directory with modifications.
Test the module to see if the custom template is used.

Attached files

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis is a bug (something does not work as expected)Issue Stale (automatic label)This issue is stale because it has been open 1 year with no activity. Remove this label to keep open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions