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.

239 lines
9.5 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  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. .size066cm {
  26. width: 0.66cm;height: 0.66cm;
  27. }
  28. .bd-lft-black {
  29. border-left: 1px solid black;
  30. }
  31. .bd-rgt-black {
  32. border-right: 1px solid black;
  33. }
  34. .bd-bt-black {
  35. border-bottom: 1px solid black;
  36. }
  37. .mainTable {
  38. width: 14.02cm;
  39. height: 9.39cm;
  40. table-layout:fixed;
  41. display: inline-block;
  42. }
  43. .parentContainer {
  44. display: flex;
  45. }
  46. .imgContainer {
  47. width: 4.98cm;
  48. vertical-align:bottom;
  49. height: 6.87cm;
  50. display: inline-block;
  51. }
  52. .canvasImg {
  53. padding-top:0.2cm;
  54. padding-left:0.1cm;
  55. padding-bottom:0.2cm;
  56. display: flex;
  57. }
  58. .imgRestrict {
  59. width:4.7cm;
  60. height:6.4cm;
  61. margin: auto;
  62. }
  63. .pt03 {
  64. padding-top:0.3cm
  65. }
  66. .partnerName {
  67. }
  68. .infosContainer p {
  69. padding-top: 0.9cm;
  70. }
  71. .infosContainer p {
  72. font-size: 22px;
  73. }
  74. .infosContainer {
  75. margin-left: auto;
  76. width:7.72cm;
  77. height: 6.87cm;
  78. position: relative;
  79. }
  80. .alignText {
  81. text-align: left;
  82. padding-top: 0.2cm;
  83. font-size: 1.2em;
  84. }
  85. .alignBtAbs {
  86. position: absolute;
  87. bottom: 0;
  88. }
  89. .barCodeSize {
  90. width:7.2cm;
  91. height:2.52cm
  92. }
  93. .pt03 {
  94. padding-top:0.3cm
  95. }
  96. .fs08 {
  97. font-size: 0.8em;
  98. }
  99. .fs11 {
  100. font-size:1.1em;
  101. }
  102. .lineSize {
  103. width:7.2cm;
  104. height:0.2cm
  105. }
  106. .robotoB {
  107. font-family: 'Roboto-Bold';
  108. }
  109. .robotoR {
  110. font-family: 'Roboto-Regular';
  111. }
  112. .txtCenter {
  113. text-align:center;
  114. }
  115. .ptb02 {
  116. padding-top:0.2cm;
  117. padding-bottom:0.2cm;
  118. }
  119. .beesInfos p {
  120. margin: auto;
  121. }
  122. .beesInfos {
  123. display: flex;
  124. vertical-align:center;
  125. height: 1.20cm;
  126. }
  127. #tableInfos {
  128. width: 14.02cm;
  129. height: 9.39cm;
  130. table-layout:fixed;
  131. display: inline-block;
  132. }
  133. .logoRestrict {
  134. width: 12.7cm;
  135. height: 6.87cm;
  136. margin: auto;
  137. }
  138. .logo {
  139. display: block;
  140. margin-left: auto;
  141. margin-right: auto;
  142. margin-top:0.2cm;
  143. margin-bottom:0.2cm;
  144. width:6.46cm;
  145. height:6.46cm
  146. }
  147. </style>
  148. </head>
  149. <!-- X1.133 -->
  150. <t t-call="report.html_container">
  151. <div class="page">
  152. <t t-foreach="docs" t-as="partner">
  153. <div class="mainTable">
  154. <div>
  155. <div class="bd-bt-black size066cm"></div>
  156. </div>
  157. <div class="parentContainer">
  158. <div class="imgContainer">
  159. <div class="canvasImg">
  160. <img alt="Embedded Image" src="/beesdoo_base/static/src/img/logo-beescoop.svg"
  161. class="imgRestrict" />
  162. </div>
  163. </div>
  164. <div class="infosContainer">
  165. <p class="alignText partnerName">
  166. <span t-raw="partner.first_name and partner.first_name[:30] or ''" class="robotoR" />
  167. <br />
  168. <strong t-raw="partner.last_name and partner.last_name[:26] or ''" class="robotoB" />
  169. <br />
  170. </p>
  171. <p class="robotoR fs08">
  172. <t t-if="partner.parent_eater_id and partner.parent_eater_id.cooperator_type == 'share_a'">
  173. <span 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 '') + ']'" class="robotoR" />
  174. </t>
  175. <t t-if="partner.parent_eater_id and partner.parent_eater_id.cooperator_type == 'share_b'">
  176. <span t-raw="'[' + (partner.parent_eater_id.name[:60] or '') + ']'" class="robotoR" />
  177. </t>
  178. </p>
  179. <div class="alignBtAbs">
  180. <div style="pt03">
  181. <img 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)" class="barCodeSize" />
  182. </div>
  183. <div class="ptb02">
  184. <t t-if="partner.cooperator_type == 'share_a' or partner.parent_eater_id.cooperator_type == 'share_a'">
  185. <img src="/beesdoo_base/static/src/img/redline.png" class="lineSize" />
  186. </t>
  187. <t t-if="partner.cooperator_type == 'share_b' or partner.parent_eater_id.cooperator_type == 'share_b'">
  188. <img src="/beesdoo_base/static/src/img/blueline.png" class="lineSize" />
  189. </t>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div>
  195. <div class="beesInfos">
  196. <p style="fs08 robotoR txtCenter">En cas de perte, prévenez-nous via membre@bees-coop.be</p>
  197. </div>
  198. </div>
  199. <div>
  200. <div class="bd-bt-black size066cm"></div>
  201. <div class="bd-lft-black bd-rgt-black"></div>
  202. <div class="bd-bt-black size066cm"></div>
  203. </div>
  204. </div>
  205. <div id="tableInfos" style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
  206. <div>
  207. <div class="bd-bt-black size066cm"></div>
  208. <div class="bd-lft-black bd-rgt-black"></div>
  209. <div class="bd-bt-black size066cm"></div>
  210. </div>
  211. <div>
  212. <div style="logoRestrict">
  213. <img src="/beesdoo_base/static/src/img/logo.png" class="logo" />
  214. </div>
  215. </div>
  216. <div>
  217. <div style="height: 1.20cm;">
  218. <p class="txtCenter robotoR fs11">www.bees-coop.be</p>
  219. </div>
  220. </div>
  221. <div>
  222. <div class="bd-bt-black size066cm"></div>
  223. <div class="bd-lft-black bd-rgt-black"></div>
  224. <div class="bd-bt-black size066cm"></div>
  225. </div>
  226. </div>
  227. <br />
  228. </t>
  229. </div>
  230. </t>
  231. </template>
  232. </odoo>