Commit Graph
107 Commits
Author SHA1 Message Date
Cédric Krier e35c52abf9 Use declarative index definition for ModelSQL
issue5757
review361251002
2022-10-11 00:44:48 +02:00
Cédric Krier f0559e37fb Left strip code operand only when it is a full text
This allow to write query with double wildcard to force a full text search on
the code.

issue11682
review443571003
2022-09-16 23:37:38 +02:00
David Blanco Bautista c2d181ef24 Prevent to change the type of journal with posted moves
issue11256
review399061002
2022-04-11 20:19:52 +02:00
Nicolas Évrard aee4fbef12 Send only the required fields when fetching a readonly view definition
issue11134
review380081002
2022-04-08 19:07:12 +02:00
Cédric Krier 2636396ca6 Do not sort state selection
issue11169
review374761005
2022-02-15 00:08:46 +01:00
Cédric Krier 4eb199f614 Set default value for journal's sequence
issue11157
review393471003
2022-02-03 22:34:01 +01:00
Cédric Krier 18efb38013 Follow isort formatting
issue10928
2021-12-11 17:58:41 +01:00
Cédric Krier ee6b5e63bf Add monetary field
issue10598
review338511002
2021-08-21 09:09:55 +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 e5c62e816e Store directly sequence type to sequence
issue10122
review351381002
2021-03-11 23:00:09 +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 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