Skip to Content
Menu
This question has been flagged
2 Replies
5642 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>
Avatar
Discard
Best Answer

 <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>
Avatar
Discard
Author

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

Related Posts Replies Views Activity
1
Oct 18
4598
0
Oct 24
2
0
Apr 24
399
4
Nov 23
4245
0
Oct 23
378