[FIX] base_address_city: city field without CSS class
Have the module 'City Addresses' installed. Open a contact, with the city field and the zip code field filled. Before this commit, there is a display error, the city and the zip code are bonded. This occurs because the 'City Addresses' module override all views with the city field. In this override the city field don't had a CSS class. Now, the city and the zip code are display correctly. opw-1958175 closes odoo/odoo#32455 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
@@ -31,13 +31,13 @@ class Partner(models.Model):
|
||||
replacement_xml = """
|
||||
<div>
|
||||
<field name="country_enforce_cities" invisible="1"/>
|
||||
<field name='city' placeholder="%(placeholder)s"
|
||||
<field name='city' placeholder="%(placeholder)s" class="o_address_city"
|
||||
attrs="{
|
||||
'invisible': [('country_enforce_cities', '=', True), ('city_id', '!=', False)],
|
||||
'readonly': [('type', '=', 'contact')%(parent_condition)s]
|
||||
}"
|
||||
/>
|
||||
<field name='city_id' placeholder="%(placeholder)s" string="%(placeholder)s"
|
||||
<field name='city_id' placeholder="%(placeholder)s" string="%(placeholder)s" class="o_address_city"
|
||||
context="{'default_country_id': country_id,
|
||||
'default_name': city,
|
||||
'default_zipcode': zip,
|
||||
|
||||
Reference in New Issue
Block a user