Commit Graph
12 Commits
Author SHA1 Message Date
Cédric Krier d84540199b 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:53 +01:00
Cédric Krier 24bb7c2081 Add ir.message and use custom exceptions
issue3672
2018-12-29 14:20:29 +01:00
Cédric Krier c5e8969f0f 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 8c299a954c Remove support for Python 2.7
issue7497
review53261002
2018-06-26 19:11:51 +02:00
Cédric Krier e5b2514d7c Prevent to modify invoice lines only for duration and work
Other fields like the cost from timesheet_cost may be changed after the line
has been invoiced. This may happen if when writing the invoice line on the
timesheet line, timesheet_cost may trigger the synchronisation of the cost.

issue7412
review50311002
2018-05-07 16:39:51 +02:00
Jonathan Levy 9e753691cb Add Python3 support
issue3211
review23961002
2016-03-08 12:05:20 +01:00
Cédric Krier 0625565818 Fix most flake8 errors
review8771002
2014-12-02 12:55:43 +01:00
Cédric Krier 110c8ed908 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:45:16 +01:00
Cédric Krier a0298be9bf Prevent modify invoiced timesheet line
review879002
2013-05-27 18:05:46 +02:00
Cédric Krier 9789348c77 Add ending colon to error messages 2013-03-22 18:22:04 +01:00
Cédric Krier 4b929ed86e Fix test on deleting invoiced timesheet line 2013-03-22 18:21:25 +01:00
Cédric Krier edd9d11ece Initial commit of project_invoice module
review705002
2013-03-22 17:59:00 +01:00