Commit Graph
38 Commits
Author SHA1 Message Date
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
Nicolas Évrard f3611d2e13 Remove duplicate key from line to invoice 2018-01-30 11:57:50 +01:00
Nicolas Évrard 98d8680fb5 Allow to invoice sub-project with a different party
issue7096
review43071002
2018-03-10 12:46:08 +01:00
Sergi Almacellas Abellana c8d761d86a Add depends on Button
issue6919
review40811002
2018-02-19 11:39:25 +01:00
Sergi Almacellas Abellana 665bb24180 Use used property for account receivable
issue6561
2017-09-28 10:18:41 +02:00
Cédric Krier d7914bfd53 Do not return None for duration_to_invoice on effort
The method must always return a timedelta or no values because it is summed
later by sum_tree.

issue6346
review31171002
2017-03-13 23:02:12 +01:00
Nicolas Évrard 02ffadabca Allow to use non time-like units when invoicing
issue6246
review27961002
2017-02-17 18:15:27 +01:00
Cédric Krier df562a0281 Use on_change_with as getter of invoice_method
issue6247
review34681002
2017-02-08 10:20:26 +01:00
Sergi Almacellas Abellana dd2ce6fe22 Skip progres unit conversion when no product is set
issue5899
review32611002
2016-09-28 11:50:11 +02:00
Cédric Krier 5a9ea9b143 Replace work by timesheet_works
issue5599
review25131002
2016-06-24 09:30:32 +02:00
Cédric Krier dcdec10763 Merge invoice and credit note
issue5225
review18921002
2016-03-20 22:59:18 +01:00
Jonathan Levy 9e753691cb Add Python3 support
issue3211
review23961002
2016-03-08 12:05:20 +01:00
Nicolas Évrard c874173974 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:15 +01:00
Cédric Krier 4bd080e174 Fix timesheet methods when project has no timesheet work
issue5260
review21631002
2016-02-07 16:09:04 +01:00
Cédric Krier f2d8c1d108 Add progress invoice method
issue4954
review18551002
2015-09-24 15:59:43 +02:00
Cédric Krier 652a56a961 Use project work name instead of timesheet work name
issue4938
2015-09-22 11:19:01 +02:00
Cédric Krier 2216c09cc1 Fix _get_invoiced_amount_timesheet when there is no timesheet
and fix Decimal precision in scenario
2015-09-22 10:54:58 +02:00
Cédric Krier a27c1e770d Rewrite _get_invoiced_amount_timesheet using SQL query
issue4976
review18591002
2015-09-22 09:33:38 +02:00
Cédric Krier 07133af2a7 Use get_total to compute invoice values
issue4972
review16611002
2015-09-17 11:21:05 +02:00
Cédric Krier 3a47dbee37 Add missing test on timesheet work when opening invoices
Since issue4938, timesheet work on project work is no more required.
2015-09-14 17:19:06 +02:00
Cédric Krier 57bf856e48 Fix computation of invoice amount on effort
The amount must be proportional to the effort hours of the work because the
invoice line could have been grouped.

issue4946
review19431002
2015-09-07 13:57:43 +02:00
Cédric Krier c9b44e946d Backed out changeset 543af8506b61 2015-09-04 13:23:23 +02:00
Cédric Krier db9620ab31 Fix computation of invoice amount on effort
The amount must proportional to the effort hours of the work because the
invoice line could have been grouped.

issue4946
review19431002
2015-09-04 12:05:18 +02:00
Cédric Krier 040efcabb9 Define effort_hours on Work in project instead of project_invoice
effort_duration is defined in project module so effort_hours should also.

issue4937
2015-08-27 12:28:44 +02:00
Cédric Krier 9392b07d02 Use default value instead of None when summing
to avoid unsupported operation between None and timedelta.

issue4725
review18261002
2015-05-19 09:49:07 +02:00
Cédric Krier 16b624ebaf Use TimeDelta field
issue4026
review12841002
2015-02-09 23:02:03 +01:00
Cédric Krier 0625565818 Fix most flake8 errors
review8771002
2014-12-02 12:55:43 +01:00
Robin Baumgartner b323175cb4 Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 14:02:39 +01:00
Cédric Krier 1cacbc6e85 Use context to check model and field access
issue4081
review8481002
2014-09-17 21:45:42 +02:00
Sergi Almacellas Abellana 6d1f371d68 Use grouped_slice helper.
issue3516
review10301002
2014-07-17 18:59:24 +02:00
Cédric Krier e108088302 Migration to python-sql
review1001002
2013-09-06 22:34:32 +02:00
Cédric Krier 36aca08556 Fix ids mixing between timesheet and project works
review915002
2013-06-07 19:24:34 +02:00
Cédric Krier 7d85dd648a Fix invoice method computation for task without project
issue3175
review819002
2013-05-04 11:46:10 +02:00
Cédric Krier 77cb41023f Typo in customer_tax_rule test
issue3194
review843002
2013-04-29 21:31:01 +02:00
Cédric Krier 9789348c77 Add ending colon to error messages 2013-03-22 18:22:04 +01:00
Cédric Krier edd9d11ece Initial commit of project_invoice module
review705002
2013-03-22 17:59:00 +01:00