我尝试像这样获得组ID
<field name="domain">[('state','=','wait_prove'),('shenqr.user_id.groups_id', '=', ref('group_staff'))]</field>
结果是:名称'ref'未定义
我怎样才能获得群组ID,谢谢!
<record model="ir.actions.act_window" id="action_qingjia_qingjdprove_new_fjl">
<field name="name">wait_proved</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">qingjia.qingjd</field>
<field name="domain">[('state','=','wait_prove'),('tians', '<=', 1),('shenqr.user_id','<>',uid),('shenqr.user_id.groups_id', '=', ref('group_staff'))]</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_qingjd_tree"/>
<field name="view_mode">tree,form</field>
<field name="context">{}</field>
</record>