Commit Graph
1683 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana 1d3ffebf6b Ensure end periods is set when computing GL debit and credit amounts
As the diference between end_periods and start_periods is computed, the end
periods should have a value when the start periods is set otherwise and empty
list of periods is used

issue7838
review47721002
2018-12-03 11:35:19 +01:00
Sergi Almacellas Abellana 1db9ad8285 Add test for update chart from template
issue7801
review74391002
2018-11-27 12:51:38 +01:00
Korbinian Preisler 1792996783 Use list of ids in add operation on Many2Many in update_account2
issue7791
review72351002
2018-11-25 14:38:39 +01:00
Cédric Krier 8f9d06743f Ensure GL per periods or dates are the same
We should not use nonexistent period ids in the context and the start_date
must be excluded from the start computation because it is included in the
range (query_get use greater and lesser or equal).

issue7628
review60421002
2018-11-18 12:05:42 +01:00
Cédric Krier 944e103b1e Do not recursively extend the base domain of parent and childs
The base class can not extend domain in __setup__ because it modify the field
of the base class.

issue7834
review52521004
2018-11-18 12:00:11 +01:00
Cédric Krier d831666453 Base journal cash report on account kind receivable and payable
Since changeset d1d3a1c12158, journal has no more credit/debit accounts.
The journal cash report is based now on all moves between receivable/payable
and others.
We clean also unused Model and method from the removal of the credit/debit
accounts.

issue7808
review68331002
2018-11-07 19:01:14 +01:00
Cédric Krier 2fae2d7d1b Do not fail in party_required test if account is None in _get_writeoff_move
issue7842
review47731002
2018-11-07 18:57:49 +01:00
Christian Aguilera b15762fb70 Make writeoff required in ReconcileLinesWriteOff
The constraint was lost in the refactoring of changeset d1d3a1c12158

issue7842
review56461002
2018-11-07 18:56:40 +01:00
Cédric Krier 551744fbaa Remove custom strftime for year before 1900
The bug has been fixed in Python 3.3

issue7814
review48671002
2018-10-31 18:15:57 +01:00
Sergi Almacellas Abellana a5fffa3f68 Update tax code lines when updating chart from template
Also don't compare value with it's template when computing values to update

issue7795
review51561002
2018-10-22 11:33:36 +02:00
Cédric Krier 09a50cade9 Increase version number 2018-10-01 12:41:52 +02:00
Cédric Krier 6cce0ec9a5 Added tag 5.0.0 for changeset f8512a0d623e 2018-10-01 12:41:40 +02:00
Cédric Krier c3c1d205b7 Prepare release 5.0.0 2018-10-01 12:41:40 +02:00
Cédric Krier 09675bb86c Update translations 2018-09-28 23:02:31 +02:00
Cédric Krier 2c0ea880d8 Ensure order by post_number is chronological
It is needed by account_fr for the FEC export.

issue7719
review72331002
2018-09-24 14:36:01 +02:00
Cédric Krier 341ba9d6d0 Move description of line after the taxes
The description is no more required so it should not be requested to be filled
too soon to speed the encoding.

issue7701
review64371002
2018-09-21 11:00:02 +02:00
Cédric Krier b6fa9fb328 Update reconcile wizard to use write off method
issue7450
review60331002
2018-09-11 00:18:55 +02:00
Cédric Krier cc9f1e7c68 Enforce party required on account receivable and payable
It is needed to correctly compute the payable and receivable amounts.

issue5565
review50561002
2018-09-11 00:17:46 +02:00
Cédric Krier 9c9ec882b8 Rename tryton-dialog-* icon into tryton-*
issue474
2018-09-06 10:01:11 +02:00
Cédric Krier 491d74b591 Remove deprecation warning
- remove invalid escape sequence
- use  read_file instead of read_fp
- use importlib instead of imp and __import__
- use callable instead of instance of collections.Callable
- fix silent file closing
- replace SafeConfigParser by ConfigParser
- replace decodestring by decodebytes
- replace encodestring by encodebytes

issue7666
issue7390
review53361004
2018-09-01 17:06:27 +02:00
Sergi Almacellas Abellana 344e7047e5 Remove default account from journal
Also add write off method

issue7450
review45551002
2018-09-01 11:20:13 +02:00
Cédric Krier 4a27e24c32 Improve ModelStorage.copy
* Allow callable in copy default
* Support dotted notation in copy default
* Use setdefault in copy
* Copy default when needed
* Do not set default state in copy
* Use callable and dotted notation in copy default

