summaryrefslogtreecommitdiff
path: root/addons/web_planner/security/web_planner_security.xml
diff options
context:
space:
mode:
authorDarshan Kalola <dka@openerp.com>2015-05-05 13:45:05 +0200
committerJérome Maes <jem@openerp.com>2015-05-06 13:07:42 +0200
commit6b11eae281abf5525d2acde091bafe523b62a554 (patch)
treec1325313aa7343e5a28978e4a8b47ca37f094633 /addons/web_planner/security/web_planner_security.xml
parent9de486eef515145e64cb20fe97d97e7ef6926b81 (diff)
[IMP] web_planner, crm : access rights and module not installed cases
- Make planner accessible only for erp manager and admin. Portal and employee are not concerned by planners - Clicking on link redirect to module installation form if module not installed - Add 'is_module_installed' method to display note if module is (not) installed
Diffstat (limited to 'addons/web_planner/security/web_planner_security.xml')
-rw-r--r--addons/web_planner/security/web_planner_security.xml16
1 files changed, 12 insertions, 4 deletions
diff --git a/addons/web_planner/security/web_planner_security.xml b/addons/web_planner/security/web_planner_security.xml
index e4bea53fde6..b35afe872da 100644
--- a/addons/web_planner/security/web_planner_security.xml
+++ b/addons/web_planner/security/web_planner_security.xml
@@ -1,11 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
- <!-- Ensure that the portal user doesn't have access to any planner that is not designed for him -->
+ <!-- Portal user and Employee doesn't have access to any planner that is not designed for them -->
<record id="web_planner_rule_portal" model="ir.rule">
<field name="name">Portal Planner</field>
<field name="model_id" ref="model_web_planner"/>
<field name="perm_read" eval="1" />
- <field name="domain_force">[('planner_application', '=', 'portal')]</field>
- <field name="groups" eval="[(4, ref('base.group_public'))]"/>
+ <field name="domain_force">[(0, '=', 1)]</field>
+ <field name="groups" eval="[(4, ref('base.group_public')), (4, ref('base.group_user'))]"/>
</record>
-</odoo> \ No newline at end of file
+
+ <!-- Admin and ERP manager have access to planner -->
+ <record id="planner_rule_all" model="ir.rule">
+ <field name="name">All Planner</field>
+ <field name="model_id" ref="model_web_planner"/>
+ <field name="domain_force">[(1 ,'=', 1)]</field>
+ <field name="groups" eval="[(4, ref('base.group_erp_manager'))]"/>
+ </record>
+</odoo>