Daily updates from Odoo
Tuesday, April 16, 2019
2 changes
Code cleanup and technical improvements
Several internal fields named "type" were renamed to more specific names across Odoo modules. This reduces conflicts with standard Python behavior, making the platform easier to maintain and less prone to technical issues without changing day-to-day user workflows.
Original PR description
**Description of the issue/feature this PR addresses:** Follow-up of https://github.com/odoo/odoo/pull/27262. **Current behavior before PR:** Many models have the selection field `type`, which overwrites the python method [type](https://docs.python.org/3/library/functions.html#type). **Desired behavior after PR is merged:** Some `type` fields of several models have been renamed to _something_type_. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update standardizes several internal field names across accounting, product, CRM, document sharing, attachments, and partner records. It mainly improves maintainability and consistency for future development, with little expected direct impact on day-to-day users.
Original PR description
Follow-up of https://github.com/odoo/odoo/pull/27599. I have not tested it, so maybe I left few cases to adapt, but once the community PR is merged, then it will be fast and easy to detect the remaining cases and adapt them.