Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <t t-name="stock.label_product_product_view">
- <t t-foreach="quantity.items()" t-as="barcode_and_qty_by_product">
- <t t-set="product" t-value="barcode_and_qty_by_product[0]"/>
- <t t-foreach="barcode_and_qty_by_product[1]" t-as="barcode_and_qty">
- <t t-set="barcode" t-value="barcode_and_qty[0]"/>
- <t t-foreach="range(barcode_and_qty[1])" t-as="qty">
- <t t-translation="off">
- ^XA
- ^FT10,60^A0N,40,20^FD<t t-esc="product.display_name"/>^FS
- <t t-if="product.default_code and len(product.default_code) > 15">
- ^FT10,105^A0N,40,24^FD<t t-esc="product.default_code[:15]"/>^FS
- ^FT10,105^A0N,40,24^FD<t t-esc="product.default_code[15:30]"/>^FS
- </t>
- <t t-else="">
- ^FT10,105^A0N,40,24^FD<t t-esc="product.default_code"/>^FS
- </t>
- <t t-if="price_included">
- ^FO400,80,1
- ^CI28
- <t t-if="product.currency_id.position == 'after'">
- ^A0N,36,38^FH^FD<t t-esc="product.list_price" t-options="{"widget": "float", "precision": 2}"/><t t-esc="product.currency_id.symbol"/>^FS
- </t>
- <t t-if="product.currency_id.position == 'before'">
- ^A0N,36,38^FH^FD<t t-esc="product.currency_id.symbol"/><t t-esc="product.list_price" t-options="{"widget": "float", "precision": 2}"/>^FS
- </t>
- </t>
- <t t-if="barcode">
- ^FO40,120^BY2
- ^BCN,100,Y,N,N
- ^FD<t t-esc="barcode"/>^FS
- </t>
- ^XZ
- </t>
- </t>
- </t>
- </t>
- </t>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement