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.

121 lines
4.4 KiB

  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/><br/><br/><br/><br/>
  14. <table class="title_table">
  15. <tr>
  16. <td>
  17. <span class="color_text" t-esc="time.strftime('%Y-%m-%d')"/>
  18. </td>
  19. <td>
  20. <div class="title_doc" style="font-size:16px">
  21. <span>COOPERATOR REGISTER</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </table>
  26. <br/><br/><br/><br/><br/>
  27. <table class="list_line_table_head" width="100%" >
  28. <t t-set="total_quantity" t-value="0"/>
  29. <t t-set="total_amount" t-value="0"/>
  30. <br />
  31. <tr>
  32. <th width="15%" style="text-align: center;" >Number</th>
  33. <th width="25%" style="text-align: center;" >Name</th>
  34. <th width="20%" style="text-align: center;" >Email</th>
  35. <th width="15%" style="text-align: center;" >Effective date</th>
  36. <th width="10%" style="text-align: center;" >Quantity</th>
  37. <th width="15%" style="text-align: center;" >Total</th>
  38. </tr>
  39. <t t-set="nb_ligne" t-value="0"/>
  40. <t t-foreach="docs" t-as="partner">
  41. <t t-set="new_partner" t-value="0"/>
  42. <t t-foreach="partner.share_ids" t-as="line">
  43. <t t-set="nb_ligne" t-value="nb_ligne+1"/>
  44. <tr height="40px">
  45. <div t-if="(nb_ligne%2)==1" >
  46. <div t-if="(new_partner)==0">
  47. <td class="lgn_impair" style="text-align:left;text-indent:20px;">
  48. <span t-field="partner.cooperator_register_number" ></span>
  49. </td>
  50. <td style="text-align:left">
  51. <span t-field="partner.name" ></span>
  52. </td>
  53. <td style="text-align:left">
  54. <span t-field="partner.email" ></span>
  55. </td>
  56. </div>
  57. <div t-if="(new_partner)!=0">
  58. <td class="lgn_impair" style="text-align:left;text-indent:20px;" colspan="3">
  59. </td>
  60. </div>
  61. <td>
  62. <span t-field="line.effective_date" ></span>
  63. </td>
  64. <td>
  65. <span t-field="line.share_number" ></span>
  66. </td>
  67. <td>
  68. <span t-field="line.total_amount_line"
  69. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  70. </td>
  71. </div>
  72. <div t-if="(nb_ligne%2)==0" >
  73. <div t-if="(new_partner)==0" >
  74. <td class="lgn_pair" style="text-align:left;text-indent:20px;background-color:#ffffff">
  75. <span t-field="partner.cooperator_register_number" ></span>
  76. </td>
  77. <td class="lgn_pair" style="background-color:#ffffff;text-align:left">
  78. <span t-field="partner.name" ></span>
  79. </td>
  80. <td class="lgn_pair" style="background-color:#ffffff;text-align:left">
  81. <span t-field="partner.email" ></span>
  82. </td>
  83. </div>
  84. <div t-if="(new_partner)!=0" style="background-color:#ffffff">
  85. <td class="lgn_pair" style="text-align:left;text-indent:20px;background-color:#ffffff" colspan="3">
  86. </td>
  87. </div>
  88. <td class="lgn_pair" style="background-color:#ffffff">
  89. <span t-field="line.effective_date"> </span>
  90. </td>
  91. <td class="lgn_pair" style="background-color:#ffffff">
  92. <span t-field="line.share_number" ></span>
  93. </td>
  94. <td class="lgn_pair" style="background-color:#ffffff">
  95. <span t-field="line.total_amount_line"
  96. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  97. </td>
  98. </div>
  99. </tr>
  100. <t t-set="new_partner" t-value="new_partner+1"/>
  101. </t>
  102. </t>
  103. </table>
  104. </div>
  105. </t>
  106. <!--</t>-->
  107. </template>
  108. </odoo>