В системе Odoo, если вы установите product_code (внутренняя ссылка) в шаблоне продукта, примечание также будет отображаться в отчете qweb. Я хочу, чтобы в отчете qweb о заказе на продажу отображалось только название продукта. Можно ли удалить (или скрыть) отчет поля product_code? Если это так, пожалуйста, помогите мне указать правильные шаги для ее решения. Спасибо, мой код qweb:
</tr>
<t t-set="index" t-value="0"/>
<t t-set="product" t-value="0"/>
<t t-foreach="doc.handle_orderline(doc.order_line)" t-as="product_line">
<t t-set="product_num" t-value="0"/>
<t t-set="index" t-value="index + 1"/>
<t t-foreach="product_line" t-as="l">
<t t-set="product_num" t-value="product_num+1"/>
<t t-if="not l.product_uom_qty">
<t t-set="index" t-value="index - 1"/>
</t>
<tr t-if="l.product_uom_qty">
<t t-if="product_num == 1">
<td class="text-center" t-att-rowspan="len(product_line)">
<span t-esc="index"/>
</td>
<td class="text-center" t-att-rowspan="len(product_line)">
<strong><span t-field="l.name"/></strong>
<br/>
<t t-if="l.width_id">( <span style="font-style:italic" t-field="l.width_id.name"/> )</t>
</td>
</t>