[FIX] email_template: protect against possible non existent value

bzr revid: tde@openerp.com-20140325154006-fb5bu1khcvg6vdjb
This commit is contained in:
Thibault Delavallée 2014-03-25 16:40:06 +01:00
parent 6577b935eb
commit 2dc0372431
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ class email_template(osv.osv):
else:
default_recipients = {}
for res_id, recipients in default_recipients.iteritems():
results[res_id].pop('partner_to')
results[res_id].pop('partner_to', None)
results[res_id].update(default_recipients)
for res_id, values in results.iteritems():