Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 openerp xml 编码有疑问。以下功能是否适用于 openerp6.0 中的 onetomany 字段。
attrs="{'invisible':[('x_form_type','==','service_bill')]}"
我已经在 account_invoice_view.xml 中添加了这段代码,但没有工作。当我搜索时,我发现有人报告说这不适用于 openerp 5.0 中的 onetomany
This should Work for o2m field. Provided that , "x_form_type" field must be there on the defined view. If you Don't want to display that field , then make it invisible="1"
当然,该功能也适用于 onetomany 领域。