odoo14-dev-environment/patches/20210821_base-location_no-zip-from-city.patch

13 lines
661 B
Diff

diff -rupN base_location/models/res_partner.py base_location.patch/models/res_partner.py
--- base_location/models/res_partner.py 2021-08-20 17:44:18.311780135 -0500
+++ base_location.patch/models/res_partner.py 2021-08-21 10:08:31.178805592 -0500
@@ -32,7 +32,7 @@ class ResPartner(models.Model):
)
state_id = fields.Many2one(compute="_compute_state_id", readonly=False, store=True)
- @api.depends("state_id", "country_id", "city_id", "zip")
+ @api.depends("state_id", "country_id")
def _compute_zip_id(self):
"""Empty the zip auto-completion field if data mismatch when on UI."""
for record in self.filtered("zip_id"):