Skip to Content
Menu
This question has been flagged
1 Reply
1763 Views

comment hériter d'un templates dur odoo 15

Avatar
Discard
Best Answer

Hi,

You can inherit the template by setting the inherit_id as existing template id.

For example if you want to inherit the delivery slip report template in inventory module, you can do as follows:

id="report_deliveryslip_inherited" inherit_id="stock.report_deliveryslip">
expr="//t[@t-call='stock.report_delivery_document']" position='after'> //your xpath expression
//your content    


Refer this video for more details, same way you can inherit templates also:    

How To Inherit And Modify Existing PDF Reports in Odoo

https://www.youtube.com/watch?v=8aGOHkee7i4

Thank you

Avatar
Discard