summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2017-07-24 16:05:20 +0200
committerSimon Lejeune <sle@openerp.com>2017-07-28 11:38:31 +0200
commit0fbe90b22787e77e5c2bb5cba7c155822f7ce145 (patch)
tree2ed3bf7a5487dc7d39b2809a41c9eb2632edf0f8 /addons/web/static/src/js
parent3d4238f71e48de14afd0072a8309f2bb6fc46eb6 (diff)
[REF] stock: quant: use `in_date` field
Set the `in_date` field to now when creating a tracked quant. Set the correct `in_date` field when moving a quant (this is done by adding a kw argument to `_update_available_quantity` and adapting the code that moves quant in stock.move.line). If quants from the same lot go together in the same location, we merge them and keep the older date (as the user will have no way to tell the difference anyway). We add multiple test cases: - `in_date` are only set on tracked quants - FIFO and LIFO are correctly applied - keep the oldest `in_date` when merging quants - editing a done move line or creating one in a done picking is correctly working Joint work with sle-odoo.
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions