Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6552 มุมมอง

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>
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

 <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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ต.ค. 18
5289
0
ม.ค. 25
1015
0
เม.ย. 24
1790
4
พ.ย. 23
5838
0
ต.ค. 23
1628