Hi,
How to Inherit owl template in odoo Version 14.0?
E.g
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
How to Inherit owl template in odoo Version 14.0?
E.g
you must create a new xml file using this template (DO NOT FORGET OWL="1")
<?xml version="1.0" encoding="utf-8" ?>
<templates xml:space="preserve">
<t t-inherit="addon_name.DemoExample" t-inherit-mode="extension" owl="1">
<xpath expr="//xpath_expression" position="attributes or replace or after or before">
<attribute name="field_attribut">value</attribute>
</xpath>
</t>
</templates>
And add it in the __manifest__.py file of your custom addon in asset part.
You could follow this example. These example add a new property to a sub-component
<t t-inherit="mail.Discuss.content" t-inherit-mode="extension">
<xpath expr="//ThreadView" position="attributes">
<attribute name="mail_classic_view">true</attribute>
</xpath>
</t>
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
พ.ค. 24
|
3162 | ||
|
1
เม.ย. 24
|
26781 | ||
|
1
พ.ค. 23
|
4009 | ||
|
1
พ.ย. 22
|
2610 | ||
|
2
ก.ค. 22
|
3319 |