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.

185 lines
8.7 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <odoo>
  2. <data>
  3. <menuitem name="Dividend" id="menu_easy_my_coop_main_dividend"
  4. parent="easy_my_coop.menu_main_easy_my_coop"
  5. groups="easy_my_coop.group_easy_my_coop_user" sequence="30"/>
  6. <record id="dividend_year_form" model="ir.ui.view">
  7. <field name="name">dividend.year.form</field>
  8. <field name="model">dividend.year</field>
  9. <field name="arch" type="xml">
  10. <form string="Dividend year">
  11. <header>
  12. <button name="compute_dividend"
  13. string="Compute dividend" type="object"
  14. class="oe_highlight" groups="base.group_user"/>
  15. </header>
  16. <sheet>
  17. <group>
  18. <group>
  19. <field name="name"/>
  20. <field name="percentage"/>
  21. <field name="grand_total_dividend"/>
  22. <field name="grand_total_taxes"/>
  23. </group>
  24. <group>
  25. <field name="date_from"/>
  26. <field name="date_to"/>
  27. <field name="withholding_tax"/>
  28. </group>
  29. </group>
  30. <notebook>
  31. <page string="Dividend line">
  32. <field name="dividend_ids">
  33. <tree>
  34. <field name="coop_number"/>
  35. <field name="partner_id"/>
  36. <field name="dividend_amount"
  37. sum="Total dividend"/>
  38. <field name="dividend_amount_net"
  39. sum="Total dividend net"/>
  40. <field name="dividend_taxes"
  41. sum="Total dividend taxes"/>
  42. </tree>
  43. </field>
  44. </page>
  45. <page string="Detailed dividend line">
  46. <field name="detailed_dividend_ids">
  47. <tree>
  48. <field name="coop_number"/>
  49. <field name="partner_id"/>
  50. <field name="share_number"/>
  51. <field name="share_unit_price"/>
  52. <field name="effective_date"/>
  53. <field name="days"/>
  54. <field name="total_amount_line"/>
  55. <field name="coeff"/>
  56. <field name="dividend_amount"
  57. string="Dividend"
  58. sum="Total dividend"/>
  59. </tree>
  60. </field>
  61. </page>
  62. </notebook>
  63. </sheet>
  64. </form>
  65. </field>
  66. </record>
  67. <record id="dividend_year_tree" model="ir.ui.view">
  68. <field name="name">dividend.year.tree</field>
  69. <field name="model">dividend.year</field>
  70. <field name="arch" type="xml">
  71. <tree string="Dividend year">
  72. <field name="name"/>
  73. <field name="percentage"/>
  74. </tree>
  75. </field>
  76. </record>
  77. <record id="dividend_year_action" model="ir.actions.act_window">
  78. <field name="name">Dividend year</field>
  79. <field name="res_model">dividend.year</field>
  80. <field name="view_type">form</field>
  81. <field name="view_id" ref="dividend_year_tree"/>
  82. </record>
  83. <menuitem action="dividend_year_action" name="Dividend"
  84. id="menu_dividend_year"
  85. parent="menu_easy_my_coop_main_dividend" sequence="10"/>
  86. <record id="view_detailed_dividend_line_filter" model="ir.ui.view">
  87. <field name="name">detailed.dividend.line.select</field>
  88. <field name="model">detailed.dividend.line</field>
  89. <field name="arch" type="xml">
  90. <search string="Search detailed dividend line">
  91. <field name="partner_id"/>
  92. <field name="coop_number"/>
  93. <filter name="dividend_year_id" string="Dividend Year"/>
  94. <separator/>
  95. <filter string="Partner" domain="[]"
  96. context="{'group_by':'partner_id'}"/>
  97. <filter string="Dividend Year" domain="[]"
  98. context="{'group_by':'dividend_year_id'}"/>
  99. </search>
  100. </field>
  101. </record>
  102. <record id="detailed_dividend_line_tree" model="ir.ui.view">
  103. <field name="name">detailed.dividend.line.tree</field>
  104. <field name="model">detailed.dividend.line</field>
  105. <field name="arch" type="xml">
  106. <tree string="Detailed dividend lines">
  107. <field name="dividend_year_id"/>
  108. <field name="coop_number"/>
  109. <field name="partner_id"/>
  110. <field name="share_number"/>
  111. <field name="share_unit_price"/>
  112. <field name="effective_date"/>
  113. <field name="days"/>
  114. <field name="total_amount_line"/>
  115. <field name="coeff"/>
  116. <field name="dividend_amount" string="Dividend"
  117. sum="Total dividend"/>
  118. </tree>
  119. </field>
  120. </record>
  121. <record id="detailed_dividend_line_action"
  122. model="ir.actions.act_window">
  123. <field name="name">Detailed dividend lines</field>
  124. <field name="res_model">detailed.dividend.line</field>
  125. <field name="view_type">form</field>
  126. <field name="view_id" ref="detailed_dividend_line_tree"/>
  127. </record>
  128. <menuitem action="detailed_dividend_line_action"
  129. name="Detailed dividend lines" id="menu_det_dividend_line"
  130. parent="menu_easy_my_coop_main_dividend" sequence="20"/>
  131. <record id="view_dividend_line_filter" model="ir.ui.view">
  132. <field name="name">dividend.line.select</field>
  133. <field name="model">dividend.line</field>
  134. <field name="arch" type="xml">
  135. <search string="Search Subscription">
  136. <field name="partner_id"/>
  137. <field name="coop_number"/>
  138. <filter name="dividend_year_id" string="Dividend Year"/>
  139. <separator/>
  140. <group expand="0" string="Group By...">
  141. <filter string="Partner" domain="[]"
  142. context="{'group_by':'partner_id'}"/>
  143. <filter string="Dividend Year" domain="[]"
  144. context="{'group_by':'dividend_year_id'}"/>
  145. </group>
  146. </search>
  147. </field>
  148. </record>
  149. <record id="dividend_line_tree" model="ir.ui.view">
  150. <field name="name">dividend.line.tree</field>
  151. <field name="model">dividend.line</field>
  152. <field name="arch" type="xml">
  153. <tree string="dividend lines">
  154. <field name="dividend_year_id"/>
  155. <field name="coop_number"/>
  156. <field name="partner_id"/>
  157. <field name="account_number"/>
  158. <field name="dividend_amount" sum="Total dividend"/>
  159. <field name="dividend_amount_net" sum="Total dividend net"/>
  160. <field name="dividend_taxes" sum="Total dividend taxes"/>
  161. </tree>
  162. </field>
  163. </record>
  164. <record id="dividend_line_action" model="ir.actions.act_window">
  165. <field name="name">Dividend lines</field>
  166. <field name="res_model">dividend.line</field>
  167. <field name="view_type">form</field>
  168. <field name="view_id" ref="dividend_line_tree"/>
  169. </record>
  170. <menuitem action="dividend_line_action" name="Dividend lines"
  171. id="menu_dividend_line"
  172. parent="menu_easy_my_coop_main_dividend" sequence="30"/>
  173. </data>
  174. </odoo>