[16.0][FIX]purchase_manual_delivery: qty compute fixes
Fixes the following 2 errors:
- _compute_existing_qty not recomputed when changing product_uom_qty
- Line is shown as pending_to_receive when existing_qty is higher than product_uom_qty
How-to replicate 2.:
- Login as admin
- Go to "Purchase"
- Create a new one
- Add any "Vendor" and set "Purchase manual delivery" to True
- Add any product with "Quantity" = 5
- Save and "Confirm order"
- Click "Create incoming shipment"
- Change "Quantity to 4"
- Click "Create and view picking"
- Change value of "Done" to 6 (any amount higher than the original expected (product_uom_qty) is fine)
- Validate and go back to the Purchase Order
- The Purchase Order Line is now highlighted blue because its value for pending_to_receive is True
/ocabot merge patch
@HviorForgeFlow The merge process could not start, because command `git merge --no-ff -m 'Merge PR #2380 into 16.0
Signed-off-by HviorForgeFlow' tmp-pr-2380` failed with output:
Auto-merging purchase_manual_delivery/models/purchase_order.py
CONFLICT (content): Merge conflict in purchase_manual_delivery/models/purchase_order.py
Automatic merge failed; fix conflicts and then commit the result.
@ChristophAbenthungCibex can you rebase this branch? Conflict due to https://github.com/OCA/purchase-workflow/pull/2385
@ChristophAbenthungCibex can you rebase this branch? Conflict due to #2385
@HviorForgeFlow Done.
/ocabot merge patch
Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-2380-by-HviorForgeFlow-bump-patch, awaiting test results.
Congratulations, your PR was merged at 436e979a6aba541f0e1999af184bd8d3b04e3908. Thanks a lot for contributing to OCA. ❤️