Commit Graph
1920 Commits
Author SHA1 Message Date
Cédric Krier 9256ae7d62 Round quantity computing in search clause
The internal quantity is stored without precision constraint and so the sum
result of many rows cumulate the rounding issue.
So the quantity must be rounded to return correct result when operator is
equality.
But as getting the digits from the product default uom would require to make
many joins, the simplest and more efficient solution is to use the highest
digits of the units.

issue11235
review390001002
2022-02-17 00:37:39 +01:00
Cédric Krier 6ef3e8c323 Do not sort state selection
issue11169
review374761005
2022-02-15 00:08:47 +01:00
Juanjo Garcia 427e26d309 Require unit price also for view location like for storage
issue11181
review355951002
2022-02-04 21:36:26 +01:00
Cédric Krier 4b00387d12 Add optional column on tree view
issue10989
review374321002
2022-02-03 23:13:27 +01:00
Cédric Krier 0201ff5bdd Use dictionary as domain for Reference field
issue11074
review383911002
2022-02-03 23:05:47 +01:00
Cédric Krier f72cdeb5de Use select to True on create_date
If the index is created only in __register__ then it is dropped before being
created again.

issue11197
review389881002
2022-02-03 22:29:08 +01:00
Cédric Krier b13b3c7b4e Reorganize stock menu and group shipments
issue11113
review377991002
2022-01-30 01:37:46 +01:00
Cédric Krier e528726768 Simplify stock configuration
issue11119
review393351002
2022-01-30 01:28:36 +01:00
Cédric Krier a9a130a5d0 Ensure to set correct company context when calling today
issue11046
review370421002
2022-01-23 12:54:56 +01:00
Cédric Krier 3a18c0803e Retrieve unit for product margin from table joins
Using a function field triggers a new read to round the quantity with the
default uom.

issue11097
review379931002
2022-01-23 10:25:32 +01:00
Cédric Krier 5bb4e4a2ef Add icons to inventory buttons and improve quantity label
issue11011
review379731002
2021-12-29 12:42:04 +01:00
Cédric Krier d36ff8357e Avoid double today record in product quantities by warehouse
We must exclude the stock move on today because we always add a record for each
product on today with the union.

issue11068
review387531002
2021-12-29 12:25:33 +01:00
Cédric Krier 5662b26a2b Limit assign to contextual company
issue11010
review376111002
2021-12-21 23:14:59 +01:00
Cédric Krier 6da9c857d5 Add support for Python 3.10
and remove support for Python 3.6.

issue11048
review364451002
2021-12-18 16:34:36 +01:00
Bernat f68c8867a6 Prevent to compare with None on searching quantity
issue11047
review387481002
2021-12-18 01:38:39 +01:00
Cédric Krier f9b81cddb5 Add coverage to tox
issue7685
review51501002
2021-12-13 23:10:12 +01:00
Cédric Krier 234b85f9c2 Follow isort formatting
issue10928
2021-12-11 17:58:44 +01:00
Cédric Krier 356348d07c Support window functions with SQLite backend
issue7703
review364231002
2021-11-08 19:30:15 +01:00
Cédric Krier c28c3a1847 Increase version number 2021-11-01 17:08:50 +01:00
Cédric Krier da356abb0c Add tag 6.2.0 [skip ci] 2021-11-01 17:08:39 +01:00
Cédric Krier d843868412 Prepare release 6.2.0 [skip ci] 2021-11-01 17:08:38 +01:00
Cédric Krier 50a2ea6db5 Use and test the proper type for quantity and total_quantity in inventory counting
Since issue10413 assigned value has always the right type.
2021-10-30 16:44:30 +02:00
Cédric Krier 1f2a720baf Update translations [skip ci] 2021-10-30 11:32:04 +02:00
Cédric Krier c3da7bb303 Limit size of grouping_filter ids
The list of ids in grouping_filter are used inside an IN-clause so we must
limit the size.

