Friday, April 12, 2019
2 changes · master
Enhancements to existing features
Sales order customization details for product variants are now carried through to stock moves and manufacturing orders. This helps warehouse and production teams see the exact customer-specific product information they need without checking the original sales order.
Original PR description
Description of the issue/feature this PR addresses: Display the variant information saved in SO line to stock maintainers and manufacturers Current behavior before PR: When a product has a custom attribute value or one of its attribute is specified as "no variant", the product configuration information is only saved in Sale Order lines descriptions and not displayed for stock moves and mrp productions Desired behavior after PR is merged: When the product is customizable and the SO line description is different from the product description (expected to contain the customization information), display the SO line description on stock moves and mrp productions. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Resolved issues and error corrections
This fix prevents Odoo from temporarily showing or reusing an outdated value after a saved field is changed during the save process. It improves data accuracy in cases such as image resizing, custom save logic, or database-side adjustments, with little expected performance impact.
Original PR description
Before this commit, the field assignment would cache the value it received, even if that value was altered during `write`. This can happen if `write` is overridden (for example to resize images), or it could also happen if a database procedure is altering the value. To fix this issue, we do not cache the value that was assigned. This implies that additional queries may be necessary to retrieve the value, but those were already necessary most of the time, so it does not have a significant impact on performances.