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.

16 lines
608 B

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