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.

35 lines
1.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="module_category_openid_connect" model="ir.module.category">
  4. <field name="name">OpenID Connect Provider</field>
  5. </record>
  6. <record id="group_system_user" model="res.groups">
  7. <field name="name">OpenID Client's system user</field>
  8. <field name="category_id" ref="module_category_openid_connect" />
  9. <field name="implied_ids" eval="[(4,ref('base.group_public'))]" />
  10. </record>
  11. <record id="group_admin" model="res.groups">
  12. <field name="name">OpenID Connect Provider Administrator</field>
  13. <field name="category_id" ref="module_category_openid_connect" />
  14. </record>
  15. <record id="base.group_erp_manager" model="res.groups">
  16. <field name="implied_ids" eval="[(4,ref('group_admin'))]" />
  17. </record>
  18. <record id="client_system_user_access_rule" model="ir.rule">
  19. <field name="name">OpenID system users can only see corresponding clients</field>
  20. <field name="model_id" ref="model_galicea_openid_connect_client"/>
  21. <field name="groups" eval="[(4, ref('group_system_user'))]"/>
  22. <field name="domain_force">
  23. [('system_user_id', '=', user.id)]
  24. </field>
  25. <field eval="1" name="perm_read" />
  26. <field eval="0" name="perm_write" />
  27. <field eval="0" name="perm_create" />
  28. <field eval="0" name="perm_unlink" />
  29. </record>
  30. </odoo>