summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-07-13 12:50:30 +0200
committerNicolas Martinelli <nim@odoo.com>2017-07-13 13:20:24 +0200
commit69fa111e95f1697a007aae8be32fe51188789da2 (patch)
tree007e6f9a6ff4f170a124430df816521c8da29d5a /addons/web/static/tests/fields
parent37ff69d45e3a595824c79ecde1923b0c4a5f33f8 (diff)
[FIX] stock_account: negative quant cost
- Set up a product with 'Real Price' costing method, in real time valuation - Receive 1000 units at $0.10 each - Create a landed cost of $456.70, validate => it creates a quants of 999 units at cost $0.56 and 1 unit at cost $-2.74. - Perform an inventory adjustment, and set the quantity to 0 instead of 1000, post inventory. An error arises due to the constrain debit + credit >= 0. This is caused by the method `_prepare_account_move_line` from `stock.move`, which cannot handle negative cost for quants. opw-752063 Fixes #17707
Diffstat (limited to 'addons/web/static/tests/fields')
0 files changed, 0 insertions, 0 deletions