Commit Graph
45 Commits
Author SHA1 Message Date
Cédric Krier a2b2354f28 Replace work by timesheet_works
issue5599
review25131003
2016-06-24 09:31:08 +02:00
Nicolas Évrard 2c53ebd7c6 Follow PEP-0249 for Transaction and backends
issue4949
review19781002
2016-03-03 21:55:19 +01:00
Jonathan Levy 6bb7c0ce33 Add Python3 support
issue3211
review23891002
2016-03-01 21:49:37 +01:00
Cédric Krier 60133e4150 Remove no more meaningful comment 2015-10-28 10:34:27 +01:00
Cédric Krier 60ee1ce8e7 Use product price_decimal for list price
issue4989
review21401002
2015-10-01 22:27:18 +02:00
Cédric Krier df053437d2 Include linked purchase to cost
without adding a strong dependency to purchase module.
Work can be set on the purchase line or purchase lines can be selected from the
work form view.

issue4951
review24351002
2015-09-24 16:08:08 +02:00
Cédric Krier 6dec4fc5c4 Use cost price from timesheet line
issue4977
review20411002
2015-09-22 19:27:26 +02:00
Cédric Krier 8423524ff5 Use get_total to compute revenue and cost
issue4972
review22421002
2015-09-17 11:19:59 +02:00
Cédric Krier fb07d7d9a5 Show product and cost even if not available on timesheet
The product could be needed for project_invoice and the cost could be extended
to include other type of costs.

issue4966
review24381002
2015-09-17 09:33:37 +02:00
Cédric Krier f5a7df93c5 Use left/right from project to compute cost
As the timesheet tree is no more the same as the project tree.

issue4970
review23411002
2015-09-17 09:31:09 +02:00
Cédric Krier 351ee51713 Remove active test as active field is removed
issue4938
review19411002
2015-09-07 14:03:10 +02:00
Cédric Krier 6f92a3d64d Update to new effort_duration
issue4026
review9951002
2015-02-09 23:03:27 +01:00
Cédric Krier d0ca2efc0b Remove useless 'hour' depends on on_change_product 2014-12-28 16:13:33 +01:00
Cédric Krier c750431145 Round cost with company currency 2014-12-28 16:12:40 +01:00
Cédric Krier 4fabfe0e1f Fix most flake8 errors
review8771002
2014-12-02 12:55:45 +01:00
Cédric Krier bcb4c01ca1 New API for on_change
issue4203
review8581002
2014-10-29 20:40:07 +01:00
Sergi Almacellas Abellana bac1cdbddb Use grouped_slice helper.
issue3516
review10301002
2014-07-17 18:59:36 +02:00
Cédric Krier dae0106a1b Use work effort instead of total to compute revenue
total_effort contains the effort of the children but sum_tree needs only the
value of the work without the children.

review2931003
2014-01-26 22:15:20 +01:00
Cédric Krier 1b19cb71e3 Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:29:27 +01:00
Cédric Krier aa8518b674 Improve work cost computation
issue3189
review1008002
2013-09-20 17:34:12 +02:00
Sergi Almacellas Abellana f54960734f Split funcionality into new module timesheet_cost
issue3258
review929002
2013-07-14 10:43:42 +02:00
Cédric Krier 5f9059f7d9 Add domain for uom category on product
review878002
2013-05-27 17:55:27 +02:00
Cédric Krier 64be84fbc9 Refactorize to use sum_tree
review705002
2013-03-22 17:49:17 +01:00
Cédric Krier 54e6e34ab8 Remove _inherits
review670002
2013-03-20 22:51:01 +01:00
Cédric Krier e53ba59f6e Fix revenue/cost computation
issue2827
2012-10-17 16:30:06 +02:00
Cédric Krier 89851566c3 Active Record 2012-09-24 22:18:08 +02:00
Nicolas Évrard d15f859180 Add states on cost and reviewed project/task view
review388001
2012-09-21 15:40:29 +02:00
Cédric Krier 2d12659903 Fix pep8 and pyflakes 2012-04-03 20:07:30 +02:00
Nicolas Évrard e699d02243 product, list_price and revenue should be visible for projects 2012-04-02 12:23:55 +02:00
Cédric Krier 53929cceec list_price is not always filled 2012-03-30 19:20:18 +02:00
Nicolas Évrard f46ed3566f Integer, Numeric and Float allow None as value
NULL value is None and not False

issue2022
review237004
2012-03-23 18:38:52 +01:00
Nicolas Évrard 08c0945721 fix pyflake errors
review163012
2011-11-02 16:12:17 +01:00
Cédric Krier 6453b1ec57 Make PYSON more Pythonic 2011-08-21 11:20:49 +02:00
Cédric Krier fc6959d627 Remove support of Python2.5 and fix py3 warnings 2011-07-12 00:18:01 +02:00
Cédric Krier 5a67f82702 Change Pool into a Singleton 2011-07-03 13:19:08 +02:00
Mathias Behrle ea1641d4ef Use line.date and pass ids to calculate currency rate for issue1746. 2011-04-13 18:04:06 +02:00
Cédric Krier 0b60ddae67 Update for new Transaction 2010-08-19 22:17:42 +02:00
Cédric Krier 5bbc638f09 Remove ids from on_change* calls 2010-03-18 18:17:36 +01:00
Cédric Krier 3940321e9d New interface for Function/Property fields 2010-03-11 16:52:56 +01:00
Cédric Krier 14f5ad2f07 Use get_id of ir.model.data 2010-01-21 12:09:21 +01:00
Cédric Krier fccfa83de8 Use PySON 2010-01-20 11:03:14 +01:00
Bertrand Chenal 227ad688be Removed dead code 2009-06-11 11:03:13 +02:00
Bertrand Chenal c298568037 Slight refactoring:
- rename cost_price to cost on work
- Use numeric type for function fields (cost_price on employee, cost and revenue on work)
- Isolate cost_price computation on employee and timesheet
2009-06-04 19:52:24 +02:00
Bertrand Chenal 00734ba073 Handle currency digits on employee and work 2009-06-04 13:29:31 +02:00
Bertrand Chenal d995f80537 Improved project revenue:
- removed product on employee and timesheet line
- added cost (and cost history) on employee
- added product, list_price, revenue and cost_price on project.work
2009-06-04 11:19:01 +02:00