Monday, June 7, 2021
2 changes · master
Resolved issues and error corrections
This fixes an issue where manufacturing backorders created from the simplified view could have incorrect component quantities after extra materials were consumed. The change keeps follow-up manufacturing orders accurate, helping avoid inventory discrepancies and production planning errors.
Original PR description
The problem arises when a user creates a backorder for a MO after registering over-consumption of some components through the simplified view. The quantities of the components of the new backordered MO are then wrong. Components that were over consumed in the first MO will have smaller quantities in the new MO, the difference being the amount over consumed. This problem does not appear in the case of the Tablet View where a proper recalculation of quantities is done. This commit fixes the problem reusing the code of the Tablet View to calculate the quantities. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
When a product template image or similar shared field is updated, related product variants that depend on that template are now refreshed as well. This helps prevent outdated product images from appearing in customer-facing areas such as e-commerce pages.
Original PR description
Before this commit, products relying on values of template fields (i.e. image) were not considered updated when their fallback template field was updated. After this commit, upon update of a template field, all products that would fallback on that template for that field are "touched". This avoids side-effects such as displaying an outdated template image in the e-commerce for a given product. task-2477438 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