【发布时间】:2018-01-23 16:05:06
【问题描述】:
模块website有这个模板:
<template id="footer_default" inherit_id="website.footer_custom" customize_show="True" name="Automatic Footer">
<xpath expr="//div[@id='footer']" position="replace">
...
</xpath>
</template>
他们正在设置 customize_show 属性,我想在我的模块中将其覆盖为 false 以摆脱自定义菜单中的选项。
我试过这个和其他几种方法:
<template id="footer_default" inherit_id="website.footer_custom" customize_show="False" active="False" name="Automatic Footer">
</template>
但我想问题是我的是my_module.footer_default,所以我无法以我猜的方式覆盖它。
【问题讨论】: