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.

145 lines
7.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <odoo>
  2. <template id="cooperator_register_G001">
  3. <t t-call="web.html_container">
  4. <t t-set="data_report_margin_top" t-value="5"/>
  5. <t t-set="data_report_header_spacing" t-value="0"/>
  6. <t t-set="data_report_dpi" t-value="110"/>
  7. <!--<t t-call="theme_light.report_layout_002">-->
  8. <div class="page">
  9. <head>
  10. <!--<link href="/theme_light/static/css/invoice_G002.css" rel="stylesheet"/>-->
  11. </head>
  12. <!--<t t-call="theme_light.list_header_G002"/>-->
  13. <br/>
  14. <br/>
  15. <br/>
  16. <br/>
  17. <br/>
  18. <table class="title_table">
  19. <tr>
  20. <td>
  21. <span class="color_text"
  22. t-esc="time.strftime('%Y-%m-%d')"/>
  23. </td>
  24. <td>
  25. <div class="title_doc" style="font-size:16px">
  26. <span>COOPERATOR REGISTER</span>
  27. </div>
  28. </td>
  29. </tr>
  30. </table>
  31. <br/>
  32. <br/>
  33. <br/>
  34. <br/>
  35. <br/>
  36. <table class="list_line_table_head" width="100%">
  37. <t t-set="total_quantity" t-value="0"/>
  38. <t t-set="total_amount" t-value="0"/>
  39. <br/>
  40. <tr>
  41. <th width="15%" style="text-align: center;">Number</th>
  42. <th width="25%" style="text-align: center;">Name</th>
  43. <th width="20%" style="text-align: center;">Email</th>
  44. <th width="15%" style="text-align: center;">Effective
  45. date
  46. </th>
  47. <th width="10%" style="text-align: center;">Quantity
  48. </th>
  49. <th width="15%" style="text-align: center;">Total</th>
  50. </tr>
  51. <t t-set="nb_ligne" t-value="0"/>
  52. <t t-foreach="docs" t-as="partner">
  53. <t t-set="new_partner" t-value="0"/>
  54. <t t-foreach="partner.share_ids" t-as="line">
  55. <t t-set="nb_ligne" t-value="nb_ligne+1"/>
  56. <tr height="40px">
  57. <div t-if="(nb_ligne%2)==1">
  58. <div t-if="(new_partner)==0">
  59. <td class="lgn_impair"
  60. style="text-align:left;text-indent:20px;">
  61. <span t-field="partner.cooperator_register_number"></span>
  62. </td>
  63. <td style="text-align:left">
  64. <span t-field="partner.name"></span>
  65. </td>
  66. <td style="text-align:left">
  67. <span t-field="partner.email"></span>
  68. </td>
  69. </div>
  70. <div t-if="(new_partner)!=0">
  71. <td class="lgn_impair"
  72. style="text-align:left;text-indent:20px;"
  73. colspan="3">
  74. </td>
  75. </div>
  76. <td>
  77. <span t-field="line.effective_date"></span>
  78. </td>
  79. <td>
  80. <span t-field="line.share_number"></span>
  81. </td>
  82. <td>
  83. <span t-field="line.total_amount_line"
  84. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  85. </td>
  86. </div>
  87. <div t-if="(nb_ligne%2)==0">
  88. <div t-if="(new_partner)==0">
  89. <td class="lgn_pair"
  90. style="text-align:left;text-indent:20px;background-color:#ffffff">
  91. <span t-field="partner.cooperator_register_number"></span>
  92. </td>
  93. <td class="lgn_pair"
  94. style="background-color:#ffffff;text-align:left">
  95. <span t-field="partner.name"></span>
  96. </td>
  97. <td class="lgn_pair"
  98. style="background-color:#ffffff;text-align:left">
  99. <span t-field="partner.email"></span>
  100. </td>
  101. </div>
  102. <div t-if="(new_partner)!=0"
  103. style="background-color:#ffffff">
  104. <td class="lgn_pair"
  105. style="text-align:left;text-indent:20px;background-color:#ffffff"
  106. colspan="3">
  107. </td>
  108. </div>
  109. <td class="lgn_pair"
  110. style="background-color:#ffffff">
  111. <span t-field="line.effective_date"></span>
  112. </td>
  113. <td class="lgn_pair"
  114. style="background-color:#ffffff">
  115. <span t-field="line.share_number"></span>
  116. </td>
  117. <td class="lgn_pair"
  118. style="background-color:#ffffff">
  119. <span t-field="line.total_amount_line"
  120. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  121. </td>
  122. </div>
  123. </tr>
  124. <t t-set="new_partner" t-value="new_partner+1"/>
  125. </t>
  126. </t>
  127. </table>
  128. </div>
  129. </t>
  130. <!--</t>-->
  131. </template>
  132. </odoo>