Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
6543 Tampilan

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
Buang
Jawaban Terbai

 <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
Buang
Penulis

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

Post Terkait Replies Tampilan Aktivitas
1
Okt 18
5285
0
Jan 25
1013
0
Apr 24
1787
4
Nov 23
5836
0
Okt 23
1623