Openerp Odoo中XML属性的域筛选器运算符

Openerp Odoo中XML属性的域筛选器运算符,openerp,odoo-10,Openerp,Odoo 10,这是我的问题, 我得到: 在域中,我写: [ '|', (A, B), (C, D) ] 但它不起作用,并引发错误: 错误:未知字段文档\接收\类型,!=,域中的vn_post [“|”、[“文档接收类型”、“!=”、“直接”]、[“状态”、“!=”、“vn发布检查”]、[[“文档接收类型”、“!=”、“vn发布”]、[“状态”、“!=”、“结果配置文件返回”]] 这是我的密码: <button name="action_mark_done" string="Mark Done"

这是我的问题, 我得到:

在域中,我写:

[ '|', (A, B), (C, D) ]
但它不起作用,并引发错误:

错误:未知字段文档\接收\类型,!=,域中的vn_post [“|”、[“文档接收类型”、“!=”、“直接”]、[“状态”、“!=”、“vn发布检查”]、[[“文档接收类型”、“!=”、“vn发布”]、[“状态”、“!=”、“结果配置文件返回”]]

这是我的密码:

<button name="action_mark_done"
    string="Mark Done"
    type="object" class="oe_highlight"
    attrs="{'invisible': ['|', (('document_receive_type','!=','direct'), ('state', '!=', 'vn_post_check')), (('document_receive_type','!=','vn_post'), ('state', '!=', 'result_profile_returned')) ,]}"
    groups="bms_cpdt.group_e_gov_manager"/>

它仍然工作,并显示我的按钮,但如果

['|', '&', (A), (B),'&',(C),(D)] 
它没有错误,但它没有像我所希望的那样显示我的按钮。

尝试以下操作:

attrs="{'invisible': ['|', '&amp;',('document_receive_type','!=','direct'), ('state', '!=', 'vn_post_check'), '&amp;', ('document_receive_type','!=','vn_post'), ('state', '!=', 'result_profile_returned')]}"
如果您想获得该信息,您的域将是:

['|', '&', (A), (B),'&',(C),(D)]
根据您的数据:

['|', '&amp;', ('document_receive_type','!=','direct'), ('state', '!=', 'vn_post_check'),'&amp;',('document_receive_type','!=','vn_post'),('state', '!=', 'result_profile_returned')]
有关您可以访问的域的更多信息,请访问:


我希望我已经帮了你,谢谢,但它不起作用,我已经分别尝试了['&',(A),(B),]和['&',(C),(D),],它仍然起作用并显示我的按钮,但是如果[','&',(A),(B),','&',(C),(D)],它没有错误,但它没有显示我的按钮:(但是你写了'和',而不是'&'?好的,tkx你,我使用了attrs=“{'invisible':[!',',',',',('document_receive_type'、'='、'direct')、('state'、'='、'vn_post_check')、'&;'、('document_receive_type'、'='、'vn_post')、('state'、'='、'result_profile_returned''))和它都很酷,然后你可以像正确的答案一样标记出来。很乐意帮助
attrs="{'invisible': ['|', '&amp;',('document_receive_type','!=','direct'), ('state', '!=', 'vn_post_check'), '&amp;', ('document_receive_type','!=','vn_post'), ('state', '!=', 'result_profile_returned')]}"
(A and B) or (C and D)
['|', '&', (A), (B),'&',(C),(D)]
['|', '&amp;', ('document_receive_type','!=','direct'), ('state', '!=', 'vn_post_check'),'&amp;',('document_receive_type','!=','vn_post'),('state', '!=', 'result_profile_returned')]