Skip to Content
Menu
This question has been flagged
2 Replies
5468 Views

How can I replace existing template in odoo 14.

for ex, I'm trying to replace NumpadWidget in POS by writing following code.

<t t-name="NumpadWidget" t-inherit="point_of_sale.NumpadWidget" t-inherit-mode="extension" owl="1">

<xpath expr="//div[hasclass('numpad')]" position="replace">

<div class="numpad"></div>

</xpath >

</t>

------------

then I'm getting following error : A template should not have more than one root node.


Avatar
Discard
Best Answer

Here is original issue related to this that is still unsolve.

https://github.com/odoo/owl/issues/714

If you are in debug mode than you face that error. 


Avatar
Discard
Best Answer

you are solve it ? i need same help

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
1845
0
Jul 22
1694
0
Dec 20
979
0
Jun 18
2694
1
Dec 23
501