Commit Graph
18 Commits
Author SHA1 Message Date
Cédric Krier df02f7c053 Set all fields readonly for inactive records
issue3747
review295061011
2020-03-17 20:08:12 +01:00
Cédric Krier 822aa3c779 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:51 +01:00
Nicolas Évrard 5b7e67ce7f Use direct access to backend classes
issue8836
review258421002
2019-12-06 17:33:46 +01:00
Cédric Krier dc238e9086 Merge account kind and account type
issue4990
review68401002
2019-03-24 18:00:01 +01:00
Cédric Krier a5c1dde783 Add __table_handler__ to ModelSQL
issue7581
review48531002
2018-07-24 22:01:07 +02:00
Cédric Krier a8591714ca Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:40 +02:00
Cédric Krier 0f1ec70e8c Remove accounts from products
issue3805
review45111002
2018-06-20 12:09:39 +02:00
Sergi Almacellas Abellana 65c5e68093 Use properties for used accounts on product
A function field can not be used as when it's called with a list of
records, the MissingFunction may raise an error for products that are
not of asset type

issue6634
review43281002
2017-09-20 12:15:46 +02:00
Sergi Almacellas Abellana 2226173c85 Use accounts_category field for asset and depreciation accounts states
The states definition uses the account category field, but indeed the
accounts_category field must be used in order to allow defining the
taxes on the product when the account_category is filled but the
accounts_category is unchecked.

issue6631
review43271002
2017-07-11 09:26:13 +02:00
Cédric Krier 67facdfa20 Remove Property fields
issue2349
review31251002
2017-04-01 00:26:01 +02:00
Cédric Krier 8c3fafc82e Change depreciation_duration into Integer
There is no real need for this field to be a Property, it is only a default
value that should most of the time be the same for all companies.

issue6395
review27251002
2017-03-27 16:55:48 +02:00
Cédric Krier b1adb95a50 Replace category by categories on Template
issue5320
review23791002
2016-03-19 09:04:07 +01:00
Jonathan Levy a5b48bc6d1 Add Python3 support
issue3211
review21741002
2016-02-29 22:38:24 +01:00
Cédric Krier 8d2b9fc734 Register Product and override MissingFunction fields
issue5087
2016-01-02 10:24:10 +01:00
Cédric Krier 4450c65a74 Raise error for account used only on the accessor
Because of the batch mode of Function field, the getter must not raise error
otherwise the error can be raised for a record that doesn't require the
account.
So we introduce an new kind of Function field which raise the error only at the
accessor level.

issue4087
review9531002
2014-08-29 16:14:19 +02:00
Cédric Krier 298b0296cd 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:05 +02:00
Cédric Krier b5b0b2b60f Remove wrong depends 2013-03-27 22:41:45 +01:00
Cédric Krier a76decb348 Initial commit
review439002
2012-11-15 19:33:08 +01:00