Browse Source
`_address_fields` are used by `update_address` [1], which is in turn called by `_fields_sync` and `_children_sync`. This mechanism is in charge of synchronizing parent/children address fields for contacts of type == "contact", as they don't really have an address of their own. They simply copy the address of their parent. Without this fix, not only the zip_id is not sync'ed, but also in some cases an exception may be raised by `_check_zip_id`, due to only some fields being sync'ed but not all, creating inconsistencies between zip_id and other address fields. [1]: https://github.com/odoo/odoo/blob/20648ef21/odoo/addons/base/models/res_partner.py#L42914.0
Ivàn Todorovich
3 years ago
2 changed files with 27 additions and 0 deletions
Loading…
Reference in new issue