Commit Graph
14 Commits
Author SHA1 Message Date
Cédric Krier 724eb420e4 Filter lines by reconciliation date to calculate payable/receivable of party
The lines reconciled after the date should be included in the sum as the other
line may be filtered.

Closes #14857
2026-05-21 16:13:34 +02:00
Cédric Krier 77073c56e4 Improve help text for the tax rule fields on party
Closes #12674
2026-04-14 15:19:59 +02: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
Cédric Krier 47b79131dc Fallback to effective date to filter line for party payable/receivable today
This implements the same behavior as the payable/receivable date in
7caa97a96b95 ensuring that the cumulate balance is the same as the today field.

Also it allows to customize the date considered as today from the context date
key or _datetime (when browsing history).

Closes #14228
2025-09-13 11:22:40 +02:00
Nicolas Évrard cbdad75620 Remove old-style of super() calls 2025-04-04 00:45:18 +02: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 5823bce6cf Add tools to apply types to SQLite select queries 2024-07-04 08:45:19 +02:00
Cédric Krier 9e6789f8c1 Ensure there is a company id in the context before testing as positive
Closes #13228
2024-05-02 18:55:04 +02:00
Cédric Krier 1f470cb4d1 Return currency instance instead of id in party getter 2024-04-10 11:25:48 +02:00
Cédric Krier b0335a27b0 Test if contextual company id is positive before using it
Closes #13176
2024-04-10 11:25:11 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier b48e4966d5 Add functions and attribute to handle check access and active records
Closes #11863
2022-12-30 13:56:10 +01:00
Cédric Krier fb14b53030 Prepare migration to monorepo 2022-12-16 21:09:21 +01:00