Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

为什么在客户付款单中不能过滤客户



  • 非常感谢digitalsatori 在上个贴子中为我排查错误,现在又发现一个新问题

    因为我们公司客服工作,包括对客户的付款在Customer Payment初始录入,并由财务审核并记账。
    而一个客服服务几个客户,因此新建一个客服组,也增加规则如下:
    ['|','&','|',('section_id','=',user.default_section_id.id),('section_id','=',False),('customer','=',True),('id','=',user.partner_id.id)]

    但是销售-销售-客户工作正常,而在会计-客户-customer payment中出错了。提示如下:
    openerp.osv.orm: Access Denied by record rules for operation: read, uid: 62, model: res.partner

    同样是对客户进行过滤,为什么customer payment出现错误提示: (Document type: Partner, Operation: read)

    盼复!!



  • 系统有一个记录规则  “业务伙伴  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)')

    这是什么问题,谁帮我解决一下。