[IMP] orm.fields_get: renamed read_access parameter to write_access, reflecting its real usage. Also cleaned up some mess leftover by commit 1338 in orm.field_get_keys() + other cleanup
bzr revid: odo@openerp.com-20100712141636-ig6x6gnxv6nsjnqm
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user