[IMP] mail: update: call to get_object updated

bzr revid: tde@openerp.com-20131206100230-n4xxvskdbf3m0h1f
This commit is contained in:
Thibault Delavallée 2013-12-06 11:02:30 +01:00
parent 5b74bbe712
commit 4eec5e416c
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class publisher_warranty_contract(osv.osv):
# old behavior based on res.log; now on mail.message, that is not necessarily installed
IMD = self.pool['ir.model.data']
user = self.pool['res.users'].browse(cr, SUPERUSER_ID, SUPERUSER_ID)
poster = IMD.get_object(cr, SUPERUSER_ID, 'mail', 'group_all_employees')
poster = IMD.get_object(cr, SUPERUSER_ID, 'mail', 'group_all_employees', context=context, check_existence_and_raise=False)
if not poster.exists():
if not user.exists():
return True