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
66999ae7e5
Raise tailored error message when calculated account for move line is empty
...
Closes #14392
2025-11-26 12:03:42 +01:00
Cédric Krier
66b0738f2e
Set a default value when calculating clearing reconcile of a payment group
...
Closes #14301
2025-11-02 16:53:22 +01:00
Cédric Krier
18491428f7
Ask for the clearing date when the payment group succeeds
...
Closes #14075
2025-06-15 18:38:09 +02:00
Cédric Krier
5aeff66acd
Use ModelStorage hooks instead of extending create/write/delete
2025-04-06 00:14:17 +02:00
Nicolas Évrard
cbdad75620
Remove old-style of super() calls
2025-04-04 00:45:18 +02:00
Cédric Krier
9bf2d8e919
Use current account at the clearing date for clearing move of payment
...
Closes #13826
2025-01-20 17:26:52 +01:00
Cédric Krier
349f5328d3
Use payable or receivable account as fallback to create clearing move of payment
...
A payment, made on a journal with clearing setup, must always create a clearing
move even if no account or line are set.
Closes #13825
2025-01-20 17:25:25 +01:00
Cédric Krier
6f049b695b
Set company in the context of clearing journal
...
Closes #13591
2024-10-10 17:00:14 +02:00
Cédric Krier
001bfe69c6
Make payment group optional per process method
2024-12-15 19:06:20 +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
89c1127952
Enforce clearing account type only on draft payment
...
As the receivable, payable type may evolve over time, only draft state should
enforce it.
Closes #13145
2024-03-30 11:32:22 +01:00
Cédric Krier
8d35781825
Permit to use deposit account for payment
...
97281a746606 removed this option that was available since 3255a31c30a2.
Closes #12910
2024-01-08 17:29:26 +01:00
Cédric Krier
034a402b59
Prevent user to modify clearing reconciled field on payment
...
Closes #12454
2023-08-05 19:32:59 +02:00
Cédric Krier
8f92935054
Limit account on payment to receivable or payable
...
It is the same constraint as for the line.
2023-08-04 23:32:33 +02:00
Cédric Krier
d32abf6d36
Ensure payment line and account are not filled both
...
If there are filled both, we must display them so user can clear one.
2023-08-04 21:32:15 +02:00
Cédric Krier
86dae30d70
Fill receivable payment account when selecting party
...
By default a receivable payment should be cleared with the receivable account
of the party.
2023-08-04 21:31:27 +02:00
Cédric Krier
0fe7228d58
Try to post only clearing move of journals from the contextual company
...
Closes #12453
2023-08-05 00:27:11 +02:00
Cédric Krier
e6383f0804
Ensure clearing account is from the same company as the payment journal
...
Closes #12159
2023-03-24 12:33:54 +01:00
Cédric Krier
45bbfa8fb5
Add cache to account period find and return instance
...
Closes #7705
2023-02-10 23:36:18 +01:00
Cédric Krier
470d2152f3
Prepare migration to monorepo
2022-12-16 20:37:58 +01:00