Merge lp:~openerp-dev/openobject-addons/trunk-timeuomprojecttasks-jco into lp:openobject-addons
Proposed by
Josse Colpaert (OpenERP)
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-timeuomprojecttasks-jco | ||||
Merge into: | lp:openobject-addons | ||||
Diff against target: |
186 lines (+92/-17) 3 files modified
hr_timesheet/hr_timesheet_view.xml (+4/-4) project/project.py (+73/-5) project/project_view.xml (+15/-8) |
||||
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-timeuomprojecttasks-jco | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
qdp (OpenERP) | Needs Fixing | ||
Review via email:
|
Description of the change
When changing the uom of project tasks to days it will not put the time format, but the default float format in the timesheets of a task. Then it takes into account the UoM for calculating the timesheets taking into account the product used.
To post a comment you must log in.
Unmerged revisions
- 8546. By Josse Colpaert (OpenERP)
-
[IMP] Read-only UOM field in timesheet activities and amount in float instead of time
- 8545. By Josse Colpaert (OpenERP)
-
[IMP] Shows work time as time or float depending on project UOM and adds uoms in timesheet activities view
It needs some fixing/explanation:
1) line 15: you removed widget= "float_ time", but it seems that 'hours' is still the default uom for project management, and if you do things like:
52 + if hours:
53 + return res
then it means that you should leave the float_time widget, no?
2) please add some comments + docstrings in the fields_view_get inheritance to explain what's done there
3) it seems that the same function is duplicated 3 times. Can you make a generic function that will be use 3 times with the model as extra_parameter instead? Factorizing the code is good :-)
that's all i can think of, so far.