summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields/basic_fields_tests.js
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-08-09 14:19:44 +0200
committerPierre Masereel <pim@odoo.com>2017-08-29 15:22:07 +0200
commit209fd529f829b7345542afc1e0697056e50d3afd (patch)
tree2a0304509c8ce5499775072059c67dabe0159596 /addons/web/static/tests/fields/basic_fields_tests.js
parent5f37b8b3155311c654fc9031cc696cd5ab8b656d (diff)
[FIX] stock : check backorder compare apples and oranges.
The function that checks if we need a back oder or not compares the initial demand and the quantity processed on the picking. When unit of measure are activated the initial demand (product_qty) uses the uom of the product. However the quantity processed on the move (quantity_done) uses the uom of the move. This commit uses product_uom_qty instead of product_qty. Product_uom_qty represents the initial demand transformed with the uom of the move. It also add a small test with a back order that ensure the quantities are correct. It also repairs the test stock flow where in some case immediate transfer return the back order wizard instead of processing the move. In these cases we catch the back order wizard and run it.
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions