Commit Graph
340 Commits
Author SHA1 Message Date
Cédric Krier 0dd4a2ccff Compute debit/credit and lines on either dates or periods
issue11095
review376331002
(grafted from f748b75e32c835ce769580e4fc8dc8e1bde3abca)

--HG--
branch : 6.0
2022-01-04 22:24:20 +01:00
Cédric Krier 092211e69e Compute income statement on either dates or periods
issue11040
review389391002
(grafted from bd9dd211985fd9391f1951154e77d90f627c2155)

--HG--
branch : 6.0
2021-12-21 23:09:53 +01:00
Cédric Krier be209868e3 Compute the periods for type amount the same way as general ledger
issue11039
review376171002
(grafted from 491d585d8424f3cdbf05f4e793446e808e5a47dc)

--HG--
branch : 6.0
2021-12-16 22:42:53 +01:00
Cédric Krier 423ca12a81 Do not reset period or date if changed fill is empty
issue11035
review370401002
(grafted from d471d45ddc0596f28cbefcf4830db73c60b918cd)

--HG--
branch : 6.0
2021-12-16 22:39:44 +01:00
Cédric Krier c3319e4821 Update parent of type, account, tax and tax code from template
issue11037
review387461002
(grafted from ed7b63a4fdea99ee3c0cf470596b43c6413c07dd)

--HG--
branch : 6.0
2021-12-16 22:37:53 +01:00
Cédric Krier 1bc1474843 Search default chart of account properties only for the company
issue10924
review375901002
(grafted from 54994e1bdde91e324ab05d3b24715510c1549a89)

--HG--
branch : 6.0
2021-10-31 18:46:32 +01:00
Nicolas Évrard b042c699dd Test GL context values against None instead of using their presence
issue10896
review385271002
(grafted from 1e8fd17cfc05205c24ec565f96b6fe14bf9bf39c)

--HG--
branch : 6.0
2021-10-27 17:01:59 +02:00
Nicolas Évrard 9fcaf9fa89 Computes GeneralLedger timespan on either dates or period
issue10249
review351991002
(grafted from 1b3d9d7a758f7db21e171103b17f27442583cea8)

--HG--
branch : 6.0
2021-10-12 11:29:34 +02:00
Cédric Krier 98141a87ac Use same domain for account in chart properties and configuration
issue10484
review342441002
(grafted from 5c8007be3d4681dd8279ad1cdb2081f3f8b5482f)

--HG--
branch : 6.0
2021-06-11 00:13:11 +02:00
Nicolas Évrard 453adfae04 Use subquery to gain performance in account.account.party
issue10216
review353411002
2021-04-12 20:48:57 +02:00
Sergi Almacellas Abellana 14e1e67079 Add check to mark accounts as debt
issue10164
review357341003
2021-04-11 20:51:49 +02:00
Nicolas Évrard 670f642b66 Call super() method of view_attributes
issue10151
review349551002
2021-04-09 10:52:03 +02:00
Cédric Krier e580c1ac87 Enforce access rights when searching in wizard
If there are no constraint based on the records on the search domain, we must
enforce the access rights to limit the execution to the user accesses.

issue10229
review335931002
2021-04-05 15:15:38 +02:00
Cédric Krier 8df23a3561 Remove unused get_party_required method on general ledger line
issue5480 changed the field from Function to Boolean without removing the
getter method.
2021-04-02 12:38:19 +02:00
Sergi Almacellas Abellana 1ebe29a3b0 Accumulate start balance on general ledger line
issue9791
review339211002
2021-03-31 16:02:44 +02:00
Cédric Krier 54172e3a84 Replace cursor fetchall by iteration over cursor
issue5817
review335831003
2021-03-21 16:09:12 +01:00
Cédric Krier 4a022a7d33 Add report for income statement and balance sheet
issue10117
review330331005
2021-03-07 19:07:31 +01:00
Cédric Krier 232ec4b1f1 Add __access__ to Model
issue9903
review324601002
2021-03-07 11:13:53 +01:00
Sergi Almacellas Abellana 7291bf8a18 Unify account and account template rec_name's searcher
issue10156
review316921003
2021-03-06 19:15:38 +01:00
Cédric Krier d5081641e5 Add test on context of company multivalue target fields
issue10067
review333851026
2021-03-05 15:49:19 +01:00
Cédric Krier a0574eae80 Skip unrequested combination of account-party for balance
Same as rev bd55a6757068 but for the balance computation.

issue9762
review308741002
2021-03-01 23:27:04 +01:00
Cédric Krier 090bd71989 Add header grouping on report
issue6760
review351221002
2021-02-21 19:19:26 +01:00
Cédric Krier d1395db4d7 Allow filtering general ledger by journal
As general ledger is historically the consolidation of each journal, it may be
useful to permit to display the ledger of each journal.

