Commit Graph
184 Commits
Author SHA1 Message Date
Cédric Krier c833195650 Set default integer digits to None 2024-11-25 23:47:12 +01:00
Cédric Krier 3e45df410f Show only storage, view and warehouse locations by default
Closes #13711
2024-11-28 22:14:05 +01:00
Cédric Krier 6e3817ba05 Add equivalent domain of SQL constraints
When possible we should also add a domain so the client can provide better
feedback to the user.

Closes #9432
2024-10-27 16:20:45 +01:00
Udo Spallek 8b252472c4 Replace usage of docstring of Model by __string__ attribute
Closes #8402
2024-11-19 10:09:52 +01:00
Cédric Krier 53c042971b Group locations under the first requested location when computing stock quantities
This reduces the number of unnecessary intermediary results.

Closes #8594
2024-10-22 15:04:52 +02:00
Cédric Krier 31d53ba7a5 Reduce access to dictionary keys when computing stock quantities
#8594
2024-10-22 14:59:18 +02:00
Cédric Krier 462853ef3d Do not store period cache for empty quantity
This prevents to create a record for product that are no longer in the stock.

Closes #8151
2024-10-22 13:44:41 +02:00
Cédric Krier ab3fecb282 Increase version number 2024-11-04 18:51:20 +01:00
Cédric Krier dc470fe1f4 Prepare release 7.4.0 2024-11-04 18:23:40 +01:00
Cédric Krier 015c68f2c6 Update translations 2024-11-02 16:10:36 +01:00
Cédric Krier afb909aa41 Fix missing target field in operand of domain 2024-10-28 21:23:57 +01:00
Cédric Krier c02fbaad97 Fallback to 0 when summing stock values of products
Closes #13581
2024-10-09 20:15:47 +02:00
Maxime Richez dcef019d80 Allow cancellation of done shipments and productions
Closes #13489
2024-10-13 15:50:49 +02:00
Cédric Krier e16889a592 Use sparkline tools instead of pygal 2024-09-29 11:46:53 +02:00
Cédric Krier 0b5d5c2322 Manage to replace products 2024-09-03 12:39:57 +02:00
Cédric Krier d3cca51abc Create company and chart of account when activate modules in test scenario 2024-09-11 19:05:12 +02:00
Maxime Richez 348ea5c5bb Extend domain to reschedule not yet done shipment
Closes #13536
2024-09-20 14:58:46 +02:00
Cédric Krier 18f0801e60 Use design to fill companies and employees first on user form
To make it obvious that companies and employees must be filled first, they are
displayed first and the company and employee fields are hidden if there is no
values to select.
2024-09-24 19:31:56 +02:00
Cédric Krier db99bb6801 Do not copy origin of stock moves in each shipment
The ShipmentMixin is also used by the production which does not have a moves
field.

Closes #13555
2024-10-01 18:32:18 +02:00
Nicolas Évrard 6907ea5b7b Add warning when using implicit rec_name target for relational domain 2024-09-07 00:39:55 +02:00
Cédric Krier 514495cf1e Rename "Product Quantities By Warehouse" into "Stock Quantities By Warehouse" 2024-09-14 13:07:43 +02:00
Cédric Krier ca6bb39948 Rename "Locations * Quantity" into "Stock Locations *" 2024-09-14 12:51:16 +02:00
Cédric Krier a65c9879dd Rename "Products by Locations" into "Products"
As the locations are added to the tab name, there is no need to specify that it
is "by Locations".
2024-09-14 12:38:24 +02:00
Cédric Krier e54322910c Filter shipment moves before sorting them in the getters of Function field
This way the filtering can benefit of the cache alignent before the order of
the list is modified.

