Commit Graph
134 Commits
Author SHA1 Message Date
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
Sergi Almacellas Abellana 0287507f85 Update parent and replaced_by when template has no taxes
Closes #11891
2023-01-09 14:34:21 +01:00
Cédric Krier 4683fde7ac Make scenario independent of the current day
The fiscal years are created centered on the passed date such that if the
current day change during the execution, the fiscal year is still usable.
Also fiscal year can be created for a range of dates such that it is guarantee
that the dates are in the fiscal year.
And finally remove datetime and dateutil import when they are not used.

Closes #9977
2023-01-01 10:36:03 +01:00
Cédric Krier 2b786d8c44 Add coverage reports 2023-01-08 11:18:56 +01:00
Cédric Krier 62e8201d5a Add unit test reports 2023-01-08 01:55:20 +01:00
Cédric Krier 5f8b891f62 Increase verbosity of tox 2022-12-28 00:26:31 +01:00
Nicolas Évrard 2da82e2b94 Accrue and allocate rounding errors when there are multiple taxes
Closes #11317
2022-12-25 18:55:17 +01:00
Nicolas Évrard 7cbee84611 Skip on_change_parent on already saved account
Closes #11871
2023-01-02 22:00:47 +01:00
Cédric Krier 468ca93e07 Use match pattern to find journal
Closes #11884
2022-12-26 15:08:29 +01:00
Cédric Krier f36318178e Do not use closed account in test tools
Closes #11932
2022-12-24 17:49:47 +01:00
Cédric Krier 98cbb23f58 Improve setup.py
get_required_version does not need to use .dev0 suffix anymore.
The download URL must be empty for development version.
Source Code must point to Heptapod repository.
Foundation email is used as author email.
2022-12-24 13:45:10 +01:00
Cédric Krier c35e1ad98d Use modulo on minor version to set latest series for documentation 2022-12-20 12:43:56 +01:00
Cédric Krier 5d3e4a39f2 Prepare migration to monorepo 2022-12-16 23:16:08 +01:00
Cédric Krier fb14b53030 Prepare migration to monorepo 2022-12-16 21:09:21 +01:00