odoo/odoo#188352
Created by fw-bot
Merged
at 638d93694c1a322a209e635ace43026b94202641
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:master-17.0-negative-PO-delivered-whe-OKIM-fw
- head
- c4efd117a5f937173b129e532a1a68a1848dd61b
- merged
- 10 months ago by Logistics, William Henrotin (whe)
odoo/odoo | |
---|---|
17.0 | #187946 |
saas-17.2 | #188325 |
saas-17.4 | #188334 |
18.0 | #188340 |
saas-18.2 | |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #188352 |
[FW][FIX] purchase_stock: decrease received quantity if no return
In case the quantity of a purchase order line is negative the generated picking will be a delivery but not a return. Meaning validating this delivery will not update quantity received on the purchase order line. This commit makes sur the to_refund
key on stock move impact the value of qty_received
only if the stock move is actually a return.
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
Forward-Port-Of: #187946