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.

177 lines
9.2 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 and partner.parent_eater_id.cooperator_type == 'share_a'">
  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. <t t-if="partner.parent_eater_id and partner.parent_eater_id.cooperator_type == 'share_b'">
  72. <span
  73. t-raw="'[' + (partner.parent_eater_id.name[:60] or '') + ']'"
  74. style="font-family:Roboto-Regular" />
  75. </t>
  76. </p>
  77. <div style="position: absolute;bottom: 0;">
  78. <div style="padding-top:0.3cm">
  79. <img
  80. 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)"
  81. style="width:7.2cm;height:2.52cm" />
  82. </div>
  83. <div
  84. style="padding-top:0.2cm;padding-bottom:0.2cm;">
  85. <t t-if="partner.cooperator_type == 'share_a' or partner.parent_eater_id.cooperator_type == 'share_a'">
  86. <img
  87. src="/beesdoo_base/static/src/img/redline.png"
  88. style="width:7.2cm;height:0.2cm" />
  89. </t>
  90. <t t-if="partner.cooperator_type == 'share_b' or partner.parent_eater_id.cooperator_type == 'share_b'">
  91. <img
  92. src="/beesdoo_base/static/src/img/blueline.png"
  93. style="width:7.2cm;height:0.2cm" />
  94. </t>
  95. </div>
  96. </div>
  97. </td>
  98. <td></td>
  99. </tr>
  100. <tr>
  101. <td></td>
  102. <td colspan="2"
  103. style="vertical-align:center;height: 1.20cm;">
  104. <p
  105. style="text-align:center;font-size:0.8em;font-family:Roboto-Regular">En cas de perte,
  106. prévenez-nous via
  107. membre@bees-coop.be
  108. </p>
  109. </td>
  110. <td></td>
  111. </tr>
  112. <tr>
  113. <td
  114. style="border-top: 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-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  120. </tr>
  121. </table>
  122. <table
  123. style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
  124. <tr>
  125. <td
  126. style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  127. <td
  128. style="border-left: 1px solid black;border-right: 1px solid black;"
  129. colspan="2"></td>
  130. <td
  131. style="border-bottom: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  132. </tr>
  133. <tr>
  134. <td></td>
  135. <td style="width: 12.7cm;height: 6.87cm;">
  136. <img
  137. src="/beesdoo_base/static/src/img/logo.png"
  138. style="display: block;margin-left: auto;margin-right: auto;margin-top:0.2cm;margin-bottom:0.2cm;width:6.46cm;height:6.46cm" />
  139. </td>
  140. <td></td>
  141. </tr>
  142. <tr>
  143. <td></td>
  144. <td style="height: 1.20cm;">
  145. <p
  146. style="text-align:center;font-family:Roboto-Regular;font-size:1.1em;">www.bees-coop.be
  147. </p>
  148. </td>
  149. <td></td>
  150. </tr>
  151. <tr>
  152. <td
  153. style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  154. <td
  155. style="border-left: 1px solid black;border-right: 1px solid black;"
  156. colspan="2"></td>
  157. <td
  158. style="border-top: 1px solid black;width: 0.66cm;height: 0.66cm;"></td>
  159. </tr>
  160. </table>
  161. <br />
  162. </t>
  163. </div>
  164. </t>
  165. </template>
  166. </odoo>