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
Cédric Krier
b41ee38f1a
Allow copying move from closed period
...
Closes #13361
2024-06-26 09:39:26 +02:00
Cédric Krier
147be849f4
Prevent reconcile lines using write-off with the same account
...
Closes #13425
2024-07-27 15:15:55 +02:00
Richard Vong
e48510503f
Do not try to reconcile posted lines without debit/credit but with second currency amount
...
Closes #13293
2024-06-28 00:59:01 +02:00
Cédric Krier
9e759e9604
Sort posted lines to reconcile at last by party
...
The lines may or may not have a party depending on the account.
So the order key must avoid compare party instance with None value.
Closes #13268
2024-05-21 10:12:46 +02:00
Cédric Krier
06270e6a7a
Use decimal 0 without digits as default value
...
If the digits of the field is 0, than using '0.0' trigger the validation error
introduced by 2be02f249a1d.
Closes #13197
2024-04-30 19:15:44 +02:00
Cédric Krier
891423c6b2
Set default value from account move using line field name
...
Some Function fields has the move as prefix which is removed when applied to
the move. But when setting default value for the line, the move prefix must
not be removed.
Closes #12967
2024-04-27 18:36:49 +02:00
Cédric Krier
e69fbf7a9e
Convert recursive calls of reconcile accounts wizard into loop
...
The recursive calls may reach the Python recursion limit if there are a lot of
accounts and parties to process.
So converting the recursion into a loop prevent reaching this limit.
Closes #13164
2024-04-05 14:39:23 +02:00
Cédric Krier
743e938baa
Set empty currency when reconcile no lines
...
Since f9560247a0fc the currency for the reconciled lines is computed but when
there is no line, there is no company to get currency from.
Closes #13047
2024-03-02 11:39:29 +01:00
Cédric Krier
f6d8247263
Use AccountMissing and JournalMissing exception for reconciliation
2023-12-23 23:12:41 +01:00
Cédric Krier
e9f90b7944
Use 0 as fallback for missing debit or credit in on_change functions
...
Closes #12823
2023-12-12 17:02:31 +01:00
Cédric Krier
0d625d4010
Remove usage of set_user to skip check access
...
Since ce8d7a19766a the access rule are enforced only if check access is set.
2023-12-01 21:14:37 +01:00
Cédric Krier
a88682d1a6
Fallback to move date when ordering by maturity date and it is empty
...
Closes #12722
2023-11-09 09:40:49 +01:00
Cédric Krier
d10a47f7d1
Do not fail when reconciling an empty list
...
Closes #12626
2023-10-21 15:46:53 +02:00
Cédric Krier
caf654f1ec
Set party clause to None when retrieve currencies to reconcile without party
...
Closes #12601
2023-10-11 18:34:32 +02:00
Cédric Krier
590fbe3aa8
Use origin description as fallback description for account move and line
...
Closes #12571
2023-09-16 10:30:44 +02:00
Cédric Krier
5ce06c7d69
Post write-off and exchange moves when reconcile posted lines
...
Closes #12439
2023-07-29 15:10:59 +02:00
Cédric Krier
69c88b6a8a
Do not apply unaccent when searching on number fields
...
Closes #12435
2023-08-03 15:54:33 +02:00
Cédric Krier
36618628dd
Set next party after next account only on initial filling of accounts
...
When the next account method is called from the while loop, the next party is
always called by the upper loop.
If next party is called also in next account then the first party is skipped.
Closes #12327
2023-07-17 23:05:11 +02:00
Nicolas Évrard
768e44bc8a
Return period end date as default date for account move
...
When period is before today, the default date of the account move must be set
with the period end date.
Closes #12408
2023-08-02 22:05:22 +02:00
Cédric Krier
ee98731a76
Post delegated move at the end of the action
...
Other modules may want to alter the delegated move so we must post it once it
is no more accessible to other modules.
Closes #12416
2023-07-19 18:15:18 +02:00
Cédric Krier
9096dda5b4
Do not display delegated amount if it is 0
...
This prevents to display the currency when there is no amount delegated.
2023-06-13 12:56:54 +02:00
Cédric Krier
418d977280
Post cancelled, grouped, rescheduled and delegated moves
...
If origin moves are posted, the result move should be posted otherwise payable
or receivable lines are no more considered.
2023-06-13 15:48:30 +02:00
Cédric Krier
e16444665f
Rename close state to closed
2023-06-20 10:13:56 +02:00
Cédric Krier
1b165ac4bd
Raise error messages for missing currency exchange journal and accounts
2023-05-10 14:57:42 +02:00
Cédric Krier
681988e9dd
Raise an error message for missing write-off method when reconciling
2023-06-01 00:00:37 +02:00
Cédric Krier
2015647285
Do not fail on missing writeoff account for reconciliation
...
There is no need to check for second currency if there is no account.
2023-05-10 13:14:00 +02:00
Cédric Krier
6b70ecf0f3
Test currency instead of party when reconcile automatically
...
Closes #12258
2023-05-05 12:24:08 +02:00
Cédric Krier
4929c6f294
Do not compute amount from reconciled lines if there is no currency
...
Closes #12256
2023-05-05 11:13:43 +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
5092923d0d
Support reconcile lines with currency exchange
2023-04-05 17:46:53 +02:00
Cédric Krier
6a05a2a8d5
Add searcher for currency on account move line
2023-02-15 19:53:37 +01:00
Cédric Krier
b9c4b8230d
Return instance in on_change_with methods
2023-03-26 09:49:00 +02:00