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