Commit Graph
63 Commits
Author SHA1 Message Date
Cédric Krier 0e8f642662 Use sum_tree for accounting trees 2023-05-11 16:49:58 +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 4255e6ec1c Use consistent name for "Write-off" 2023-05-10 14:43:34 +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
Cédric Krier 5335a2022d Convert sum attribute into boolean 2023-05-06 14:25:22 +02:00
Cédric Krier 84d83120c5 Add receivable/payable to company 2023-04-07 18:24:09 +02:00
Cédric Krier d547689e0e Add sum to aged balance term and balance 2023-04-07 17:10:39 +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 1a11e103bf Increase version number 2023-05-01 14:11:22 +02:00
Cédric Krier 1901135502 Prepare release 6.8.0 2023-05-01 13:19:11 +02:00
Cédric Krier 87f1cf42da Do not fail to update chart if parent template is no more a template 2023-04-26 11:26:08 +02:00
Cédric Krier 84a2b5e271 Update translations 2023-04-29 10:07:40 +02:00
Cédric Krier a35f2a5bc8 Use plural for posted moves in context 2023-04-16 19:07:51 +02:00
Cédric Krier e4729c4acd Normalize second currency label 2023-04-16 19:07:25 +02:00
Cédric Krier 3c26cb725c Fix typo in account move template expression error message ID 2023-04-13 16:42:17 +02:00
Cédric Krier e3e8847c3c Use dates from context to compute account type amount
The general ledger dates are not good because they are defined to compute a
start and end amount.

Closes #12162
2023-04-08 14:31:25 +02:00
Cédric Krier 83b8037eca Limit debit and credit kind to line with debit and credit in aged balance
Closes #12193
2023-04-07 17:03:03 +02:00
Cédric Krier 5c346269c6 Save fiscal year at the end of renewal 2023-04-08 18:40:27 +02:00
Cédric Krier 5092923d0d Support reconcile lines with currency exchange 2023-04-05 17:46:53 +02:00
Cédric Krier ec01a52d00 Add amount second currency to general ledger line 2023-04-01 14:26:00 +02:00
Cédric Krier e859cf7376 Add searcher for currency on account models 2023-03-08 16:07:51 +01: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 9c85f825f9 Add and remove empty lines in scenario 2023-03-13 23:52:02 +01:00
Cédric Krier 928997415e Catch also syntax error when evaluate account move template 2023-03-12 17:27:11 +01:00
Juanjo Garcia 969f967f96 Check name of account move template keyword is valid identifier
Closes #12012
2023-03-12 17:25:52 +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 0551bbcac2 Use specific error message for open period or fiscal year not found
Closes #9335
2023-02-20 18:38:57 +01:00
Cédric Krier c32d602221 Add cache to fiscalyear find, test state and return instance 2023-02-11 00:13:24 +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 5cc5a8f672 Update tox.ini to set py311 and remove py37 2023-03-03 00:17:18 +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
Cédric Krier b38066f87a Add second currency fields to editable account move line list
As these fields may be required if the account has a second currency, they
need to be in the editable list.

Closes #11986
2023-02-15 22:56:22 +01:00
Nicolas Évrard 039761e061 Remove support for Python 3.7 2023-01-29 20:36:51 +01:00
Nicolas Évrard 777ee10f27 Add support for Python 3.11 2023-01-27 11:02:47 +01:00
Cédric Krier dccb78a73c Require account type when parent has one
The domain added by c39ad0bef61e is not enough to ensure type coherence
because if the type is None, the domain is still valid.
2023-02-06 19:02:27 +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