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.

49 lines
1.9 KiB

13 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Asterisk Click2dial module for OpenERP
  4. Copyright (C) 2010-2012 Alexis de Lattre <alexis@via.ecp.fr>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data noupdate="1">
  9. <!-- Default access rules for the new asterisk.server object -->
  10. <record id="ir_model_access_asterisk_server_user" model="ir.model.access">
  11. <field name="model_id" ref="asterisk_click2dial.model_asterisk_server"/>
  12. <field name="name" eval="&quot;&quot;&quot;asterisk.server_user&quot;&quot;&quot;" />
  13. <field name="group_id" ref="base.group_user"/>
  14. <field name="perm_read" eval="1"/>
  15. <field name="perm_write" eval="0"/>
  16. <field name="perm_unlink" eval="0"/>
  17. <field name="perm_create" eval="0"/>
  18. </record>
  19. <record id="ir_model_access_asterisk_server_system" model="ir.model.access">
  20. <field name="model_id" ref="asterisk_click2dial.model_asterisk_server"/>
  21. <field name="name" eval="&quot;&quot;&quot;asterisk.server_system&quot;&quot;&quot;"/>
  22. <field name="group_id" ref="base.group_system"/>
  23. <field name="perm_read" eval="1"/>
  24. <field name="perm_write" eval="1"/>
  25. <field name="perm_unlink" eval="1"/>
  26. <field name="perm_create" eval="1"/>
  27. </record>
  28. <!-- New group dedicated to the "Get CallerID name from OpenERP" feature -->
  29. <record id="group_asterisk_cid" model="res.groups">
  30. <field name="name">Asterisk CallerID</field>
  31. </record>
  32. <!-- Only add the minimum rights to the "Asterisk CallerID" group -->
  33. <record id="ir_model_access_asterisk_cid" model="ir.model.access">
  34. <field name="model_id" ref="base.model_res_partner_address"/>
  35. <field name="name" eval="&quot;&quot;&quot;res.partner.address_read&quot;&quot;&quot;"/>
  36. <field name="group_id" ref="asterisk_click2dial.group_asterisk_cid"/>
  37. <field name="perm_read" eval="1"/>
  38. <field name="perm_write" eval="0"/>
  39. <field name="perm_unlink" eval="0"/>
  40. <field name="perm_create" eval="0"/>
  41. </record>
  42. </data>
  43. </openerp>