[Fix] hr_timesheet: When changing the date in timesheet activities gives alert, but alert is not translatable.
This commit is contained in:
parent
5e248f09c7
commit
03c934bb3e
|
@ -173,7 +173,7 @@ class hr_analytic_timesheet(osv.osv):
|
||||||
if ids:
|
if ids:
|
||||||
new_date = self.read(cr, uid, ids[0], ['date'])['date']
|
new_date = self.read(cr, uid, ids[0], ['date'])['date']
|
||||||
if date != new_date:
|
if date != new_date:
|
||||||
warning = {'title':'User Alert!','message':'Changing the date will let this entry appear in the timesheet of the new date.'}
|
warning = {'title':_('User Alert!'),'message':_('Changing the date will let this entry appear in the timesheet of the new date.')}
|
||||||
return {'value':{},'warning':warning}
|
return {'value':{},'warning':warning}
|
||||||
return {'value':{}}
|
return {'value':{}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue