تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6345 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أكتوبر 18
5093
0
يناير 25
633
0
أبريل 24
1375
4
نوفمبر 23
5363
0
أكتوبر 23
1051