You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

165 lines
8.1 KiB

  1. <odoo>
  2. <report id="report_beescard_cm" string="Beescaard" model="res.partner"
  3. report_type="qweb-html" file="beesdoo_base.beescard_template_cm"
  4. name="beesdoo_base.beescard_template_cm" />
  5. <!-- Use paper format a4 low margin -->
  6. <template id="beescard_template_cm">
  7. <head>
  8. <style type="text/css">
  9. /* Roboto Regular */
  10. @font-face {
  11. font-family: 'Roboto-Regular';
  12. font-style: normal;
  13. src: local('Roboto Regular'),
  14. url('/beesdoo_base/static/font/Roboto-Regular.ttf')
  15. format('truetype');
  16. }
  17. /* Roboto Bold */
  18. @font-face {
  19. font-family: 'Roboto-Bold';
  20. font-style: normal;
  21. src: local('Roboto Bold'),
  22. url('/beesdoo_base/static/font/Roboto-Bold.ttf')
  23. format('truetype');
  24. }
  25. </style>
  26. </head>
  27. <!-- X1.133 -->
  28. <t t-call="report.html_container">
  29. <div class="page">
  30. <t t-foreach="docs" t-as="partner">
  31. <table
  32. style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
  33. <tr>
  34. <td
  35. style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  36. <td
  37. style="border-left: 1px solid black;border-right: 1px solid black;"
  38. colspan="2"></td>
  39. <td
  40. style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  41. </tr>
  42. <tr>
  43. <td></td>
  44. <td
  45. style="width: 4.98cm;vertical-align:bottom;height: 6.87cm;">
  46. <div
  47. style="padding-top:0.2cm;padding-left:0.1cm;padding-bottom:0.2cm;">
  48. <img alt="Embedded Image"
  49. t-att-src="'data:image/png;base64,' + partner.image"
  50. style="width:4.7cm;height:6.4cm" />
  51. </div>
  52. </td>
  53. <td
  54. style="vertical-align:top;width:7.72cm;height: 6.87cm;position: relative;">
  55. <p
  56. style="text-align: left;padding-top: 0.2cm;font-size: 1.2em;">
  57. <span t-raw="partner.first_name and partner.first_name[:30] or ''"
  58. style="font-family:Roboto-Regular" />
  59. <br />
  60. <span t-raw="partner.last_name and partner.last_name[:26] or ''"
  61. style="font-family:Roboto-Bold;" />
  62. <br />
  63. </p>
  64. <p
  65. style="font-size: 0.8em;font-family:Roboto-Regular">
  66. <t t-if="partner.parent_eater_id">
  67. <span
  68. t-raw="'[' + (partner.parent_eater_id.first_name and partner.parent_eater_id.first_name[:30] or '') + ' ' + (partner.parent_eater_id.last_name and partner.parent_eater_id.last_name[:30] or '') + ']'"
  69. style="font-family:Roboto-Regular" />
  70. </t>
  71. </p>
  72. <div style="position: absolute;bottom: 0;">
  73. <div style="padding-top:0.3cm">
  74. <img
  75. t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;humanreadable=%s'%('EAN13', partner.barcode if not partner.parent_eater_id else partner.parent_barcode, 340, 70, 1)"
  76. style="width:7.2cm;height:2.52cm" />
  77. </div>
  78. <div
  79. style="padding-top:0.2cm;padding-bottom:0.2cm;">
  80. <img
  81. src="/beesdoo_base/static/src/img/redline.png"
  82. style="width:7.2cm;height:0.2cm" />
  83. </div>
  84. </div>
  85. </td>
  86. <td></td>
  87. </tr>
  88. <tr>
  89. <td></td>
  90. <td colspan="2"
  91. style="vertical-align:center;height: 1.20cm;">
  92. <p
  93. style="text-align:center;font-size:0.8em;font-family:Roboto-Regular">En cas de perte,
  94. prévenez-nous via
  95. membre@bees-coop.be
  96. </p>
  97. </td>
  98. <td></td>
  99. </tr>
  100. <tr>
  101. <td
  102. style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  103. <td
  104. style="border-left: 1px solid black;border-right: 1px solid black;"
  105. colspan="2"></td>
  106. <td
  107. style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  108. </tr>
  109. </table>
  110. <table
  111. style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
  112. <tr>
  113. <td
  114. style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  115. <td
  116. style="border-left: 1px solid black;border-right: 1px solid black;"
  117. colspan="2"></td>
  118. <td
  119. style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  120. </tr>
  121. <tr>
  122. <td></td>
  123. <td style="width: 12.7cm;height: 6.87cm;">
  124. <img
  125. src="/beesdoo_base/static/src/img/logo.png"
  126. style="display: block;margin-left: auto;margin-right: auto;margin-top:0.2cm;margin-bottom:0.2cm;width:6.46cm;height:6.46cm" />
  127. </td>
  128. <td></td>
  129. </tr>
  130. <tr>
  131. <td></td>
  132. <td style="height: 1.20cm;">
  133. <p
  134. style="text-align:center;font-family:Roboto-Regular;font-size:1.1em;">www.bees-coop.be
  135. </p>
  136. </td>
  137. <td></td>
  138. </tr>
  139. <tr>
  140. <td
  141. style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  142. <td
  143. style="border-left: 1px solid black;border-right: 1px solid black;"
  144. colspan="2"></td>
  145. <td
  146. style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  147. </tr>
  148. </table>
  149. <br />
  150. </t>
  151. </div>
  152. </t>
  153. </template>
  154. </odoo>