系统有一个记录规则 “业务伙伴 res.partner company"
['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
在客服组导入这个规格,没有res.partner访问限制。但不能过滤partner.
而自建的记录规则 "业务伙伴 res_partner: read access on partners of sales group"
['|','&','|',('section_id','=',user.default_section_id.id),('section_id','=',False),('customer','=',True),('id','=',user.partner_id.id)]
引入这条规则,还是出现错误:
2013-08-04 09:00:10,977 6412 WARNING ZJGCS openerp.osv.orm: Access Denied by record rules for operation: read, uid: 62, model: res.partner
2013-08-04 09:00:10,979 6412 ERROR ZJGCS openerp.netsvc: Access Denied
The requested operation cannot be completed due to security restrictions. Please contact your system administrator.
(Document type: Partner, Operation: read)
Traceback (most recent call last):
File "D:\OpenERP7\openerp\openerp\netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "D:\OpenERP7\openerp\openerp\service\web_services.py", line 626, in dispatch
res = fn(db, uid, *params)
File "D:\OpenERP7\openerp\openerp\osv\osv.py", line 188, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "D:\OpenERP7\openerp\openerp\osv\osv.py", line 144, in wrapper
raise except_osv(inst.name, inst.value)
except_osv: (u'Access Denied', u'The requested operation cannot be completed due to security restrictions. Please contact your system administrator.\n\n(Document type: Partner, Operation: read)')
这是什么问题,谁帮我解决一下。