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.

110 lines
5.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="cooperator_certificat_G001_document">
  4. <t t-call="web.external_layout">
  5. <t t-set="address">
  6. <address t-field="o.commercial_partner_id" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
  7. </t>
  8. <div class="page mt32">
  9. <h2>
  10. <span>Cooperator Certificate</span>
  11. </h2>
  12. <p name="label_coop_number" class="mt16">
  13. <span t-field="o.name"/>
  14. is recorded in the register of cooperators under number
  15. <span t-field="o.cooperator_register_number"/>.
  16. </p>
  17. <table class="table table-sm o_main_table mt16" name="invoice_line_table">
  18. <thead>
  19. <tr>
  20. <t t-set="colspan" t-value="5"/>
  21. <th class="text-left">Effective date</th>
  22. <th class="text-right">Share type</th>
  23. <th class="text-right">Quantity</th>
  24. <th class="text-right">Unit Price</th>
  25. <th class="text-right">Total</th>
  26. </tr>
  27. </thead>
  28. <tbody class="invoice_tbody">
  29. <t t-set="nb_ligne" t-value="0"/>
  30. <t t-foreach="o.share_ids" t-as="line">
  31. <tr>
  32. <td class="text-left" name="effective_date">
  33. <span t-field="line.effective_date"/>
  34. </td>
  35. <td class="text-right" name="share_short_name">
  36. <span t-field="line.share_short_name"/>
  37. </td>
  38. <td class="text-right" name="share_number">
  39. <span t-field="line.share_number"/>
  40. </td>
  41. <td t-attf-class="text-right {{ 'd-none d-md-table-cell' if report_type == 'html' else '' }}"
  42. name="share_unit_price">
  43. <span t-field="line.share_unit_price"
  44. t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
  45. </td>
  46. <td class="text-right" name="total_amount_line">
  47. <span t-field="line.total_amount_line"
  48. t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
  49. </td>
  50. </tr>
  51. </t>
  52. </tbody>
  53. </table>
  54. <div class="clearfix">
  55. <div name="total_table" id="total" class="row">
  56. <div t-attf-class="#{'col-4' if report_type != 'html' else 'col-sm-7 col-md-5'} ml-auto">
  57. <table class="table table-sm">
  58. <tr class="border-black o_total">
  59. <td><strong>Total</strong></td>
  60. <td class="text-right">
  61. <span t-field="o.number_of_share"/>
  62. <span> share(s) </span>
  63. </td>
  64. <td class="text-right">
  65. <span t-field="o.total_value"
  66. t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
  67. </td>
  68. </tr>
  69. </table>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="row mt32">
  74. <div name="board_commitee" class="col-sm-6">
  75. <p>
  76. For the board of <span t-field="o.company_id.name"/>.
  77. </p>
  78. <p>
  79. <strong>
  80. <span t-field="o.company_id.board_representative"/>
  81. </strong>
  82. </p>
  83. <img t-if="o.company_id.signature_scan"
  84. t-attf-class="mt16 w-50"
  85. t-attf-style="{{ 'min-width: 100px; max-width: 250px' if report_type == 'pdf' else '' }}"
  86. t-att-src="'data:image/png;base64,%s' % o.company_id.signature_scan.decode()"/>
  87. </div>
  88. </div>
  89. </div>
  90. </t>
  91. </template>
  92. <template id="cooperator_certificat_G001">
  93. <t t-call="web.html_container">
  94. <t t-foreach="docs" t-as="o">
  95. <t t-call="easy_my_coop.cooperator_certificat_G001_document" t-lang="o.lang"/>
  96. </t>
  97. </t>
  98. </template>
  99. </odoo>