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" ?>
  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
  11. name="zip_id"
  12. options="{'create_name_field': 'city'}"
  13. colspan="4"
  14. placeholder="City completion"
  15. />
  16. </field>
  17. <field name="city" position="after">
  18. <field name="country_enforce_cities" invisible="1" />
  19. <field
  20. name='city_id'
  21. attrs="{'invisible': [('country_enforce_cities', '=', False)]}"
  22. />
  23. </field>
  24. <field name="city" position="attributes">
  25. <attribute name="attrs">
  26. {'invisible': [('country_enforce_cities', '=', False)]}
  27. </attribute>
  28. </field>
  29. </field>
  30. </record>
  31. </odoo>