Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6540 Lượt xem

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>
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

 <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>
Ảnh đại diện
Huỷ bỏ
Tác giả

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 18
5284
0
thg 1 25
1013
0
thg 4 24
1787
4
thg 11 23
5835
0
thg 10 23
1622