Commit Graph
272 Commits
Author SHA1 Message Date
Cédric Krier ae9bfd5b2e Rename language codes
issue5443
2016-09-10 23:26:07 +02:00
Cédric Krier c5bbf7c6ac Remove journal option for updating posted moves
This option is in general bad accounting practice
and often forbidden in many countries.

issue5825
review32481002
2016-09-10 10:12:18 +02:00
Cédric Krier c8f3b886c7 Fix sign of amount second currency when canceling move
issue5732
review32371002
2016-08-04 23:51:08 +02:00
Xavier Codinas 3438eb29d9 Add rec_name instead of journal and period names.
issue2371
review29321002
2016-07-07 10:36:37 +02:00
Sergi Almacellas Abellana 9cf94c8e69 Remove usage of header_view_get and string attribute from views
issue2350
review25191002
2016-07-05 12:46:04 +02:00
Cédric Krier a2d5dbbc61 Manage readonly state on Move Line
issue5628
review27341002
2016-06-30 18:50:40 +02:00
Sergi Almacellas Abellana 7185eb72fc Fix antipatern of create/write in loop
issue3516
review14941002
2016-06-17 13:40:45 +02:00
Sergi Almacellas Abellana 28eb5f3f16 Take in account access rule on reconcile wizard
issue5512
review18061002
2016-04-25 21:05:58 +02:00
Cédric Krier 9d86d57462 Add CASCADE deleting on move of move line
issue5344
review17071002
2016-03-04 00:28:51 +01:00
Nicolas Évrard a829d4308a Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:53:17 +01:00
Cédric Krier a86cfb55d0 Add doctest checker for Python 2-3
issue3211
2016-02-25 00:06:33 +01:00
Cédric Krier 87d866836b Fix migration of new date field on Reconciliation
The migration should happen only if the account.move.line table exists
otherwise it is a fresh new installation which doesn't require migration.
2016-02-03 22:02:19 +01:00
Cédric Krier 006e46a0aa Merge Third Party Balance into Aged Balance
Also add date to Aged Balance and add lines without maturity in last term.
But also add a date on Reconciliation as the highest date of the reconciled
lines.

issue5270
review20681002
2016-02-03 21:23:34 +01:00
Cédric Krier 7054512e99 Show only valid line from Open Account wizard
issue5265
review17771002
2016-01-22 18:26:15 +01:00
Cédric Krier e42cfe7892 Remove colors attribute on tree view
issue4861
review16551003
2015-08-22 09:01:04 +02:00
Cédric Krier 5dc260c1ba Use StateReport
issue4896
review22351002
2015-08-14 18:04:59 +02:00
Cédric Krier d8b28a75d4 Use Constraint instance in ModelSQL._sql_constraints
issue4814
review15491002
2015-06-22 16:58:24 +02:00
Cédric Krier b6ca48f449 Typo in messages: it's -> its
issue4691
review16271002
2015-05-12 09:58:03 +02:00
Cédric Krier edab5adf54 Fix search_rec_name for negative operator
In case of negative operator, each subclause must be composed with 'AND'.

issue4559
review13111003
2015-04-05 23:39:57 +02:00
Cédric Krier aef1a2bac9 Use explicit default keyword for config
issue4662
review8041002
2015-03-22 03:19:42 +01:00
Nicolas Évrard 812f122b7e Use M2M instead of O2M to store accounts / parties session data
Since the new on_change API the _default_values method invoked by the session
_save method of the wizard behaves differently for O2M and M2M. In order to
keep the old behaviour those fields needs to become M2M.

issue4526
review6881002
2015-03-16 17:51:43 +01:00
David Harper 4d0cf5b01a change Ok to OK
issue4290
review7021002
2015-03-10 18:27:06 +01:00
Cédric Krier 631215807f Remove safe_eval
We convert all the fields that were storing python code into PYSON.
We add a pyson attribute on field tag to store PYSON value.

issue4416
review6971002
2015-03-09 19:41:01 +01:00
Cédric Krier 21c2f76bcb Ensure lines in Line.reconcile is a list
Line.reconcile can append lines to the parameter lines that's why it is
duplicate but it must also ensure it is a list.

issue4623
review9071002
2015-03-09 19:27:31 +01:00
Cédric Krier c00f04c948 Add move template
issue4407
review14771002
2015-03-02 23:34:41 +01:00
Sergi Almacellas Abellana 668a671534 Move company should be readonly when move it's posted
issue4541
review6021002
2015-02-15 12:06:28 +01:00
Cédric Krier d6c1417536 Improve payable/receivable lines
- use a simplified view
- add amount function field
- use search_value for reconciliation filtering

