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.

27 lines
1.0 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <!-- Add cities to the company form -->
  4. <record id="view_company_form_city" model="ir.ui.view">
  5. <field name="name">res.company.form.city</field>
  6. <field name="model">res.company</field>
  7. <field name="inherit_id" ref="base.view_company_form" />
  8. <field name="arch" type="xml">
  9. <field name="street2" position="after">
  10. <field name="zip_id"
  11. options="{'create_name_field': 'city'}"
  12. colspan="4"
  13. placeholder="City completion" />
  14. </field>
  15. <field name="city" position="after">
  16. <field name="country_enforce_cities" invisible="1"/>
  17. <field name='city_id'
  18. attrs="{'invisible': [('country_enforce_cities', '=', False)]}"/>
  19. </field>
  20. <field name="city" position="attributes">
  21. <attribute name="invisible">[('country_enforce_cities', '=', True)]</attribute>
  22. </field>
  23. </field>
  24. </record>
  25. </odoo>