297 Commits
Author SHA1 Message Date
José Arturo García 9faa1dd9b5 feat(i18n): add standalone Dominican Spanish catalogs 2026-10-13 20:14:45 -04:00
Cédric Krier 60c5684c27 Increase version number
--HG--
branch : 8.2
2026-10-06 01:54:52 +02:00
Cédric Krier e011222dc3 Prepare release 8.2.0 2026-10-06 00:56:37 +02:00
Cédric Krier c17e032cb3 Update translations [skip ci] 2026-10-05 23:51:09 +02:00
Cédric Krier 0cc22fcd25 Use default value when copying "updated" fields of stock move
Since 6c611c520744, the readonly of field is enforced so the copied value of
boolean field must be the default value for readonly fields.

Closes #15148
2026-10-05 18:03:10 +02:00
Cédric Krier 2648f5a8cb Move tests about stock period closed in scenario
4ab7b9eb0ef5 added a scenario which could replace the checks in test_period.
2026-10-05 13:03:52 +02:00
Maxime Richez 4ee75ae44e Allow draft and staging moves to be created and modified in the closed period
Closes #15056
2026-10-05 12:54:17 +02:00
Cédric Krier e1b241e983 Show price and currency fields on stock move when they are not required but still filled
This is to let the user clear the invalid fields from past moves.

Closes #14919
2026-10-01 09:54:29 +02:00
Cédric Krier eebd27fa79 Include the minimal input/output quantity the same day as input in the average quantity for the turnover
Such quantity should be accounted as staying 1 day in the warehouse otherwise
we may have more quantity leaving than the average stock.

Closes #15014
2026-09-24 09:27:50 +02:00
Cédric Krier 07a2e268c6 Use bulk context manager
Closes #11750
2026-07-15 09:31:05 +02:00
Cédric Krier 56e1a24be4 Distinct readonly and editable states 2026-08-31 23:21:03 +02:00
Cédric Krier 7a563a3789 Include administrators in button states based on groups
Since 6ebedcf8826e, administrators have no more groups.

Closes #15097
2026-09-15 15:19:40 +02:00
Nicolas Évrard 305301a53e Replace the administration group by a flag on the user 2026-09-13 17:28:32 +02:00
Maxime Richez dd821f7073 Calculate variation and check tolerance on inventory quantity and cost
Closes #14688
2026-09-03 00:02:28 +02:00
Cédric Krier c1be38f14d Use BIGINT for table query with composed unique ID
When the maximal id of the table is too big, int4 is not enough like #15010
shows.
2026-08-14 11:55:48 +02:00
Cédric Krier d5064e1b0b Make locations readonly on stock move when linked to a shipment without being edited from it
This ensures that the domain from the shipment fields can not be skipped.

Closes #12564
2026-07-16 11:04:37 +02:00
Cédric Krier bd350be3f8 Enforce shipment domain on stock moves
On shipment where moves are split into two fields, we must enforce at least one
of the domain of each field.
2026-07-16 11:03:16 +02:00
Cédric Krier c33f675b28 Add scheduled task to close stock period automatically 2026-08-19 00:14:52 +02:00
Cédric Krier 05474e621d Add scheduled task to create stock period automatically 2026-08-19 00:14:21 +02:00
Cédric Krier fd2c35cd77 Optimise stock quantity computations for warehouses only
When the 'location_ids' are only comprise warehouses, we know that the children
locations of each one cannot be shared.
Therefore, we can use the 72fff0ca9da7 optimisation by calculating the
quantities for each warehouse individually and then adding them together.