Closes #13526
2024-09-18 13:51:16 +02:00
Sergi Almacellas Abellana da4f361d23 Show complete button on shipped shipments
Closes #13455
2024-08-21 10:32:12 +02:00
Cédric Krier 6e798f98fc Test if origin id is greater or equals to 0 before accessing the target record
Closes #13498
2024-09-09 12:46:16 +02:00
Cédric Krier eeb9ba5650 Do not copy origin of stock moves when duplicate shipments
Closes #13496
2024-09-06 13:31:44 +02:00
Cédric Krier 62b079225f Remove $ before series in formatted document URL without base URL 2024-09-03 17:55:42 +02:00
Cédric Krier 4a14245e10 Ensure effective date is before or after origin or outcome stock moves
When the source of the move is the same as the destination of its origin or
outcomes, the stock move can not be done before those moves.
When the destination of the move is the same as the source of the its origin
or outcomes, the stock move can not be done after those moves.

Closes #12851
2024-08-26 22:53:34 +02:00
Cédric Krier 2dfc489ea0 Add outcome moves to stock move
It contains the stock moves for which the stock move is the origin.
2024-08-26 22:49:51 +02:00
Cédric Krier 97ac57e1e9 Group numbering shipments 2024-08-25 12:18:07 +02:00
Cédric Krier 958090cc27 Search on location of inventory when searching the inventory location of lines
Closes #13464
2024-08-22 11:31:10 +02:00
Cédric Krier a2dfc4455b Refine index definition
- Set low and high cardinality to index usage
- Use Range usage for numerical expression instead of Equality
2024-07-27 18:36:14 +02:00
Maxime Richez 4244ad305d Use today as planned date for assigned move in stock moves by warehouse
Closes #13417
2024-07-23 16:19:09 +02:00
Cédric Krier d0c5188641 Enforce empty price on stock move when not required
Closes #13382
2024-07-19 13:14:58 +02:00
Cédric Krier 3d9852c008 Set product range index last for stock move
As product clause are reduced ids, they have less chance to be usable than the
date which is often a single value.
2024-06-19 13:23:57 +02:00
Cédric Krier 3ca4615b32 Add location and use product range in stock period cache index
The cache is always filtered by location and the product is often filtered
with reduced ids.
2024-06-19 12:44:33 +02:00
Cédric Krier 9a4051ab8c Add company to the stock move indexes
Almost all the queries on stock move filter by company.
2024-06-18 20:33:41 +02:00
Cédric Krier 6d219e96f3 Do not add period query to the union if there is no period
There is no cache record without period so there is no need to add the query
to the UNION.
2024-06-18 20:32:09 +02:00
Cédric Krier e00fd063c5 Reuse simple COALESCE expression to filter moves after stock period
The expression must be the same as the one in the indexes such that the
indexes can be used to directly filter out all the moves before the period.
This restores the original expression that was changed by e4431b79e409 for the
generic move_date. But by design there can not be any assigned move planned
before the closed period.
2024-06-18 20:29:31 +02:00
Maxime Richez b8d9b593a8 Remove default planned date on supplier shipment
Closes #12966
2024-07-13 19:31:46 +02:00
Cédric Krier 6e4f8a09c3 Set custom string on label of the form instead of field 2024-06-03 13:24:19 +02:00
Cédric Krier 0442c7475b Update reports to display company logo 2024-04-19 23:30:05 +02:00
Cédric Krier 2eaf20a461 Add shipped state to customer shipment
Closes #13150
2024-05-06 00:34:03 +02:00
Cédric Krier cd8777277a Update translations [skip ci]
Closes #13225
2024-04-30 13:09:39 +02:00
Cédric Krier 38a3a8e68e Increase version number 2024-04-29 18:03:56 +02:00
Cédric Krier 2fc668b9f7 Prepare release 7.2.0 2024-04-29 17:31:11 +02:00
Cédric Krier b443997044 Update translations [skip ci] 2024-04-27 18:44:57 +02:00
Cédric Krier 490a5e2c6c Do not display cancelled moves in shipment reports
Closes #13202
2024-04-18 14:49:49 +02:00
Cédric Krier 567719b1ab Use shipment report mixin for delivery note 2024-04-18 14:49:14 +02:00