Commit Graph
26 Commits
Author SHA1 Message Date
Cédric Krier f5f0cdc09b Do not filter with context lines for aged balance
Closes #12210
(grafted from 428746eda064bb89c4b1945cdc778efe2d7b7557)

--HG--
branch : 7.0
2024-07-26 23:25:02 +02:00
Cédric Krier 9956e2f1e3 Use min date as default From Date for start amount of general ledger
Closes #12660
(grafted from 06bc271a0d51d43f06306dc2c872ccd07979d50d)

--HG--
branch : 7.0
2024-03-17 11:36: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 33de40f77b Test to_date in context to get dates for general ledger
1b3d9d7a758f added the wrong test to exclude period and dates.

Closes #12629
2023-10-21 16:21:40 +02:00
Cédric Krier 9cff1e0b62 Do not compute account party for general ledger line without party
Closes #12570
2023-10-05 23:18:51 +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 0cfc78cdad Do not fail to set default fiscal year when context value is None
We can not compare contextual fiscalyear or period as positive if their values
have been set to None.

Closes #12502
2023-09-17 19:19:17 +02:00
Adrià Tarroja Caubet 83220a6076 Reuse cumulate per party from context as default value for general ledger line
Closes #12367
2023-07-05 16:32:56 +02:00
Cédric Krier e16444665f Rename close state to closed 2023-06-20 10:13:56 +02:00
Cédric Krier 0e8f642662 Use sum_tree for accounting trees 2023-05-11 16:49:58 +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 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 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 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 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 c32d602221 Add cache to fiscalyear find, test state and return instance 2023-02-11 00:13:24 +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
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
Sergi Almacellas Abellana 0287507f85 Update parent and replaced_by when template has no taxes
Closes #11891
2023-01-09 14:34:21 +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 fb14b53030 Prepare migration to monorepo 2022-12-16 21:09:21 +01:00