issue8757
review335351002
2021-01-04 21:33:28 +01:00
Cédric Krier 20fc4a4bdc Add reconciliation to general ledger line
This allow filtering out reconciled lines.

issue5169
review343141002
2021-01-04 21:29:23 +01:00
Cédric Krier d993ecf012 Skip unrequested combination of account-party
When computing the debit/credit of account party, the query may return more
combinations of account-party than requested.
It is simpler to ignore them than construct a query that filter exactly on the
combination of each account and party requested.

issue9762
review308671002
2020-11-27 22:38:34 +01:00
Cédric Krier 0206012f03 Add more term units to aged balance
Using dateutil relativedelta, we can support weeks, months and years.
Also when changing the unit, we set "standard" term values to be more
user-friendly.

issue9318
review304581002
2020-11-12 22:08:06 +01:00
Cédric Krier 1e2d535020 Add symbol widget
issue9059
review276871002
2020-10-09 19:09:05 +02:00
David Harper cb60dc6b34 Get account from pool in UpdateChart default_start
issue9663
review329121002
2020-10-03 12:26:12 +01:00
David Harper b581907bac Get account from pool in CreateChart default_properties
issue9657
review306531002
2020-10-03 12:24:19 +01:00
Cédric Krier 80fc35e01d Add General Ledger per account and party
We define an internal AccountParty model which defines an unique ID for the
couple account and party based on the first move line created.
Then we define a General Ledger model based on this model.

issue7438
review314091002
2020-09-05 22:21:38 +02:00
Sergi Almacellas Abellana 28175f11bf Set default accounts on create and update chart wizards
issue9382
review306261002
2020-08-25 18:04:50 +02:00
Cédric Krier bdcc82beea Re-browse account updated to get inactive context
issue9473
review307941002
2020-07-24 09:55:35 +02:00
Cédric Krier 54075ed98b Add model, record and records attribute on Wizard
issue9421
review309861012
2020-07-07 23:56:09 +02:00
Cédric Krier 3d9739011f Fall-back to move date on aged balance
Putting empty maturity date on the last term does not reflect properly the
history of the balance. As we consider such line to be paid or received today,
it is better to use the date at which the move was effective.

issue9294
review305481006
2020-05-19 18:59:55 +02:00
Cédric Krier 371b35b9f5 Do not copy template of account type
issue9269
review307531002
2020-04-28 00:33:45 +02:00
Sergi Almacellas Abellana b04944abdd Improve posted move help text
issue8670
review319121002
2020-04-12 09:01:29 +02:00
Sergi Almacellas Abellana 624a80692b Order account by its code and name
issue9180
review297361002
2020-04-06 12:56:19 +02:00
Cédric Krier 6151377044 Add optional debit type on account
The balance of the account is added to the debit type instead of the regular
type if the debit is greater than the credit.

issue6601
review262771002
2020-03-28 14:17:49 +01:00
Cédric Krier f5d1d549d7 Fix flake8 errors and warnings
We add the flake8 configuration used so we ensure everyone uses the same.
We remove the usage of __all__ for non public API.
When possible, we rationalize the class name according to its __name__ and module.

issue9082
review297061002
2020-03-01 12:33:50 +01:00
Cédric Krier cf6a464261 Remove trailing space in taxes help 2020-01-12 10:21:51 +01:00
Sergi Almacellas Abellana 76881d178d Add missing end dot on translatable strings
issue8670
review262311002
2019-12-18 09:16:34 +01:00
Cédric Krier 567eb41095 Add missing parent depends
issue8712
review258221002
2019-10-16 21:17:39 +02:00
Cédric Krier 31713f8cbf Prevent assign unknown attributes on Model
by adding __slots__ on PoolMeta

issue8567
review254091002
2019-09-07 23:45:08 +02:00
Cédric Krier 7b42f1faf9 Skip closed account on general ledger
issue8491
review271781002
2019-07-20 21:47:01 +02:00
Cédric Krier 320cad650d Add default company value for account type
issue8471
review265641002
2019-07-09 23:24:51 +02:00
Luciano Rossi (lukio) 63c6a38a03 Fix typo in states key name
issue8262
review263321002
2019-04-12 13:06:31 +02:00
Sergi Almacellas Abellana 9f17797504 Remove starting wildcard when searching on codes and numbers
issue7347
review64541002
2019-04-11 15:20:02 +02:00
Cédric Krier 0929d8d550 Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier 53b3e68c3e Do not recreate models that have template override is True
The dictionary template2*** must always be filled even if template override is
True because create_*** calls will use this dictionary to not recreate the
records.

issue7938
review54551002
2019-03-08 18:48:09 +01:00
Cédric Krier 1e447a7f39 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:28 +01:00