Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
6569 Näkymät

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
Hylkää
Paras vastaus

 <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
Hylkää
Tekijä

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
lokak. 18
5307
0
tammik. 25
1022
0
huhtik. 24
1808
4
marrask. 23
5844
0
lokak. 23
1648