Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
6536 Visualizzazioni

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
Abbandona
Risposta migliore

 <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
Abbandona
Autore

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

Post correlati Risposte Visualizzazioni Attività
1
ott 18
5284
0
gen 25
1013
0
apr 24
1787
4
nov 23
5835
0
ott 23
1622