diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-04-20 13:40:48 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-04-24 08:48:27 +0000 |
| commit | e6a1e240f18bbc95475cd82154bb91a455704b15 (patch) | |
| tree | ada85e5906f28b10b441e8435daf6da372556cd2 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 62fbf6e4676a0d96b0df41d2e73df563c44d22d0 (diff) | |
[FIX] purchase_stock: return subcontracted product
- Create a product P with a subcontracted BOM
- Create a PO for P, 10 units
- Receive 10 units
- Return 3 units and specify 'To Refund'
13 units are considered received.
The reason is that we don't return to a vendor location, but an internal
location.
We subtract the quantity when the following conditions are met:
- we ask for a refund
- we return to an internal location
- the return location is not in the warehouse of the move
The solution is similar to odoo/enterprise#9647
opw-2235157
closes odoo/odoo#50119
X-original-commit: 5fd6c5b65e00dcac77b232b9f47b2292d86c6b0f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
