如何在ODOO9中扩展模板?
我使用的是Odoo9,我想扩展一个模板。 看到我的代码了吗如何在ODOO9中扩展模板?,odoo,odoo-9,Odoo,Odoo 9,我使用的是Odoo9,我想扩展一个模板。 看到我的代码了吗 <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">
<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-使用
扩展模板。2-将
web
添加到清单中的依赖项(\uu openerp\uuuu.py
)。
3-将'qweb':[“static/src/xml/*.xml”],
添加到清单中
模板继承是通过t-extend指令执行的,该指令将要更改的模板的名称作为参数
有关详细信息,请访问。是否尝试删除.web
。你找到解决方案了吗?是的,我删除了.web,但仍然不工作。我没有找到解决方案Yet你能描述一下整个步骤吗?你是按照这个步骤创建模板的吗?