87
87
help="Percent of tasks closed according to the total of tasks todo.",
88
88
store = {'project.task': (lambda self, cr, uid, ids, c={}: ids, TASK_WATCHERS, 20),
89
89
'account.analytic.line': (_get_analytic_line, AA_WATCHERS, 20)})}
91
def write(self, cr, uid, ids, vals, context=None):
92
res = super(ProjectTask, self).write(cr, uid, ids, vals, context=context)
96
project = project_obj.browse(cr, uid, vals['project_id'], context)
98
for task in self.browse(cr, uid, ids, context=context):
99
ts_obj.write(cr, uid, [w.id for w in task.work_ids], {'account_id': account_id}, context=context)