Odoo Help

4

Inherit a template in base.xml

By
anonymous
on 2/1/14, 8:13 PM 3,238 views

Hi;

I want to inherit and modify template t-name = "TreeView.rows" in base.xml.

I want to change the line 691 :

<t t-set="style" t-value="'background-position: ' + 19*(level) + 'px; padding-left: ' + (4 + 19*(level)) + 'px;'"/>

to

  <t t-set="style" t-value="'background-position: ' + 25*(level) + 'px; padding-left: ' + (4 + 25*(level)) + 'px;'"/>

how can I get the xpath element , I like that in my base.xml but it does not work :

<templates id="template" xml:space="preserve">
<t t-extend="TreeView.rows">
    <t t-jquery="style" t-operation="replace">
           <t t-set="style" t-value="'background-position: ' + 25*(level) + 'px; padding-left: ' + (4 + 25*(level)) + 'px;'"/>
    </t>
</t>
</templates>

Thanks.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 2/1/14, 8:13 PM
Seen: 3238 times
Last updated: 9/1/17, 6:17 AM