Advertisement
Guest User

label ZD410 code

a guest
Apr 22nd, 2022
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <t t-name="stock.label_product_product_view">
  3. <t t-foreach="quantity.items()" t-as="barcode_and_qty_by_product">
  4. <t t-set="product" t-value="barcode_and_qty_by_product[0]"/>
  5. <t t-foreach="barcode_and_qty_by_product[1]" t-as="barcode_and_qty">
  6. <t t-set="barcode" t-value="barcode_and_qty[0]"/>
  7. <t t-foreach="range(barcode_and_qty[1])" t-as="qty">
  8. <t t-translation="off">
  9. ^XA
  10. ^FT10,60^A0N,40,20^FD<t t-esc="product.display_name"/>^FS
  11. <t t-if="product.default_code and len(product.default_code) &gt; 15">
  12. ^FT10,105^A0N,40,24^FD<t t-esc="product.default_code[:15]"/>^FS
  13. ^FT10,105^A0N,40,24^FD<t t-esc="product.default_code[15:30]"/>^FS
  14. </t>
  15. <t t-else="">
  16. ^FT10,105^A0N,40,24^FD<t t-esc="product.default_code"/>^FS
  17. </t>
  18. <t t-if="price_included">
  19. ^FO400,80,1
  20. ^CI28
  21. <t t-if="product.currency_id.position == 'after'">
  22. ^A0N,36,38^FH^FD<t t-esc="product.list_price" t-options="{&quot;widget&quot;: &quot;float&quot;, &quot;precision&quot;: 2}"/><t t-esc="product.currency_id.symbol"/>^FS
  23. </t>
  24. <t t-if="product.currency_id.position == 'before'">
  25. ^A0N,36,38^FH^FD<t t-esc="product.currency_id.symbol"/><t t-esc="product.list_price" t-options="{&quot;widget&quot;: &quot;float&quot;, &quot;precision&quot;: 2}"/>^FS
  26. </t>
  27. </t>
  28. <t t-if="barcode">
  29. ^FO40,120^BY2
  30. ^BCN,100,Y,N,N
  31. ^FD<t t-esc="barcode"/>^FS
  32. </t>
  33. ^XZ
  34. </t>
  35. </t>
  36. </t>
  37. </t>
  38. </t>
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement