Commit Graph
9 Commits
Author SHA1 Message Date
Cédric Krier 50d19b416b Add depends on periods when changing company of tax code context
Since fa8f759f834b there is an assert to ensure that changing values of
xxx2Many can be done only if the field had a initial value.

Closes #13535
(grafted from 12cab3bcc14025182a5b78fcd5f9af400e55cf5a)

--HG--
branch : 7.0
2024-09-30 17:22:37 +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 493d45366b Return list of instance as result of test tax wizard
Since 0db956eb2505 the on_change_with for xxx2Many must return a list of
instances.

Closes #12852
(grafted from 78704afb76ef28e16c518b99d2aee4c84eb01bc9)

--HG--
branch : 7.0
2023-12-23 01:47:24 +01:00
Cédric Krier 701670f0e3 Update trees of chart of accounts with 2 passes
When a new parent is added to a tree template like types, taxes or tax codes,
the corresponding record of the new template parent is not yet created.
So we need to use a default value for the parent and update again the tree
after creating the new records.

Closes #12755
(grafted from 561f9c7dbdc2a2c39c1fe5f6bf7274d01ee9ebd6)

--HG--
branch : 7.0
2023-11-16 16:32:43 +01: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 45bbfa8fb5 Add cache to account period find and return instance
Closes #7705
2023-02-10 23:36:18 +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
Cédric Krier fb14b53030 Prepare migration to monorepo 2022-12-16 21:09:21 +01:00