Daily updates from Odoo
Tuesday, October 30, 2018
1 change · master
Code cleanup and technical improvements
Purchase order lines now calculate received quantities using the same approach as sales deliveries. This makes receipt tracking more consistent across purchases, stock, and manufacturing flows, and easier to adapt for future business needs.
Original PR description
The received quantity on Purchase Order line can be compared to the delivered qty on Sales Order line. It is now time for both to share the same mecanism (introduced in 3bf8a62e0dd99f7dad42718f895abf4fd53f996f). This commit sets `qty_received` as a computed field. The value can be computed based on - manual value; for services (all the time), and consummable product when stock is not install. - stock moves; for stockable and consummable products when stock is installed. This is now easier to extend the way the received quantity need to be computed (like in sale). Task #1850689 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