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.

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