[IMP] Usability on task: no need for sum since it's rewritten bellow (and could be confusing if >80 in list
This commit is contained in:
@@ -91,7 +91,7 @@ class task(osv.osv):
|
||||
'project.task': (lambda self, cr, uid, ids, c={}: ids, ['timesheet_ids', 'remaining_hours', 'planned_hours'], 10),
|
||||
'account.analytic.line': (_get_task, ['task_id', 'unit_amount'], 10),
|
||||
}),
|
||||
'progress': fields.function(_hours_get, string='Working Time Progress (%)', multi='line_id', group_operator="avg", help="If the task has a progress of 99.99% you should close the task if it's finished or reevaluate the time",
|
||||
'progress': fields.function(_hours_get, string='Progress (%)', multi='line_id', group_operator="avg", help="If the task has a progress of 99.99% you should close the task if it's finished or reevaluate the time",
|
||||
store = {
|
||||
'project.task': (lambda self, cr, uid, ids, c={}: ids, ['timesheet_ids', 'remaining_hours', 'planned_hours', 'state', 'stage_id'], 10),
|
||||
'account.analytic.line': (_get_task, ['task_id', 'unit_amount'], 10),
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
<field name="user_id" required="1"/>
|
||||
<field name="name"/>
|
||||
<field name="account_id"/>
|
||||
<field name="unit_amount" string="Duration" sum="Total time" widget="float_time"/>
|
||||
<field name="unit_amount" string="Duration" widget="float_time"/>
|
||||
<field name="is_timesheet" invisible="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user