xml 中o2m字段定义

 

增加多个值

 <field name="groups_id" eval="[(4, ref('account.group_account_manager')),(4, ref('account.group_account_user'))]"/>

替换

<field name="groups_id"   eval="[(6,0,[ref('account.group_account_user'),ref('purchase.group_purchase_user')]),]"/>

 

替换多个值将满足serch的结果返回

<field name="groups_id"  search="[('name','ilike','%pur%')]"/>

                                                 "[('id','&lt;',10)]"

posted on 2013-03-19 11:54  Odoo在中国  阅读(179)  评论(0编辑  收藏  举报

导航