You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
587 B

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo noupdate="1">
  3. <record model="ir.rule" id="sql_export_restric_access_user_or_group">
  4. <field name="name" >SQL Export users and groups rules</field>
  5. <field name="model_id" ref="model_sql_export"/>
  6. <field eval="1" name="perm_read"/>
  7. <field eval="0" name="perm_create"/>
  8. <field eval="0" name="perm_write"/>
  9. <field eval="0" name="perm_unlink"/>
  10. <field name="domain_force">['|', ('user_ids','=',user.id), ('group_ids','in', [x.id for x in user.groups_id])]</field>
  11. </record>
  12. </odoo>