Commit Graph
13 Commits
Author SHA1 Message Date
Cédric Krier f778a36364 Follow isort formatting
issue10928
2021-12-11 17:58:44 +01:00
Cédric Krier ee8d36a16a Do not set list_price in test without company
issue10917
2021-10-29 00:53:47 +02:00
Cédric Krier c1e738340a Check rule only if _check_access is set and enforce companies rule
issue4080
review343891009
2021-04-10 23:46:24 +02:00
Cédric Krier 25306cf34e Make compute_quantities_query works with product.template grouping
The where clause of the subquery could be empty and we should search for query
inside joins.

issue8394
review253951002
2019-08-07 19:24:54 +02:00
Cédric Krier 085dcbf571 Search queries inside Select and add different lot instances
When compute_quantities_query is called with with_childs, the selected move
table is a union. So we must search inside this union for the actual move
table.
As we may need to join with lot table multiple times, we must ensure to always
use a different instance of the table to avoid alias clash.

issue7882
review48701002
2019-01-17 17:09:42 +01:00
Cédric Krier 88ab30c40f Add test against overflow
issue7883
review50681002
2019-01-15 00:00:18 +01:00
Cédric Krier addce55f5c Include expired product in quantity with stock_date_start
The quantity over a period should include the removal of the expired product during the period.

issue6243
review27091002
2018-04-22 22:39:30 +02:00
Cédric Krier 9ddcaae99b Replace product_ids by grouping_filter
issue7141
review41121002
2018-02-28 18:26:46 +01:00
Cédric Krier 2da03b4002 Move cost price to product level instead of template
issue6515
review41321002
2017-07-05 14:51:50 +02:00
Cédric Krier d28e230f5e Use converted tests converted by 2to3
distutils import tests module from the source code, so we must force it to use
the test suite from the absolute path because it will be the converted on in
case of 2to3 otherwise we fall-back to the relative module.

issue3211
2016-03-11 21:57:27 +01:00
Cédric Krier c5765ed29f Make TestCase create and drop its database
and use with_transaction decorator.

issue5263
review20711002
2016-02-06 19:13:22 +01:00
Cédric Krier c7ee27bdfd Add closed period to unit test
issue4666
review15321002
2015-03-30 22:51:16 +02:00
Cédric Krier 36f853525c Initial commit of stock_lot_sled module
issue4496
review12881002
2015-02-16 11:15:49 +01:00