OpenERP7.0 ref无法在域中使用,我怎么能得到group_id

时间:2013-12-30 10:05:35

标签: python openerp

我尝试像这样获得组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', '&lt;=', 1),('shenqr.user_id','&lt;&gt;',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>

0 个答案:

没有答案