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.

47 lines
2.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record model="ir.ui.view" id="beesdoo_partner_form_view_remove_duplicate_cooperator_type">
  4. <field name="name">beesdoo.partner.form.view.remove_duplicate_cooperator_type</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="beesdoo_base.beesdoo_partner_form_view" />
  7. <field name="arch" type="xml">
  8. <field name="cooperator_type" position="replace" />
  9. </field>
  10. </record>
  11. <record model="ir.ui.view" id="beesdoo_easy_my_coop_partner_search_view">
  12. <field name="name">beesdoo_easy_my_coop.partner.search.view</field>
  13. <field name="model">res.partner</field>
  14. <field name="inherit_id" ref="beesdoo_base.beesdoo_partner_search_view" />
  15. <field name="arch" type="xml">
  16. <filter name="type_a" position="replace">
  17. <filter name="type_a" string="Cooperator type A" domain="[('cooperator_type', '=', 'share_a'), ('member', '=', True)]" />
  18. </filter>
  19. <filter name="type_b" position="replace">
  20. <filter name="type_b" string="Cooperator type B" domain="[('cooperator_type', '=', 'share_b'), ('member', '=', True)]" />
  21. </filter>
  22. <filter name="type_c" position="replace">
  23. <filter name="type_c" string="Cooperator type C" domain="[('cooperator_type', '=', 'share_c'), ('member', '=', True)]" />
  24. </filter>
  25. </field>
  26. </record>
  27. <record model="ir.ui.view" id="beesdoo_partner_form_view_remove_duplicate_header">
  28. <field name="name">beesdoo.partner.form.view.remove_duplicate_header</field>
  29. <field name="model">res.partner</field>
  30. <field name="inherit_id" ref="beesdoo_shift.super_coop_partner_inherited_view_form" />
  31. <field name="arch" type="xml">
  32. <xpath expr="header" position="replace" />
  33. <xpath expr="//field[@name='state']" position="before">
  34. <button string="Create Subscription" name="%(easy_my_coop.action_view_create_subscription)d"
  35. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_manager"/>
  36. <button string="Update info" name="%(easy_my_coop.action_view_update_partner_info)d"
  37. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_energiris_manager"/>
  38. </xpath>
  39. <xpath expr="//field[@name='info_session']" position="before">
  40. <field name="can_shop" />
  41. </xpath>
  42. </field>
  43. <field name="priority">99</field>
  44. </record>
  45. </odoo>