diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-03-13 14:06:32 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-03-16 17:30:02 +0100 |
| commit | be9dce625c55e1b2d6039573c7035d61f762edc8 (patch) | |
| tree | e7da6bda97025a5576fd1286c849d5328240d5f8 /addons/web_editor/static/src/js/summernote.js | |
| parent | 0590af8b3f3f5c59ad93f405cfef392b5d525f1e (diff) | |
[FIX] stock: inventory adjustment and negative quants
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).
Test cases contributed by @jir-odoo
Diffstat (limited to 'addons/web_editor/static/src/js/summernote.js')
0 files changed, 0 insertions, 0 deletions
