summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2017-05-23 14:09:16 +0200
committerLucas Perais (lpe) <lpe@odoo.com>2017-06-15 08:42:57 +0200
commit46263eb398443f2e19c737c4488f43990f244085 (patch)
treeb0949fc3e1a9677b99667d917b641ee1bb59a28e /addons/web/static/src/js/views/basic/basic_controller.js
parent9f31e50ee944934a2e2cae6a92491ecc400cdde1 (diff)
[FIX] stock: backport fix negative quants
Original commit (in 10.0) be9dce625c55e1b2d6039573c7035d61f762edc8 From original commit: It is still possible to have negative and positive quants in the same location because of returns: if you send something to the customer that is not there and you return it, you will still be able to reserve the returned goods to send to another client. Before, if you would do an inventory adjustment, it would not take into account these returned quants and their negative counterpart, which made them difficult to get out of the system. This fix takes them into account by creating two movements for one inventory line: move the positive counterpart to the inventory location before getting back from this location the same quantity. This way, even if you have 0 as quantity on hand but you have those 2 quants, it will eliminate them. (if you are increasing the stock, part of the process might have done it automatically already). Also, a key of context has been added which authorizes the process described above in the case of both a tracked product and no lot_id on the stock inventory OPW 743107 Closes #17167
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions