假如用户只能访问本部门能够访问的作业类型,stock.picking.type

  <record model="ir.rule" >
    <field name="name">只能访问自己部门相关的作业类型</field>
    <field name="model_id" ref="owl_stock_ex.model_stock_picking_type"/>
    <field name="domain_force"> ['|',('department_ids','=',False),('department_ids','=',user.department_id.id)]</field>
    <field name="groups" eval="[(4, ref('stock.group_stock_user'))]"/>
  </record>

相关文章:

  • 2021-07-01
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
猜你喜欢
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-10-16
相关资源
相似解决方案