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.

128 lines
4.4 KiB

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