Cédric Krier
a96cb0a84f
Replace open journal wizard by a context model
...
Closes #14937
2026-07-07 19:06:14 +02:00
Cédric Krier
897a8acbf4
Call the same super method for validate_fields of account move line
...
Closes #14901
2026-06-18 14:37:36 +02:00
Cédric Krier
e531835283
Use also maturity date to calculate reconciliation date
2026-06-05 15:50:42 +02:00
Cédric Krier
dccf30db96
Use new non-readonly transaction to create journal-period from opening wizard
...
Since 088e367462ce the execution of the wizard is on a readonly transaction
which prevents to insert in the database.
Closes #14894
2026-06-16 13:19:12 +02:00
Cédric Krier
8dfa6915b7
Convert toolbar into mutable objects before modification
...
Since 619fd425e3bb the toolbar may be immutable when it comes from the cache.
Closes #14881
2026-06-08 09:09:23 +02:00
Cédric Krier
0f5f326964
Permit only valid lines to be selected for reconciliation
...
Closes #14703
2026-03-24 16:57:31 +01:00
Cédric Krier
43cf9b7634
Commit after each reconciliation of the automatic reconciliation scheduled task
...
This avoid having a long running transaction on large database but keep sharing
most of the code with the wizard.
Closes #14674
2026-03-13 11:52:40 +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
d6dc19b523
Skip the reconciliation of already reconciled lines with debit == credit == 0
...
Closes #14679
2026-03-16 12:28:56 +01:00
Cédric Krier
08915bb5ad
Unpack table and clause when converting domain for payable/receivable date
...
Closes #14533
2026-01-22 13:54:58 +01:00
Cédric Krier
74e7690c04
Add cron job to reconcile move lines
...
Closes #14468
2026-01-06 11:38:37 +01:00
Cédric Krier
353cfbdd5c
Always switch to the next account party when lines have been reconciled
...
Closes #14467
2026-01-05 23:58:44 +01:00
Cédric Krier
9fdb983f99
Do not always consider account with party required when reconcile
...
fe8ae43ad9e7 left a debug clause that skips the test.
2026-01-05 00:41:31 +01:00
Cédric Krier
ab1b43f676
Do not return None as party to reconcile
...
Closes #14438
2026-01-05 00:38:37 +01:00
Nicolas Évrard
818f26253a
Remove has_window_functions on Database
2025-10-04 22:45:53 +02:00
Cédric Krier
c9980988cc
Store in the cache all the lines to reconcile when searching for the best reconciliation
...
When the last line is pop from the debit/credit list, the access to the balance
may invalidate the cache of other records to fill the cache of the last one.
This may become very inefficient on large list of lines.
So by setting the record cache size to the size of the list of lines, we ensure
that no cache is invalidated during the calculation.
Closes #14230
2025-09-15 13:18:39 +02:00
Cédric Krier
86c9db5ad9
Unpack move table when converting domain for payable/receivable date
...
Closes #14158
2025-08-23 21:21:10 +02:00
Adrià Tarroja Caubet
3ed4e9c168
Unpack tables move when ordering by payable_receivable_date
...
Closes #14158
2025-08-13 11:35:04 +02:00
Cédric Krier
f958c59d05
Test if party is set before using its record name for reconciliation error message
...
Closes #14127
2025-07-30 15:12:15 +02:00
Cédric Krier
da57dd5f78
Reset period of move when company is changed
...
Closes #13999
2025-05-05 16:26:06 +02:00
Cédric Krier
74186a04c8
Improve error message when delete or modify reconciled line
2025-05-21 17:15:31 +02:00
Cédric Krier
b0f7d45254
Manage readonly wizard
...
readonly wizards do not check for write access on the active model.
Closes #13989
2025-04-29 09:31:05 +02:00
Cédric Krier
b859ee5074
Invert boolean operator when searching description with negative operator
...
Closes #14037
2025-05-27 19:57:03 +02:00
Cédric Krier
5b01323986
Coalesce boolean account type columns on negative clause
...
In SQL the negation of NULL is still NULL.
Closes #13967
2025-04-11 09:24:13 +02:00
Cédric Krier
5aeff66acd
Use ModelStorage hooks instead of extending create/write/delete
2025-04-06 00:14:17 +02:00
Cédric Krier
45122b77c0
Add on_write to ModelStorage
2025-02-24 13:39:52 +01:00
Cédric Krier
1772caec90
Clean migrations for series before 6.0
2025-01-04 00:19:42 +01:00
Nicolas Évrard
cbdad75620
Remove old-style of super() calls
2025-04-04 00:45:18 +02:00
Cédric Krier
e5c727a12f
Add payable/receivable date on move line group
...
Same as 7caa97a96b95 but for move line group.
2025-03-27 23:53:17 +01:00
Cédric Krier
0fd308172e
Use strict sequence to number account moves
...
Closes #12603
2025-02-11 12:04:55 +01:00
Cédric Krier
262a8b894b
Add payable/receivable date
...
The date is the maturity date and if it is empty, fallback to the effective
date.
This gives a better chronology of the lines.
2025-02-14 10:43:15 +01:00
Cédric Krier
93b3d27117
Replace account move number by post number
...
Closes #13864
2025-02-11 12:50:48 +01:00
Cédric Krier
55bd6d327e
Remove or convert company domain into context domain
...
Closes #10506
2025-01-21 13:39:30 +01:00
Cédric Krier
184536c72a
Remove usage of getattr to access state view fields of wizard
2024-11-20 10:35:06 +01:00
Cédric Krier
ecaf2bc391
Setup explicitly the accounts, parties and currencies of reconciliation wizard
...
It is better to not rely on missing the field on the state view but to have an
explicit transition to setup the values.
2024-11-20 10:32:24 +01:00
Cédric Krier
60cd69732f
Try to reconcile only valid account move line
...
Closes #13847
2025-01-29 18:20:46 +01:00
Cédric Krier
801a06970b
Use proper default value for Eval on account move
2024-12-26 18:55:47 +01:00
Cédric Krier
5299f36eb9
Include amount in record name of account move line
...
Only the account code is used to limit the size of the name.
2024-10-30 16:19:57 +01:00
Cédric Krier
c40169b8a9
Do not call next_party for account without party required
...
next_party assign a list with None as parties for the account without party
required. But since 81e16830e46e it is no more valid.
Instead we need to manage account without party explicitly without calling
next_party.
Closes #13760
2024-12-17 17:31:57 +01:00
Cédric Krier
ccd026c9c6
Compute maturity date of grouped account move lines per debit/credit
...
Closes #8876
2024-10-23 20:02:00 +02:00
Cédric Krier
21d30ebd42
Use defaultdict when computing grouping move lines
2024-10-23 19:54:03 +02: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
f10ee771e0
Round payable and receivable balance on account move line
2024-10-08 14:43:51 +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
1da4e8811e
Group numbering account move when posting
2024-08-27 13:35:18 +02:00
Cédric Krier
2c87de506c
Group numbering account move at creation
2024-08-25 10:58:04 +02:00
Cédric Krier
9dc25266b0
Implement a strategy of O(n) to find the best combination of lines to reconcile
...
The combination implementation is replaced by strategy that search the
smallest remaining from the order lines by removing the last debit or credit
depending on the remaining sign.
Closes #13451
2024-08-19 23:58:41 +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