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.

178 lines
7.4 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="certificate_generation_date" style="position:relative;top:45px;">
  56. <span> Certificate generated on </span>
  57. <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d/%m/%Y')"/>
  58. </div>
  59. <div name="label_coop_number" style="position:relative;top:55px;">
  60. <span t-field="o.name"></span>
  61. <span> is recorded in the register of cooperators under number </span>
  62. <span t-field="o.cooperator_register_number"></span>
  63. </div>
  64. <table class="table border-easymy-coop-cert" style="position:relative;top:85px;width:90%;align:center;">
  65. <thead class="easymy-coop-info-title">
  66. <tr>
  67. <th width="15%">Effective date</th>
  68. <th width="10%">Share type</th>
  69. <th width="10%">Quantity</th>
  70. <th width="15%">Unit Price</th>
  71. <th width="15%">Total</th>
  72. </tr>
  73. </thead>
  74. <tbody class="easymy-coop-normal">
  75. <t t-set="nb_ligne" t-value="0"/>
  76. <t t-foreach="o.share_ids" t-as="line">
  77. <t t-set="nb_ligne" t-value="nb_ligne+1"/>
  78. <tr height="40px">
  79. <div t-if="(nb_ligne%2)==1" >
  80. <td class="lgn_impair">
  81. <span t-field="line.effective_date" ></span>
  82. </td>
  83. <td>
  84. <span t-field="line.share_short_name" ></span>
  85. </td>
  86. <td>
  87. <span t-field="line.share_number" ></span>
  88. </td>
  89. <td>
  90. <span t-field="line.share_unit_price"
  91. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  92. </td>
  93. <td>
  94. <span t-field="line.total_amount_line"
  95. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  96. </td>
  97. </div>
  98. <div t-if="(nb_ligne%2)==0" >
  99. <td class="lgn_pair" style="background-color:#ffffff">
  100. <span t-field="line.effective_date"> </span>
  101. </td>
  102. <td>
  103. <span t-field="line.share_short_name" ></span>
  104. </td>
  105. <td class="lgn_pair" style="background-color:#ffffff">
  106. <span t-field="line.share_number" ></span>
  107. </td>
  108. <td class="lgn_pair" style="background-color:#ffffff">
  109. <span t-field="line.share_unit_price"
  110. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  111. </td>
  112. <td class="lgn_pair" style="background-color:#ffffff">
  113. <span t-field="line.total_amount_line"
  114. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  115. </td>
  116. </div>
  117. </tr>
  118. </t>
  119. </tbody>
  120. </table>
  121. <div name="total_table" class="row">
  122. <div class="col-xs-6 pull-right">
  123. <table class="table table-condensed easymy-coop-info-title" style="position:relative;top:145px;width:85%">
  124. <tr class="border-top-easymy-coop-cert">
  125. <td width="20%"/>
  126. <td class="total_table color_text" style="text-align:center" width="20%">TOTAL : </td>
  127. <td class="total_table" style="text-align:center" width="25%">
  128. <span t-field="o.number_of_share"/>
  129. <span> share(s) </span>
  130. </td>
  131. <td class="total_table" width="25%">
  132. <span t-field="o.total_value"
  133. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  134. </td>
  135. </tr>
  136. </table>
  137. </div>
  138. </div>
  139. <div class="row">
  140. <div name="board_commitee" class="col-xs-6 pull-left" style="position:relative;top:205px;color:black;font-family:Roboto-Regular;">
  141. <div style="position:relative;top:205px;">
  142. Pour le Conseil d'administration de <span t-field="o.company_id.name"/>.
  143. </div>
  144. <div style="position:relative;top:215px;">
  145. <strong><span t-field="o.company_id.board_representative"/></strong>
  146. </div>
  147. <div style="position:relative;top:225px;">
  148. <img t-if="o.company_id.signature_scan" t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan" style="width:200px;height:150px;padding-bottom:5px;"/>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </t>
  155. </template>
  156. <template id="cooperator_certificat_G001">
  157. <t t-call="theme_light.html_container">
  158. <t t-set="data_report_margin_top" t-value="10"/>
  159. <t t-set="data_report_header_spacing" t-value="5"/>
  160. <t t-set="data_report_dpi" t-value="110"/>
  161. <t t-foreach="docs" t-as="o">
  162. <t t-call="easy_my_coop.cooperator_certificat_G001_document" t-lang="o.lang"/>
  163. </t>
  164. </t>
  165. </template>
  166. </data>
  167. </openerp>