Thursday, December 2, 2021
2 changes · master
Resolved issues and error corrections
Child contacts now correctly inherit the city selection from their parent contact when addresses are synchronized. This prevents mismatched address data and keeps contact records more consistent for users and downstream processes.
Original PR description
Description of the issue/feature this PR addresses: `_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, an inconsistency is created between the value of city_id and the value of the parent. [1]: https://github.com/odoo/odoo/blob/20648ef21/odoo/addons/base/models/res_partner.py#L429 Related to: https://github.com/OCA/partner-contact/pull/1179#discussion_r754219521 cc @Tecnativa TT33047 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes a compatibility issue in the Google Calendar and Microsoft Calendar integrations so they continue working correctly with Python 3.10. The change is minor and helps prevent future runtime failures caused by deprecated import behavior.
Original PR description
From warning: py.warnings: /usr/lib/python3/dist-packages/html5lib/_trie/_base.py:3: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working