odoo domain

发布时间:2024年01月24日

domain = [‘|’, ‘|’, (‘channel_id.public’, ‘=’, ‘public’), ‘&’, (‘channel_id.public’, ‘=’, ‘private’), (‘channel_id.channel_partner_ids’, ‘in’, [user.partner_id.id]), ‘&’, (‘channel_id.public’, ‘=’, ‘groups’), (‘channel_id.group_public_id’, ‘in’, [g.id for g in user.groups_id])]

domain1 = AND([ (‘channel_id.public’, ‘=’, ‘groups’), (‘channel_id.group_public_id’, ‘in’, [g.id for g in user.groups_id])]) domain2 = AND([ (‘channel_id.public’, ‘=’, ‘private’), (‘channel_id.channel_partner_ids’, ‘in’, [user.partner_id.id]) ]) domain3 = OR([ (‘channel_id.public’, ‘=’, ‘public’), domain2] domain4= OR([ domain1, domain3])

在这里插入图片描述

文章来源:https://blog.csdn.net/weixin_42464956/article/details/135816815
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。