issue10589
review379471002
2021-10-30 02:27:19 +02:00
Adrià Tarroja Caubet 3267f0a17a Manage multiple arguments on inventory write
issue10894
review362981002
2021-10-22 15:47:33 +02:00
Adrià Tarroja Caubet 467b77606a Do not modify iterated list to not miss product
issue10872
review372361002
2021-10-21 00:07:14 +02:00
Cédric Krier 85f5ab6626 Use ModelSQL lock instead of database lock
issue10785
2021-10-18 01:22:26 +02:00
Cédric Krier 54097e04fe Use unique ID for today record in ProductQuantitiesByWarehouse query
We must use a unique ID to ensure to not collide with records in the
transaction cache.

issue10831
review353021002
2021-10-15 19:16:47 +02:00
Cédric Krier 31f52981ca Add method to sort quantities for assignation
issue10814
review362811002
2021-10-12 00:04:27 +02:00
Cédric Krier a757a89537 Add general reporting margin
Also inherit from the main view to reduce the number of XML files.
And add sum attribute to reporting with unique grouped lines.

issue10829
review379291002
2021-10-11 18:41:34 +02:00
Cédric Krier 5cb61255e0 Prevent editing list and cost prices without proper context
issue10773
review338951002
2021-10-08 19:16:45 +02:00
David Blanco Bautista abe6df6a5e Implement get_rec_name in products by location and in lots by location
issue10525
review371171002
2021-10-06 16:24:25 +02:00
Maxime Richez 5114196fde Add methods to format number and symbol on Lang
and add format number with symbol on Report

issue10730
review371831002
2021-10-04 18:52:01 +02:00
Cédric Krier e6113342a5 Add test on domain of relation fields
issue10794
review383081002
2021-10-03 13:45:32 +02:00
Cédric Krier b31101304b Ensure that objects in the Pool has __slots__
issue10719
review375361002
2021-09-23 23:12:35 +02:00
Cédric Krier 267a4867ce Allow to execute reports without records
issue10409
review355391002
2021-09-02 23:19:36 +02:00
Cédric Krier a8a04caaea Provide digits from unit of measure
issue10677
review365801002
2021-08-30 00:27:13 +02:00
Cédric Krier 8a118d1fd1 Save less often cost values when doing move
We can save the cost values only when a cost value was computed for a product
already moved.
Also FIFO requires to save extra moves which can be included in the save loop
so the Move._do method returns an extra list of moves to save.

issue10640
review369361002
2021-08-27 08:59:26 +02:00
Cédric Krier 08ce9530fe Add monetary field
issue10598
review338511002
2021-08-21 09:09:56 +02:00
Cédric Krier d6f6ed19ee Ensure inventory moves are done before packing
issue10620
review363611002
2021-08-12 18:46:18 +02:00
Cédric Krier 2214bca916 Allow to skip picking if output is the storage location
The picked step is pointless in such case because there is no inventory moves.
Also we must allow to fill packages in waiting.

issue10620
review363611002
2021-08-12 18:45:25 +02:00
Cédric Krier 5b3f43c147 Replace cost_warehouse by warehouse of stock module
issue10572
review358401002
2021-08-06 09:41:00 +02:00
Cédric Krier 075a30f403 Use unit_price_company
issue10586
review369311002
2021-07-28 00:35:50 +02:00
Cédric Krier a257e5ff1e Use domain method to select incoming and outgoing move to recompute cost price
issue10586
review369311002
2021-07-28 00:35:24 +02:00
Sergi Almacellas Abellana 27fecc4f41 Do not compare planned_date when empty
issue10582
review365621002
2021-07-22 16:33:51 +02:00
Cédric Krier a9434aba45 Do not use supplier location if empty
issue10240
review350071002
2021-07-12 22:37:21 +02:00
Cédric Krier cbbf8b7b7c Add default value for CI env
issue10455
review332961002
2021-07-04 17:54:48 +02:00
Cédric Krier 916c0d0eca Add method to format warning name with records
issue10507
review346471002
2021-06-17 09:25:40 +02:00
Cédric Krier fe763b56ee Add type as depends of parent location field
issue10487
2021-06-11 08:36:26 +02:00
Cédric Krier ed7c8e73ff Do not include assigned record as partially assigned
issue10498
review346441002
2021-06-11 00:25:45 +02:00