diff --git a/addons/email_template/wizard/email_template_send_wizard.py b/addons/email_template/wizard/email_template_send_wizard.py index 9934336d506..5e0f0619c1b 100755 --- a/addons/email_template/wizard/email_template_send_wizard.py +++ b/addons/email_template/wizard/email_template_send_wizard.py @@ -118,8 +118,8 @@ class email_template_send_wizard(osv.osv_memory): 'full_success': lambda *a: False } - def fields_get(self, cr, uid, fields=None, context=None, read_access=True): - result = super(email_template_send_wizard, self).fields_get(cr, uid, fields, context, read_access) + def fields_get(self, cr, uid, fields=None, context=None, write_access=True): + result = super(email_template_send_wizard, self).fields_get(cr, uid, fields, context, write_access) if 'attachment_ids' in result and 'src_model' in context: result['attachment_ids']['domain'] = [('res_model','=',context['src_model']),('res_id','=',context['active_id'])] return result