Daily updates from Odoo
Wednesday, July 3, 2019
7 changes · master
Enhancements to existing features
This change refreshes internal performance test benchmarks for the mail testing area so they match the current application behavior. It also reorganizes shared test setup to keep the test code easier to maintain, with no expected impact on end users.
The QWeb template documentation now marks several older loop helper variables and integer loop usage as deprecated. This helps developers avoid relying on rarely used shortcuts that can be calculated directly, reducing future maintenance risk.
Original PR description
These variables aren't used in Odoo and can be easily computed anyway. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adapts several business apps to a shared system setting for decimal precision, replacing older module-level setup. It keeps calculations and displayed numeric values consistent while simplifying maintenance across payroll, manufacturing, quality, rental, subscription, and invoicing features.
Original PR description
<b> Task: </b> https://www.odoo.com/web?#id=48198&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 <b> Pad:</b> https://pad.odoo.com/p/r.b7203e0259fe5f6c20fb86a7abad9f21 Community PR odoo/odoo#25467
Resolved issues and error corrections
Partner profile images that are taller than they are wide will no longer be squeezed into a square. This keeps contact photos looking accurate and more professional in partner records.
Original PR description
**Partner images with greater height than width gets stretched into a square.** Issue: When you choose an image of a partner whose height is greater than it's width, it gets stretched into a square. After this PR is merged, partner image will be prevented from being squeezed and stretched into a square. Task Link: https://www.odoo.com/web#id=1982082&action=327&model=project.task&view_type=form&menu_id=4720 Pad Link: https://pad.odoo.com/p/r.8563a0edc34dfef5c2467d2d654c3bdc -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Code cleanup and technical improvements
This update removes an outdated internal coding pattern across many Odoo apps and replaces it with the current recordset-based approach. It prepares the platform for removal of deprecated framework behavior, improving maintainability and reducing the risk of unexpected developer-facing behavior without introducing a direct business workflow change.
Original PR description
Adapt all code that was using `api.one` to recordset-style method and remove any and all calls to `api.one` in preparation for its removal. Related to https://github.com/odoo/enterprise/pull/3277
Inventory adjustments that are still in draft or have been cancelled can now be deleted. This keeps stock records easier to clean up when adjustments are no longer needed, without affecting completed inventory changes.
This update removes use of an outdated internal programming pattern across several Odoo Enterprise apps and adapts the code to the newer recordset approach. It prepares the system for future platform changes while keeping existing business features working as expected.
Original PR description
Adapt all code that was using `api.one` to recordset-style method and remove any and all calls to `api.one` in preparation for its removal. Related to https://github.com/odoo/odoo/pull/29511