Odoo 시스템에서 제품 템플릿에 product_code (interal reference)를 설정하면 메모가 qweb 보고서에도 표시됩니다. 판매 주문 qweb 보고서에서 제품 이름 만 가져오고 싶습니다. product_code 필드 보고서를 제거 (또는 숨길 수 있습니까? 그렇다면 올바른 해결 방법을 알려주십시오. 주셔서 감사합니다 내 Qweb을 코드 :Odoo-9의 판매 주문 보고서 qweb에서 'product_code'필드를 제거하는 방법은 무엇입니까?
</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>
과 : 다음 코드
교체? 질문을 귀하의 시도 코드로 업데이트 할 수 있습니까? –
저에게 답장을 보내 주셔서 감사합니다, 흐르는 코드 내 sales_order_report_documents에 제품의 이름을 보여주십시오 : –