【发布时间】:2021-08-19 17:45:57
【问题描述】:
我想在 POS 客户视图中添加一个跨度。我尝试使用此代码,但不起作用。
//customer.xml
<?xml version="1.0" encoding="UTF-8" ?>
<templates id="point_of_sale.template" xml:space="preserve">
<t t-extend="ClientDetailsEdit">
<t t-jquery=".client-details-right" t-operation="append">
<div class="client-detail">
<span class="label">Test</span>
</div>
</t>
</t>
</templates>
//manifest.py
"qweb": [
'static/src/xml/customer.xml',
],
我的代码有什么问题?请问有什么帮助吗?谢谢。
【问题讨论】:
标签: javascript python xml odoo