Hi,
How to Inherit owl template in odoo Version 14.0?
E.g
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>
Creează-ți un cont astăzi pentru a beneficia de funcții exclusive și a interacționa cu minunata noastră comunitate!
Înscrie-te| Postări similare | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
1
mai 24
|
6004 | |||
|
1
apr. 24
|
31214 | |||
|
1
mai 23
|
5832 | |||
|
1
nov. 22
|
4799 | |||
|
import Csv into postgres table
Rezolvat
|
2
iun. 26
|
6096 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.