Commit Graph
1930 Commits
Author SHA1 Message Date
Cédric Krier f5abf6ccba Test building documentation
issue11367
review397811002
2022-04-06 18:19:49 +02:00
Maxime Richez 6d9f68d4b2 Add location or warehouse in shipment tree view
issue6549
review40401002
2022-04-05 23:52:58 +02:00
Cédric Krier e22538d3de Set effective date of outgoing moves to effective start date
The outgoing moves of an internal shipment with transit must use the effective
start date when done.

issue11337
review397651002
2022-04-03 23:54:13 +02:00
Cédric Krier 689dc8e90d Increase required version of python-sql
issue11235 is using Select query in Round function which is supported by
python-sql from version 1.3.0.

issue11326
review365041002
2022-04-02 00:01:46 +02:00
Sergi Almacellas Abellana 8e5450ad81 Warn user when deactivating a product that has stock
issue11186
review376851002
2022-03-28 13:05:07 +02:00
Cédric Krier 0eb51e3cd4 Prevent to create and delete singleton
issue1639
review378481002
2022-03-26 13:03:39 +01:00
Cédric Krier bab0d68d11 Show production on stock move form
issue11254
review384391002
2022-03-20 01:27:59 +01:00
Cédric Krier f83a3e0e39 Do not use negative product id when there are none for quantities by warehouse
Otherwise this creates rows with negative id which are not valid for stored record.

issue11289
review390181002
2022-03-19 15:02:35 +01:00
Cédric Krier ddc5a2c0b3 Improve ref attribute in XML data
The model is enforced according to the ref usage.
The ref attribute can be used as value for Reference field.
The exceptions raised by the parser are normalized.

issue10982
review384341002
2022-03-07 00:52:58 +01:00
Cédric Krier 717c3c4224 Exclude quantity coming back from production the same day
This avoid to have a loop back that keeps the initial cost price of the
production in the history.

issue11265
review386101002
2022-03-06 13:34:18 +01:00
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