Odoo modules extending contacts / partners
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.

31 lines
1.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_partner_form_inherit_base" model="ir.ui.view">
  4. <field name="name">res.partner.view.form.inherit</field>
  5. <field name="model">res.partner</field>
  6. <field name="inherit_id" ref="base.view_partner_form" />
  7. <field name="priority">82</field>
  8. <field name="arch" type="xml">
  9. <field name="state_id" position="attributes">
  10. <attribute name="attrs">{'readonly':[('country_department_id','!=',False)]}</attribute>
  11. <attribute name="options">{'no_open':1}</attribute>
  12. </field>
  13. <field name="country_department_id" position="attributes">
  14. <attribute name="options">{'no_open':1}</attribute>
  15. </field>
  16. </field>
  17. </record>
  18. <record id="view_res_partner_filter_inherit_base" model="ir.ui.view">
  19. <field name="name">res.partner.view.search.inherit</field>
  20. <field name="model">res.partner</field>
  21. <field name="inherit_id" ref="base.view_res_partner_filter" />
  22. <field name="priority">82</field>
  23. <field name="arch" type="xml">
  24. <filter name="country_department_groupby" position="after">
  25. <filter name="state_groupby" string="State" context="{'group_by': 'state_id'}" />
  26. </filter>
  27. </field>
  28. </record>
  29. </odoo>