~vauxoo/addons-vauxoo/jose-custom-template

« back to all changes in this revision

Viewing changes to user_story/model/user_story.py

[MERGE] Merge from 7.0-user_story-effective_hours-dev-saul
Fix: effective_hours functional field modified

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
        'effective_hours': fields.function(_hours_get, string='Hours Spent', help="Computed using the sum of the task work done.",
228
228
            store = {
229
229
                _name: (lambda s, c, u, ids, cx={}: ids, ['task_ids'], 10),
230
 
                'project.task': (_get_user_story_from_pt, ['work_ids'], 10),
 
230
                'project.task': (_get_user_story_from_pt, ['work_ids','userstory_id'], 10),
231
231
                'project.task.work': (_get_user_story_from_ptw, ['hours'], 10),
232
232
            }),
233
233
    }