diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-04-04 12:05:39 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-04-04 12:05:39 +0000 |
| commit | 8b6be83f70ea7b25dd7f66bd8889a5b92b3ec658 (patch) | |
| tree | c1fcb738c2798b6220186e1b87cca18a55629ab5 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 8557bcfa302de7aca4b5dadb35841cd52f9ebfff (diff) | |
[FIX] stock_account: zero quantity
- Set up a stockable product for which the product category is FIFO / Perpetual
- Create a PO for this product with a unit price of 100$
- Confirm the purchase order
- Receive the item in stock
- Create a SO for this product
- Confirm the SO
- Deliver the item
- Unlock the delivery order and change the done quantity to 0
- Unlock the delivery order and change again the done quantity to a positive value
A `ZeroDivisionError` is raised.
Since `move.product_qty` is still zero, we fallback to `quantity`.
opw-1963984
closes odoo/odoo#32421
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
