How to overwrite the objectline_create.tpl by hook in commande card

I try to overwrite the objectline_create.tpl by hook
but i found that the logic will not overwrite


Actually,
it will show two tpl, one is the original tpl and the other one is my hook custom tpl
please help that how to use a right way to overwrite the tpl by hook
without modifying the original code

Dolibarr version: 12.0.1

Hi,

Depends what you want to do.

Hook is to ADD things not to overwrite.
To overwrite : https://wiki.dolibarr.org/index.php/Canvas_development