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.

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