Richard Vong
4bcba3d179
Do not try to reconcile posted lines without debit/credit but with second currency amount
...
Closes #13293
(grafted from 395c4ebb8e25ec10f55c93d64447aec00ec5e168)
--HG--
branch : 7.0
2024-06-28 00:59:01 +02:00
Cédric Krier
b7adb7ba77
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
(grafted from 97e730164485c038de7744ea0a3fb189fd7426fa)
--HG--
branch : 7.0
2024-05-21 10:12:46 +02:00
Cédric Krier
c2091befaa
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
(grafted from 979cd092ea24f04328af5f4ff315c418e1c5b3e6)
--HG--
branch : 7.0
2024-04-30 19:15:44 +02:00
Cédric Krier
544ce5494b
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
(grafted from bce77308e529f2e96c46da2296546f047af48161)
--HG--
branch : 7.0
2024-04-27 18:36:49 +02:00
Cédric Krier
d206eacc80
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
(grafted from 989480b8ceea3d0d9d6a344c5d8ec1fb293597d9)
--HG--
branch : 7.0
2024-03-02 11:39:29 +01:00
Cédric Krier
113b73c866
Use 0 as fallback for missing debit or credit in on_change functions
...
Closes #12823
(grafted from bcff7d7cd008ddb4b8d9df3b63b6cecefcfce5c6)
--HG--
branch : 7.0
2023-12-12 17:02:31 +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
Cédric Krier
c48e7b36c6
Add reconcile and unreconcile from general ledger lines
...
Closes #7360
2023-03-13 23:52:18 +01:00
Cédric Krier
641cb7c9a4
Always raise exception when fiscal year or period are not found
2023-03-09 00:28:11 +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
dd18251497
Use domain for date constraint on period
...
Instead of always compute the date from the period, we compute the other value
from the changed field.
The start date of the period is used for period in the future and the end date
for period in the past.
Closes #12084
2023-02-14 01:32:04 +01:00
Cédric Krier
6457bc5ca1
Add warning when deleting account reconciliation with write-off line
...
Closes #4685
2023-02-15 23:08:53 +01:00
Cédric Krier
4c38035419
Use format for the warning key when deleting reconciliation with delegated
2023-02-15 23:08:06 +01:00
Cédric Krier
01366719d5
Use generic name for warning exception when deleting account reconciliation
2023-02-15 23:06:35 +01:00
Nicolas Évrard
a2662386c3
Save moves before reconciling the lines
...
The previous organization of the code made it less efficient to save the move
before reconciling the lines which should the logical order.
2023-01-29 01:08:22 +01:00
Nicolas Évrard
ab020a78e8
Reconcile the zero lines after saving moves
2023-01-23 17:05:55 +01:00
Cédric Krier
cb59e11ad4
Add reversal option when cancelling move
...
Closes #5180
2023-01-27 01:06:15 +01:00
Cédric Krier
1f8016700d
Add cumulative balance to payable/receivable lines
...
Closes #11994
2023-01-06 00:16:06 +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
7010cd1717
Lock journal period when automatically creating one
...
This avoids uniqueness constraint error in case of concurrent creation.
Closes #10747
2023-01-21 18:47:49 +01:00
Cédric Krier
9936e46e22
Rename reconciliation name to number
2023-01-08 20:10:39 +01:00
Cédric Krier
fb14b53030
Prepare migration to monorepo
2022-12-16 21:09:21 +01:00