Commit Graph
9 Commits
Author SHA1 Message Date
Cristina Sangrador 721cb46253 Do not try to create periods when renewing a fiscal year without periods
The computation of interval raises a ZeroDivisionError because the length of
periods is 0.

Closes #13671
(grafted from baf0a88808a8c5e85116ebbc7cf5f414b6bd95fc)

--HG--
branch : 7.0
2024-12-28 14:00:38 +01:00
Cédric Krier e16444665f Rename close state to closed 2023-06-20 10:13:56 +02:00
Cédric Krier 6278bce20e Fix message variable for open fiscal year earlier 2023-06-13 15:57:00 +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 b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02: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 fb14b53030 Prepare migration to monorepo 2022-12-16 21:09:21 +01:00