From ca3a5a330ec9a9d6435fc01dde25714870adee60 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Sun, 25 Aug 2013 23:22:45 -0400 Subject: [PATCH] [ADD] mgmtsystem_*_security.xml files --- mgmtsystem_kpi/__openerp__.py | 3 +- .../security/mgmtsystem_kpi_security.xml | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100755 mgmtsystem_kpi/security/mgmtsystem_kpi_security.xml diff --git a/mgmtsystem_kpi/__openerp__.py b/mgmtsystem_kpi/__openerp__.py index 7a40dca2a..648e526a1 100755 --- a/mgmtsystem_kpi/__openerp__.py +++ b/mgmtsystem_kpi/__openerp__.py @@ -53,8 +53,9 @@ This module depends on: 'web_color', ], "data" : [ - 'mgmtsystem_kpi_view.xml', 'security/ir.model.access.csv', + 'security/mgmtsystem_kpi_security.xml', + 'mgmtsystem_kpi_view.xml', ], "images" : [ "images/kpi_definition.png", diff --git a/mgmtsystem_kpi/security/mgmtsystem_kpi_security.xml b/mgmtsystem_kpi/security/mgmtsystem_kpi_security.xml new file mode 100755 index 000000000..6ee1cd43c --- /dev/null +++ b/mgmtsystem_kpi/security/mgmtsystem_kpi_security.xml @@ -0,0 +1,36 @@ + + + + + + + + mgmtsystem_kpi multi-company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + mgmtsystem_kpi_threshold_range multi-company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + mgmtsystem_kpi_threshold multi-company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + mgmtsystem_kpi_history multi-company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + +