Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
6537 Visualizações

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
Cancelar
Melhor resposta

 <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
Cancelar
Autor

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

Publicações relacionadas Respostas Visualizações Atividade
1
out. 18
5284
0
jan. 25
1013
0
abr. 24
1787
4
nov. 23
5835
0
out. 23
1622