Merge lp:~hbrunn/ocb-addons/7.0_1023047 into lp:ocb-addons

Proposed by Holger Brunn (Therp)
Status: Merged
Merged at revision: 8973
Proposed branch: lp:~hbrunn/ocb-addons/7.0_1023047
Merge into: lp:ocb-addons
Diff against target: 13 lines (+3/-1)
1 file modified
project_timesheet/project_timesheet.py (+3/-1)
To merge this branch: bzr merge lp:~hbrunn/ocb-addons/7.0_1023047
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) Approve
Review via email: mp+154377@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

We run this fix in production for 6.1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'project_timesheet/project_timesheet.py'
2--- project_timesheet/project_timesheet.py 2012-12-18 22:50:15 +0000
3+++ project_timesheet/project_timesheet.py 2013-03-20 14:03:33 +0000
4@@ -200,7 +200,9 @@
5 if amount_unit and 'amount' in amount_unit.get('value',{}):
6 vals_line['amount'] = amount_unit['value']['amount']
7
8- self.pool.get('hr.analytic.timesheet').write(cr, uid, [line_id.id], vals_line, context=context)
9+ if vals_line:
10+ self.pool.get('hr.analytic.timesheet').write(cr, uid,
11+ [line_id.id], vals_line, context=context)
12
13 return super(project_work,self).write(cr, uid, ids, vals, context)
14