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.

115 lines
5.8 KiB

  1. <openerp>
  2. <data>
  3. <record id="view_partner_form_easy_my_coop" model="ir.ui.view">
  4. <field name="name">res.partner.form.easy_my_coop</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="/form/sheet/group" position='before'>
  9. <group>
  10. <field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/>
  11. <field name="cooperator" groups="easy_my_coop.group_energiris_super_manager"/>
  12. <field name="member" groups="easy_my_coop.group_energiris_super_manager"/>
  13. <field name="cooperator_type" attrs="{'invisible':[('member','=',False)]}"/>
  14. <field name="effective_date" attrs="{'invisible':[('member','=',False)]}"/>
  15. </group>
  16. <group>
  17. <field name="birthdate" attrs="{'invisible':[('is_company','=',True)]}"/>
  18. <field name="gender" attrs="{'invisible':[('is_company','=',True)]}"/>
  19. </group>
  20. </xpath>
  21. <xpath expr="//page[@name='sales_purchases']" position='after'>
  22. <page string="Shares" name="share" attrs="{'invisible':[('member','=',False)]}" groups="easy_my_coop.group_energiris_user">
  23. <group>
  24. <field name="number_of_share"/>
  25. <field name="total_value"/>
  26. </group>
  27. <field name="share_ids">
  28. <tree>
  29. <field name="effective_date"/>
  30. <field name="share_short_name"/>
  31. <field name="share_number" sum="Total of shares"/>
  32. <field name="share_unit_price"/>
  33. <field name="total_amount_line" sum="Total subscribed amount"/>
  34. </tree>
  35. </field>
  36. </page>
  37. </xpath>
  38. </field>
  39. </record>
  40. <record id="view_partner_tree_easy_my_coop" model="ir.ui.view">
  41. <field name="name">res.partner.tree.easy_my_coop</field>
  42. <field name="model">res.partner</field>
  43. <field name="inherit_id" ref="base.view_partner_tree"/>
  44. <field name="arch" type="xml">
  45. <xpath expr="/tree/field[@name='display_name']" position='after'>
  46. <field name="cooperator_register_number" />
  47. <field name="cooperator_type"/>
  48. <field name="effective_date"/>
  49. </xpath>
  50. </field>
  51. </record>
  52. <record id="view_res_partner_filter_coop" model="ir.ui.view">
  53. <field name="name">res.partner.select</field>
  54. <field name="model">res.partner</field>
  55. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  56. <field name="arch" type="xml">
  57. <xpath expr="//filter[@name='supplier']" position='after'>
  58. <filter string="Cooperators" name="cooperator" domain="[('cooperator','=',1)]" help="Cooperator Partners"/>
  59. </xpath>
  60. <filter name="salesperson" position="before">
  61. <filter name="Cooperator Type" context="{'group_by': 'cooperator_type'}"/>
  62. </filter>
  63. </field>
  64. </record>
  65. <menuitem name="Cooperators" id="menu_easy_my_coop_main_coop" parent="menu_main_easy_my_coop" sequence="5" />
  66. <record id="action_partner_cooperator_form" model="ir.actions.act_window">
  67. <field name="name">Cooperator</field>
  68. <field name="type">ir.actions.act_window</field>
  69. <field name="res_model">res.partner</field>
  70. <field name="view_type">form</field>
  71. <field name="view_mode">kanban,tree,form</field>
  72. <field name="domain">[('cooperator','=',True),('member','=',True)]</field>
  73. <field name="context">{'default_cooperator':1, 'search_default_cooperator':1}</field>
  74. <field name="filter" eval="True"/>
  75. <field name="help" type="html">
  76. <p class="oe_view_nocontent_create">
  77. Click to add a contact in your address book.
  78. </p><p>
  79. OpenERP helps you easily track all activities related to
  80. a cooperator: discussions, history of business opportunities,
  81. documents, etc.
  82. </p>
  83. </field>
  84. </record>
  85. <menuitem id="menu_easy_my_coop_cooperator" name="Cooperators" parent="menu_easy_my_coop_main_coop" action="action_partner_cooperator_form" sequence="100"/>
  86. <record id="action_partner_cooperator_candidate_form" model="ir.actions.act_window">
  87. <field name="name">Cooperator</field>
  88. <field name="type">ir.actions.act_window</field>
  89. <field name="res_model">res.partner</field>
  90. <field name="view_type">form</field>
  91. <field name="view_mode">kanban,tree,form</field>
  92. <field name="domain">[('cooperator','=',True),('member','=',False)]</field>
  93. <field name="context">{'default_cooperator':1, 'search_default_cooperator':1}</field>
  94. <field name="filter" eval="True"/>
  95. <field name="help" type="html">
  96. <p class="oe_view_nocontent_create">
  97. Click to add a contact in your address book.
  98. </p><p>
  99. OpenERP helps you easily track all activities related to
  100. a cooperator: discussions, history of business opportunities,
  101. documents, etc.
  102. </p>
  103. </field>
  104. </record>
  105. <menuitem id="menu_easy_my_coop_cooperator_candidate" name="Cooperator Candidates" parent="menu_easy_my_coop_main_coop" action="action_partner_cooperator_candidate_form" sequence="150"/>
  106. </data>
  107. </openerp>