report_product_labels_wizard.xml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report
  5. id="report_product_product_label"
  6. string="Product Label"
  7. model="product.product.label"
  8. report_type="qweb-pdf"
  9. file="product_label"
  10. name="product_labels.product_product_label"
  11. />
  12. <record id="report_product_product_label" model="ir.actions.report.xml">
  13. <field name="paperformat_id" ref="product_labels.paperformat_product_label"/>
  14. </record>
  15. <template id="product_product_label">
  16. <t t-call="report.html_container">
  17. <t t-foreach="docs" t-as="label">
  18. <t t-foreach="label.label_lines" t-as="line">
  19. <t t-foreach="range(int(line.quantity))" t-as="range_line">
  20. <div class="page">
  21. <div class="oe_structure"/>
  22. <div class="row">
  23. <table style="width: 100%; border: 1px solid black; text-align: center; border-collapse: collapse; margin: 0; padding: 0;">
  24. <tr>
  25. <td colspan="2" style="margin: 0; padding: 0;">
  26. <h5 style="margin: 0; padding: 0;">
  27. <span t-field="product.display_name"/>
  28. </h5>
  29. </td>
  30. </tr>
  31. <tr>
  32. <td colspan="2" style="margin: 0; padding: 0;">
  33. <h5 style="margin: 0; padding: 0;"><span>Precio: </span><span t-field="product.lst_price" /></h5>
  34. </td>
  35. </tr>
  36. <tr style="border: 1px solid black; margin: 0; padding: 0;">
  37. <td colspan="2" style="margin: 0; padding: 0;">
  38. <span t-if="product.ean13">
  39. <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.ean13, 600, 20)" style="margin-top: 3px; width:70mm; height:20mm; margin: 0; padding: 0;"/>
  40. <h5 style="margin: 0; padding: 0;"><span t-esc="product.ean13" /></h5>
  41. </span>
  42. </td>
  43. </tr>
  44. <!-- <tr style="border: 1px solid black;">
  45. <td colspan="2">
  46. <h5><span t-field="line.product_id.name"/></h5>
  47. </td>
  48. </tr>
  49. <tr style="border: 1px solid black;">
  50. <td colspan="2">
  51. <h4><span>Precio: </span><span t-field="line.product_id.list_price" /></h4>
  52. </td>
  53. </tr>
  54. <tr style="border: 1px solid black;">
  55. <td colspan="2">
  56. <span t-if="line.product_id.ean13">
  57. <img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', line.product_id.ean13, 400, 100)" style="margin-top: 3px; width:70mm; height:25mm"/>
  58. <h5><span t-esc="line.product_id.ean13" /></h5>
  59. </span>
  60. </td>
  61. </tr> -->
  62. </table>
  63. </div>
  64. </div>
  65. </t>
  66. </t>
  67. </t>
  68. </t>
  69. </template>
  70. </data>
  71. </openerp>