在ODOO中的许多2ONE字段上设置复杂域
嗨,我想在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论