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.

173 lines
7.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="cooperator_certificat_G001_document">
  5. <t t-call="theme_light.invoice_layout">
  6. <div class="page">
  7. <head>
  8. <link href="/easy_my_coop/static/src/css/coop_report.css" rel="stylesheet"/>
  9. <style type="text/css">
  10. /* Montserrat */
  11. @font-face {
  12. font-family: 'Montserrat-Regular';
  13. font-style: normal;
  14. src: local('Montserrat Regular'), url('/theme_light/static/font/Montserrat-Regular.ttf') format('truetype');
  15. }
  16. /* Roboto Regular */
  17. @font-face {
  18. font-family: 'Roboto-Regular';
  19. font-style: normal;
  20. src: local('Roboto Regular'), url('/theme_light/static/font/Roboto-Regular.ttf') format('truetype');
  21. }
  22. /* Roboto Bold */
  23. @font-face {
  24. font-family: 'Roboto-Bold';
  25. font-style: normal;
  26. src: local('Roboto Bold'), url('/theme_light/static/font/Roboto-Bold.ttf') format('truetype');
  27. }
  28. /* BEBASNEUE Bold */
  29. @font-face {
  30. font-family: 'Bebasneue-Bold';
  31. font-style: normal;
  32. src: local('Bebasneue-Bold'), url('/theme_light/static/font/BEBASNEUE_BOLD.ttf') format('truetype');
  33. }
  34. </style>
  35. </head>
  36. <t t-call="theme_light.invoice_header"/>
  37. <div class="row">
  38. <div class="col-xs-5 col-xs-offset-7 easymy-coop-address" style="top:90px;">
  39. <strong><span t-field="o.name" /><br/><br/></strong>
  40. <span t-field="o.street" /><br/>
  41. <span>
  42. <span t-field="o.zip"/>
  43. <span t-field="o.city"/>
  44. </span><br/>
  45. <span t-field="o.country_id.name" /><br/>
  46. </div>
  47. </div>
  48. <div style="position:absolute; top:364px">
  49. <h2 style="font-family:Bebasneue-Bold;font-size:20pt;line-height:14pt;">
  50. <div>
  51. <span>COOPERATOR CERTIFICAT</span>
  52. </div>
  53. <div style="width:125px;position:relative;top:10px;border-bottom: 4pt solid #fcc300;"/>
  54. </h2>
  55. <div name="label_coop_number" style="position:relative;top:55px;">
  56. <span t-field="o.name"></span>
  57. <span> is recorded in the register of cooperators under number </span>
  58. <span t-field="o.cooperator_register_number"></span>
  59. </div>
  60. <table class="table border-easymy-coop-cert" style="position:relative;top:85px;width:90%;align:center;">
  61. <thead class="easymy-coop-info-title">
  62. <tr>
  63. <th width="15%">Effective date</th>
  64. <th width="10%">Share type</th>
  65. <th width="10%">Quantity</th>
  66. <th width="15%">Unit Price</th>
  67. <th width="15%">Total</th>
  68. </tr>
  69. </thead>
  70. <tbody class="easymy-coop-normal">
  71. <t t-set="nb_ligne" t-value="0"/>
  72. <t t-foreach="o.share_ids" t-as="line">
  73. <t t-set="nb_ligne" t-value="nb_ligne+1"/>
  74. <tr height="40px">
  75. <div t-if="(nb_ligne%2)==1" >
  76. <td class="lgn_impair">
  77. <span t-field="line.effective_date" ></span>
  78. </td>
  79. <td>
  80. <span t-field="line.share_short_name" ></span>
  81. </td>
  82. <td>
  83. <span t-field="line.share_number" ></span>
  84. </td>
  85. <td>
  86. <span t-field="line.share_unit_price"
  87. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  88. </td>
  89. <td>
  90. <span t-field="line.total_amount_line"
  91. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  92. </td>
  93. </div>
  94. <div t-if="(nb_ligne%2)==0" >
  95. <td class="lgn_pair" style="background-color:#ffffff">
  96. <span t-field="line.effective_date"> </span>
  97. </td>
  98. <td>
  99. <span t-field="line.share_short_name" ></span>
  100. </td>
  101. <td class="lgn_pair" style="background-color:#ffffff">
  102. <span t-field="line.share_number" ></span>
  103. </td>
  104. <td class="lgn_pair" style="background-color:#ffffff">
  105. <span t-field="line.share_unit_price"
  106. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  107. </td>
  108. <td class="lgn_pair" style="background-color:#ffffff">
  109. <span t-field="line.total_amount_line"
  110. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  111. </td>
  112. </div>
  113. </tr>
  114. </t>
  115. </tbody>
  116. </table>
  117. <div name="total_table" class="row">
  118. <div class="col-xs-6 pull-right">
  119. <table class="table table-condensed easymy-coop-info-title" style="position:relative;top:145px;width:85%">
  120. <tr class="border-top-easymy-coop-cert">
  121. <td width="20%"/>
  122. <td class="total_table color_text" style="text-align:center" width="20%">TOTAL : </td>
  123. <td class="total_table" style="text-align:center" width="25%">
  124. <span t-field="o.number_of_share"/>
  125. <span> share(s) </span>
  126. </td>
  127. <td class="total_table" width="25%">
  128. <span t-field="o.total_value"
  129. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  130. </td>
  131. </tr>
  132. </table>
  133. </div>
  134. </div>
  135. <div class="row">
  136. <div name="board_commitee" class="col-xs-6 pull-left" style="position:relative;top:205px;font-size:20;color:black;font-family:Roboto-Regular;">
  137. <div style="position:relative;top:205px;">
  138. Pour le Conseil d'administration de <span t-field="o.company_id.name"/>.
  139. </div>
  140. <div style="position:relative;top:215px;">
  141. <strong><span t-field="o.company_id.board_representative"/></strong>
  142. </div>
  143. <div style="position:relative;top:225px;">
  144. <img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:240px;height:200px;padding-bottom:5px;"/>
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </div>
  150. </t>
  151. </template>
  152. <template id="cooperator_certificat_G001">
  153. <t t-call="theme_light.html_container">
  154. <t t-set="data_report_margin_top" t-value="10"/>
  155. <t t-set="data_report_header_spacing" t-value="5"/>
  156. <t t-set="data_report_dpi" t-value="110"/>
  157. <t t-foreach="docs" t-as="o">
  158. <t t-call="easy_my_coop.cooperator_certificat_G001_document" t-lang="o.lang"/>
  159. </t>
  160. </t>
  161. </template>
  162. </data>
  163. </openerp>