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.

163 lines
7.8 KiB

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