我正在使用Odoo V12,并将其添加到模板“ website_sale.cart_products”中,我想在Html标签中添加一些内容:
原始模板视图
<template id="cart_products">
<table id="products" t-if="website_sale_order ..........">
<tr><th class="text-center">Origin Text Header</th>.....</tr>
</table>
</template>
我想这样做:
修改原始模板视图
<template id="cart_products" inherit_id="website_sale.cart_products">
<xpath expr="//table[@id='products']/tr" position="inside">
<th class="text-center" id="is_compo">Is a component</th>
</xpath>
</template>
我没有任何错误,但是我的HTML标记不可见。
请帮助。