Closes #14956
2026-07-14 19:06:52 +02:00
Cédric Krier 6b99dc69cc Use binary version of psycopg for tests 2026-07-17 22:11:32 +02:00
Cédric Krier 24405399a0 Show companies field of cron only for methods that need them
Closes #14952
2026-07-13 15:33:35 +02:00
Cédric Krier 91434daade Define index using COALESCE for nullable Char fields
Closes #14909
2026-06-24 22:07:52 +02:00
Cédric Krier a38be4eb42 Aggregate product by locations before applying filter when searching by quantity
Closes #14887
2026-06-11 15:30:11 +02:00
Cédric Krier 8aaf6e1eb5 Replace warehouse field on location by a property
The Function field is not efficient so its usage should be reserved to
server side code only.
2026-05-07 18:36:18 +02:00
Cédric Krier 7f42e0a3d7 Remove cost separator in stock move form
The cost fields are not always visible so the separator may be displayed when
no cost fields is.
Each cost field has its own invisible statement so it will be much complex to
build on for the separator than removing it.
2026-06-03 18:23:31 +02:00
Cédric Krier 51eaae2070 Delete stock moves only of deactivated products
Closes #14844
2026-05-19 10:53:56 +02:00
Cédric Krier 5e3c4ee93c Fix computation of documentation series for odd minor version 2026-04-20 21:23:36 +02:00
Cédric Krier d8594bd9fd Increase version number 2026-04-20 21:08:15 +02:00
Cédric Krier 7f0d38f477 Prepare release 8.0.0 2026-04-20 20:10:13 +02:00
Cédric Krier de1bb5d5d9 Update translations [skip ci] 2026-04-20 10:38:52 +02:00
Cédric Krier 53bf0cefcd Cast to integer reporting ID calculated using SQL Power
Closes #14732
2026-04-09 18:24:39 +02:00
Cédric Krier 50756bfcf1 Calculate cached quantities for inactive locations when closing a stock period
Closes #14664
2026-03-26 09:09:00 +01:00
Cédric Krier 544e5a2b7c Manage ethanol in stock 2026-03-28 13:40:06 +01:00
Cédric Krier 39a22ae74f Use python3 to launch build 2026-03-26 00:32:49 +01:00
Cédric Krier 94c4f0a9e6 Rewrite coverage paths
Since tox is running tests on the installed package, the coverage paths are no
more relative to the repository root.
2026-03-25 19:39:52 +01:00
Cédric Krier a51a6249c0 Add attn to address
Closes #14633
2026-02-27 12:55:11 +01:00
Cédric Krier be609bf3e8 Patch assignation required in test scenario to create move without shipment 2026-02-10 17:42:42 +01:00
Cédric Krier 145ce8f2f8 Make retrieval of metadata via build really quiet 2026-03-22 09:07:23 +01:00
Cédric Krier 5310b00496 Remove grouped_slice per IN_MAX
The usage of ``grouped_slice`` without size is deprecated since `=
ANY(ARRAY[%s])` is used for PostgreSQL and SQLite is used only for tests.

The ``Database.IN_MAX`` is replaced by ``backend.MAX_QUERY_PARAMS`` which is a
more accurate limit of the backend.
The SQLite limits is indeed SQLITE_MAX_EXPR_DEPTH so we use a empirical value.
2026-03-22 21:05:26 +01:00
Cédric Krier 0da67bce21 Deprecate reduce_ids for SQL_OPERATORS['in']
Closes #12989 #13897
2025-12-26 10:57:44 +01:00
Nicolas Évrard 299dd6b1c9 Update to Psycopg 3
Closes #10901
2026-03-22 19:53:32 +01:00
Cédric Krier d3c8a8e55d Add support for Python 3.14 2026-03-21 09:02:25 +01:00
Cédric Krier 42b0fc7061 Remove support for Python 3.9 2026-03-21 08:48:06 +01:00
Cédric Krier e15c0b7d7a Upgrade to pyproject using hatchling as build-system 2026-03-21 18:46:34 +01:00
Cédric Krier 3594517396 Avoid redirection in documentation links 2026-03-02 10:58:40 +01:00
Cédric Krier af2e06bb32 Set headers and restrict to 1 worker when checking documentation link
This follows the wikipedia robot policy:
https://wikitech.wikimedia.org/wiki/Robot_policy

Closes #14637
2026-03-02 10:58:19 +01:00
Cédric Krier 9d871c8244 Add a group that is allowed to cancel done shipments and moves
Closes #13899
2026-02-11 10:41:09 +01:00
Cédric Krier 1367643bd0 Do not copy caches of stock periods
Closes #14639
2026-03-02 14:15:14 +01:00
Cédric Krier 9473804208 Fallback to location key from context to compute product quantity
The location key is used for stock reporting so when browsing from such report,
it is good that the selected location is still used for stock calculation.
2025-12-30 17:41:36 +01:00