diff options
| author | Josse Colpaert <jco@odoo.com> | 2018-02-08 17:49:59 +0100 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2018-05-23 14:38:13 +0200 |
| commit | 73e213edef053c2e08d7791efe0b1a399da0eed7 (patch) | |
| tree | 833bce1f10a98281b907ad557e3fe05118979912 /addons/web/static/tests/fields/relational_fields_tests.js | |
| parent | 0b412c250afc60131188ce248087dae2c2a53574 (diff) | |
[FIX] stock: non-tracked products should follow FIFO removal strategy too
In a warehouse, mostly most of the products have no lot. It stays
important however to avoid having old products in stock, certainly if
we can distinguish them by pack or location.
As now in stable, in_date is not put on the quant for non-tracked products,
databases might mix quants with and without in_date of the same product.
We should see those without in_date as the oldest.
That is why we need to be able to apply a ASC NULLS FIRST (ASC is NULLS LAST by default) for FIFO
or DESC NULLS LAST for LIFO.
In order to do that, we copied the code from the _search method of the ORM to
be able to do this special order as the orm itself is restrictive as it
supposes the order itself has no spaces.
We adapted and added some tests to check it handles the combination of NULL/NOT NULL well.
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
