Commit Graph
342 Commits
Author SHA1 Message Date
Cédric Krier 18efb38013 Follow isort formatting
issue10928
2021-12-11 17:58:41 +01:00
Cédric Krier 180b55bcd4 Always fill values for default properties of created chart of account
The create_chart test function relies on having the properties always set.

issue10918
review360391002
2021-10-31 18:47:42 +01:00
Cédric Krier 76221f31c4 Search default chart of account properties only for the company
issue10924
review375901002
2021-10-31 18:46:32 +01:00
Nicolas Évrard ffd08ed240 Test GL context values against None instead of using their presence
issue10896
review385271002
2021-10-27 17:01:59 +02:00
Nicolas Évrard 2a81e4ce26 Computes GeneralLedger timespan on either dates or period
issue10249
review351991002
2021-10-12 11:29:34 +02:00
Cédric Krier e7b0847b0d Fill default accounts when creating chart
issue10602
review359871002
2021-10-03 00:42:46 +02:00
Cédric Krier b395a0b095 Harmonize "Only include" help text 2021-09-20 10:34:29 +02:00
Cédric Krier 3364f2236a Update only chart of account linked to a template
issue10708
review343051004
2021-09-19 00:34:38 +02:00
Cédric Krier ee6b5e63bf Add monetary field
issue10598
review338511002
2021-08-21 09:09:55 +02:00
Cédric Krier 6af7145827 Enforce False value for receivable, payable and debt when not visible
issue10515
review369171002
2021-07-12 23:08:16 +02:00
Cédric Krier a8ecd116f5 Use same domain for account in chart properties and configuration
issue10484
review342441002
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