issue4515
review10101003
2015-02-10 00:13:10 +01:00
Cédric Krier 8f0b56c788 Normalize the usage of amount second currency
issue3663
review3611002
2015-02-09 23:59:09 +01:00
Raphaël Hertzog a13c9af489 Preserve the user-supplied date on account moves when it's valid
If the user-supplied date is within the current period, then it needs
to be preserved. Otherwise we keep the current logic of using the last
line of the journal, or, failing that, the start period.

issue4475
review10851002
2015-02-02 18:44:16 +01:00
Nicolas Évrard 1009c61a6f Report API refactorization
review8831002
2015-01-20 18:49:53 +01:00
Sergi Almacellas Abellana a10c56e0b6 Clear move line party if account doesn't allow to have a party
issue4474
review10791002
2015-01-14 18:53:26 +01:00
Cédric Krier 34e193a181 Don't store generator if not used sequentially
The access to the dictionary value will be random as moves is not sorted, so
the generator could be consumed before really used.

issue4461
review14871002
2015-01-09 18:48:43 +01:00
Sergi Almacellas Abellana ff366400b2 Improve error message when deleting an account with related moves
issue4419
review14791002
2014-12-31 17:04:46 +01:00
Cédric Krier 36c1ff8e75 Add missing company domain/field
issue4311
review7691002
2014-12-03 16:13:08 +01:00
Cédric Krier 492ffa9f5a Fix most flake8 errors
review8771002
2014-12-02 12:54:29 +01:00
Robin Baumgartner 63bd7b99f3 Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 13:58:35 +01:00
Cédric Krier 4599a5990f Allow to set a description to cancel move
issue4304
review6631002
2014-11-10 23:35:54 +01:00
Cédric Krier b1297ddaec Use dualmethod on ModelStorage.save
issue4197
review8671002
2014-11-01 11:53:42 +01:00
Cédric Krier 93d39c00eb Make party_required test works with None value
issue4297
review13681002
2014-10-31 10:52:52 +01:00
Cédric Krier 46e8b22da8 New API for on_change
issue4203
review8581002
2014-10-29 20:39:03 +01:00
Cédric Krier 970ea5342a Missing opening quote in reconciliation_different_parties error message
issue4245
2014-10-23 20:25:03 +02:00
Sergi Almacellas Abellana 9c1cd5eec3 Add missing move keyword to out of period error message
review6551002
issue4214
2014-09-26 16:02:00 +02:00
Cédric Krier 8780460795 Remove debugging information introduced in changeset 8550af7f7c64 2014-09-21 15:49:27 +02:00
Cédric Krier e8adeabed7 Re-enable Line._check_modify_exclude
_check_modify_exclude allow to reconcile posted lines.

issue3894
review11501002
2014-09-21 12:12:26 +02:00
Nicolas Évrard 245fe733dc Do not depend on the order of the lines in the reconciliation validation
issue4163
review8551002
2014-09-19 23:32:48 +02:00
Nicolas Évrard dad8dd2cef Make party mandatory / invisible according to account configuration
issue3731
review14341002
2014-09-19 18:44:53 +02:00
Nicolas Évrard 6a7e620dbe Better check for modification in case of reconciliation
issue3894
review14261002
2014-09-19 18:17:29 +02:00
Cédric Krier 078da3c99a Fix depends of ReconcileShow.lines 2014-09-19 18:04:30 +02:00
Cédric Krier f20f5cdfbb Add wizard to reconcile accounts
Currently, the "Open Reconcile Lines" can become very difficult to use when you
have a lot of different parties and/or a lot of account to reconcile.
Here is a new process which is based on a wizard that loops over all the couple
of account/party that potentially have lines to reconcile. It shows for each
couple a proposal of reconciliation that the user can accept or modify (with
write-off possibilities).
The proposal is found by testing all the combinations of lines up to 10 lines by
default (configurable). As such problem is NP-hard, I think we can afford to use
the brute force for small number and let the user solves higher number or
iterate on running the wizard. Any way, it is possible to implement other
strategy by module extention.

issue4185
review14511002
2014-09-19 16:24:48 +02:00
Nicolas Évrard 6018e82a36 Add rec_name to account.move.line
issue3862
review5251002
2014-09-19 14:24:46 +02:00