Odoo Help

0

Modify template attribute "active" from another template

By
Roberto Barreiro
on 7/4/16, 3:40 AM 468 views

In the next example, it's possible to change active="True" on template id="b" when template id="a" is activated on the web interface?

template id="a" inherit_id="x" active="False" customize_show="True"
...
</template>
<template id="b" inherit_id="y" active="False">
...
</template>
1
Paul Catinean
On 3/29/17, 4:42 AM

 <template> tags get translated into regular views (ir.ui.view).

If you want to disable the view you can use a <record> tag to achieve this like so:


<record id="full_external_id_of_the_template" model="ir.ui.view">
        <field name="active" eval="False"/>
</record>

Thank you for your answer. I will try it. Regards Paul.

Roberto Barreiro
on 3/29/17, 5:02 AM

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

1 follower(s)

Stats

Asked: 7/4/16, 3:40 AM
Seen: 468 times
Last updated: 3/29/17, 5:02 AM