大家好,我正在Xmlrpc中使用Odoo数据库我的当前代码是
asList(asList(asList("state","=", "assigned")//here i need AND condetion
,asList(asList("groups_id","in",groupsId),"OR",asList("user_id","=",userId)))),
在上面的代码中,我想要一个与条件有关的条件,该条件与内部列表有关,或与条件有关,我已在其中放置了“或”。请告诉我正确的方法
最佳答案
尝试这个:
asList(
asList(
"&",
asList("state","=", "assigned"),
"|",
asList(asList("groups_id","in",groupsId),
sList("user_id","=",userId))
)
),