Merge pull request #2789 from erwin-bas-solutions/translation-timesheet-alert

[Fix] hr_timesheet: Make alert translatable
This commit is contained in:
xmo-odoo 2014-09-30 10:30:39 +02:00
commit 85109a2fbb
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ class hr_analytic_timesheet(osv.osv):
if ids:
new_date = self.read(cr, uid, ids[0], ['date'])['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':{}}