Commit Graph
96 Commits
Author SHA1 Message Date
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
Nicolas Évrard 2037b6b71b Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:46 +01: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 6c497ef21e Use custom icons for open, close and locked state
issue8222
review287131003
2019-03-28 19:40:28 +01:00
Cédric Krier 0929d8d550 Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier 1e447a7f39 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:28 +01:00
Nicolas Évrard 4ae1e3b92a Remove dead code introduced by refactoring in changeset d6f67c50758c
issue7908
review68371002
2018-12-19 17:08:24 +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
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 6485829233 Remove migration before 3.0
issue6470
review52421002
2018-08-09 20:43:51 +02:00
Cédric Krier 8758950427 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Sergi Almacellas Abellana b287760e6a Remove account journal type
issue7451
review42171002
2018-05-30 14:12:08 +02:00
Sergi Almacellas Abellana 5b788c768e Use deactivable mixin
issue4341
review38401002
2018-03-26 14:08:06 +02:00
Cédric Krier c45a12bb29 Always raise exception in table handler
issue7175
review40161002
2018-03-15 00:44:19 +01:00
Sergi Almacellas Abellana ca31845e54 Add depends on Button
issue6919
review40811002
2018-02-19 11:36:13 +01:00
Sergi Almacellas Abellana d2e90dd4bb Pass pattern argument on multivalue default fields
issue6658
review40541002
2017-07-25 09:54:24 +02:00
Cédric Krier b1e320e204 Add definitive lock of period and fiscal year
issue6339
review28201002
2017-04-02 12:46:28 +02:00
Cédric Krier e019315e9c Remove Property fields
issue2349
review34831002
2017-04-01 00:25:49 +02:00
Cédric Krier 760f71d95d Remove journal view
The feature can be emulated by contextual view inheritance.

issue6002
review31681002
2016-10-31 17:25:11 +01:00
Sergi Almacellas Abellana cc474f9357 Use sequence_ordered
issue5105
2016-09-13 14:02:40 +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
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 6777dce1ea Use context model in open cash journal
issue5539
review21971002
2016-05-20 15:34:29 +02:00
Nicolas Évrard a829d4308a Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:53:17 +01:00
Cédric Krier 8fdd1a480c Add Journal Cash reporting
issue4891
review15581002
2015-09-01 23:57:00 +02:00
Cédric Krier 48cd9b0454 Remove boolean expression in order
issue4852
review15541002
2015-07-13 23:57:30 +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 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 97cf771163 Better label for Journal.update_posted
issue4679
review11141002
2015-03-26 21:15:15 +01:00
Cédric Krier 2105994ca4 Avoid naming collision between table variable in Journal migration from 1.0 2014-12-08 16:12:41 +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 483a2fc404 Use context to check model and field access
issue4081
review8481002
2014-09-17 21:44:51 +02:00
Jordi Esteve e6be1ca3f6 Use OR clause in all search_rec_name
issue3613
review2901003
2014-01-31 14:06:56 +01:00
Cédric Krier 495f2cb539 Improve write-off
- Use account of write-off journal as default
- Add write-off journal type

issue3538
review2101002
2013-12-20 13:59:46 +01:00
Cédric Krier e42c7d5508 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:44:33 +01:00
Cédric Krier a3b1b97950 Fix required test on accounts journal as default company value is no more 0 2013-10-10 12:24:05 +02:00
Cédric Krier 44c4b89065 Fix usage of context company
Default value of company should be -1 to get the right cast and an impossible
value.
Replace False by None as other value in "in" clause.

issue3394
review1119002
2013-10-09 18:25:04 +02:00
Cédric Krier b012a00c64 Fix domain concatenation between list and tuple 2013-09-10 14:29:23 +02:00
Cédric Krier 51bd459220 Migration to python-sql
review1001002
2013-09-06 22:33:47 +02:00
Albert Cervera i Areny d129b4298f Remove centralised from account.journal
review853002
issue3071
2013-05-21 19:09:37 +02:00
Ian Wilson 95e9120cc9 Fix close and open account journal period wizards.
Use browse instead of model constructor for list of ids.
Model constructor expects single id instead of a list of ids.

issue3047
review706002
2013-03-07 14:42:09 -08:00
Albert Cervera i Areny 7f9c38ee89 Replace _constraints with validate in ModelStorage and improve user messages.
issue2616
review371002
2013-03-07 16:53:42 +01:00
Cédric Krier f943da6141 Fix flake8 2013-02-16 18:54:35 +01:00
Albert Cervera i Areny 87222daf32 Use a list of dictionaries in create().
issue2358
review266002
2013-01-06 22:18:13 +01:00
Cédric Krier 0f919d5f3a Active Record 2012-09-24 22:17:29 +02:00
Cédric Krier c00adbaa7f Remove required on sequence
review348001
2012-05-14 15:36:13 +02:00
Cédric Krier ff9f887f17 Fix pep8 and pyflakes 2012-04-03 20:06:15 +02:00
Cédric Krier 36bb3ddde1 Replace wrong usage of False by None
issue2512
2012-03-27 10:43:03 +02:00
Nicolas Évrard 06f7a2dd00 Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:49 +01:00