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.

18 lines
710 B

  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="arch" type="xml">
  8. <field name="state_id" position="attributes">
  9. <attribute name="attrs">{'readonly':[('country_department_id','!=',False)]}</attribute>
  10. <attribute name="options">{'no_open':1}</attribute>
  11. </field>
  12. <field name="country_department_id" position="attributes">
  13. <attribute name="options">{'no_open':1}</attribute>
  14. </field>
  15. </field>
  16. </record>
  17. </odoo>