在ODOO中的许多2ONE字段上设置复杂域

发布于 2025-02-11 03:58:42 字数 500 浏览 1 评论 0原文

嗨,我想在ODOO 13中的许多2ONE字段中设置域,但我无法设置复杂的操作员...实际上我不知道如何设置我的postgersql中存在的条件为我的许多2Oone字段,这是我的条件我的邮政:

(code in ( 19 ,34  ) or (type = 118) or ((total_value > 0) and (type not in (66 , 96)))) and ( code not in (66,67))

我尝试了这个:

"['|','|','&','&'('code', 'in', ( 19 ,34 )),('type', '=', 118),('total_value ', '>', 0),('type', 'not in', (66 , 96)),('code ', 'not in', (66 , 67))]"

但这不是我的状况。简而言之 在语义和逻辑上是错误的。有人可以帮我吗???我真的很困惑:(

Hi I want to set domain on my many2one field in odoo 13 but I can't set complex operators... actually I don't know how set where conditions that exist at my postgersql as domain on my many2one field this is my condition in my postgres :

(code in ( 19 ,34  ) or (type = 118) or ((total_value > 0) and (type not in (66 , 96)))) and ( code not in (66,67))

I tried this one :

"['|','|','&','&'('code', 'in', ( 19 ,34 )),('type', '=', 118),('total_value ', '>', 0),('type', 'not in', (66 , 96)),('code ', 'not in', (66 , 67))]"

but it's not my condition. simply I want A OR B OR (C AND D) AND E but this domain give me A OR B OR C AND D AND E
which is wrong semantically and logically. can someone help me??? I'm really confused :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文