summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-08-19 14:52:21 +0200
committerNicolas Martinelli <nim@odoo.com>2016-08-22 08:22:08 +0200
commit2c0cae221a24c003a3572a2c5780204b8d30ca55 (patch)
tree42a6f59049777e4b0041db6a0fd69ceb77ed420b /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent43aee6db75d24942e74340521d76d27e4de652e3 (diff)
[FIX] stock_account: raise error when valuation is zero
Commit ddbe0e1 introduces an error when the user tries to move a product with a cost of zero. In extreme case, this is incompatible with commit 262d98b. For example, if one buys 10000 units for 17.60, and consumes one unit at a time. The latter commit will split the quants in: - 9999 quants at cost zero - 1 quant at cost 17.60 This is the only solution to get a correct accounting. However, that creates quants with a cost of zero, which therefore cannot be moved anymore (consumed in MRP or sold). We restrict the warning to products configured with "Standard Price". Indeed, in this configuration, it is very lokely that the user made a mistake / forgot to define the price of the product. opw-686301
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions