我正在使用odoo 9,我想扩展一个模板 . 看我的代码
<templates id="olims.cust_template" xml:space="preserve">
<t t-extend="web.UserMenu.about">
<t t-jquery=".container-fluid" t-operation="replace">
<div class="row">
-----my code here-----
</div>
</t>
</t>
</templates>
但是关于菜单没有任何影响,代码有什么问题,任何想法?
1 回答
1 - 使用
<t t-extend="UserMenu.about">
扩展模板 .2 - 在清单(
__openerp__.py
)中将web
添加到depends
.3 - 将
'qweb': ["static/src/xml/*.xml"],
添加到清单中 .您可以在QWEB找到更多信息 .