issue5576
issue7648
review72291002
2018-09-01 01:02:03 +02:00
Cédric Krier 317858703d Add support for chart of account evolution
* Add replacement account
* Add period on account and tax code

issue7417
review45671002
2018-08-31 14:58:05 +02:00
Sergi Almacellas Abellana 3d09c0ea57 Add template override mechanism to tax rules and tax rule lines
issue6912
review70341002
2018-08-30 14:00:28 +02:00
Cédric Krier 3f6fa1d0ed Delete on cascade tax code line and tax rule line from template
issue7612
review48561002
2018-08-27 10:44:48 +02:00
Cédric Krier fc463bf270 Require fresh session to post move
issue7568
review60301002
2018-08-26 18:06:32 +02:00
Sergi Almacellas Abellana 413ab784f9 Add another party on move cancel scenario
issue7602
review45681002
2018-08-22 09:59:23 +02:00
Sergi Almacellas Abellana bef32ea978 Group by account and party when reconciling cancel moves
issue7602
review45681002
2018-08-22 09:57:44 +02:00
Cédric Krier 99ac3517f0 Use material design icons
issue474
review60291002
2018-08-19 20:02:58 +02:00
Cédric Krier 6485829233 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier ccc6ca8633 Use sqlite3.backup when available
issue7212
review44131002
2018-08-06 19:05:43 +02:00
Cédric Krier 1e6bd9a89b Add support for Python 3.7
issue7547
2018-07-28 16:44:09 +02:00
Cédric Krier 8758950427 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Cédric Krier 9dda2b3560 Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:40 +02:00
Sergi Almacellas Abellana b287760e6a Remove account journal type
issue7451
review42171002
2018-05-30 14:12:08 +02:00
Cédric Krier ba7a13fa53 Do not fail general journal report on origin with negative id
Since changeset b8d76b07910f, the reference value of a negative id is a string
so testing the id does not work. It is safer to call getattr with a default
empty string value.

issue7437
review38241002
2018-05-22 23:37:09 +02:00
Cédric Krier e9aa81c275 Update missing translations
issue7414
2018-05-21 23:13:30 +02:00
Sergi Almacellas Abellana 81b577303b Test if journal has a sequence before getting a number from it
As sequence is a required by context it may not be defined

issue5502
review45121002
2018-05-21 10:27:38 +02:00
Cédric Krier fb54f508a3 Use tree mixin
issue7383
review45011002
2018-05-12 00:47:07 +02:00
Cédric Krier 673ef2eb3a Allow to edit maturity date and tax lines
Tax line modification is managed by the TaxLine model and the maturity date is
a business field.

issue7276
review42011002
2018-04-30 15:48:54 +02:00
Cédric Krier 0678268232 Use sql_cast from Field
issue7266
2018-04-30 15:26:03 +02:00
Cédric Krier b51a79bb20 Increase version number 2018-04-23 17:24:11 +02:00
Cédric Krier ac8bc087f1 Added tag 4.8.0 for changeset 658a3cbfc0cf 2018-04-23 17:23:52 +02:00
Cédric Krier dbfa1ebafd Prepare release 4.8.0 2018-04-23 17:23:52 +02:00
Cédric Krier d036fdbcc0 Update translations 2018-04-21 13:06:23 +02:00
Cédric Krier 8108634d0a Fix Decimal conversion for SQLite
changeset 3de9de3f476c set initial balance value as Decimal. But as the SQLite
Decimal loop break on the first correct instance, it fails to convert other
value coming from the SQL if the default value is tested first.
As there is any way a second loop, it is faster to make the conversion in this
second loop.

issue7284
2018-04-18 10:50:42 +02:00
Cédric Krier e2d8d0a808 Quantize to number of digits instead of rounding computed amount
Rounding may change the result if currency rounding is not unitary.

issue7284
review37251002
2018-04-18 10:18:37 +02:00
Cédric Krier e798828de9 Ensure None are before 0
The next index must point to the next value and not a None value which are
skipped.

issue7350
review38161002
2018-04-17 17:56:02 +02:00
Cédric Krier b60d6181d6 Add Persian
issue7311
2018-04-14 17:23:50 +02:00
Cédric Krier e317152b76 Add viewBox attribute to SVG
issue7320
review47291002
2018-04-09 10:55:04 +02:00