From 73432ffe9f5007aaae0b70f1df2755a6494b0691 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 12 May 2015 11:20:14 +0200 Subject: [PATCH] [FIX] *: accesses of views concernings specific groups If the whole view relates to a specific group, apply the group on the view itself instead of each view part (each fields, each page, each div,...), so the view is loaded / added to the base view only if the user is in the right group. So the view is not loaded uselessly and the fields are not read for nothing (performances & security). Indeed, when a group is applied on a field itself, the field content is read, but hidden, therefore reading the content of the field uselessly, and potentially leading to accesses issues if the user hasn't the rights to read the field. (e.g. reading a property when not having access to the model of the proprty, pricelists on partners for instance) opw-634402 --- addons/account/partner_view.xml | 9 +++++---- addons/product/partner_view.xml | 5 +++-- addons/purchase/partner_view.xml | 3 ++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/addons/account/partner_view.xml b/addons/account/partner_view.xml index a85b27882c4..181315105d3 100644 --- a/addons/account/partner_view.xml +++ b/addons/account/partner_view.xml @@ -138,9 +138,10 @@ res.partner 2 + - + @@ -149,13 +150,13 @@ - + - + @@ -170,7 +171,7 @@ - +

Accounting-related settings are managed on

diff --git a/addons/product/partner_view.xml b/addons/product/partner_view.xml index 95332cf0f32..8d160a57fb3 100644 --- a/addons/product/partner_view.xml +++ b/addons/product/partner_view.xml @@ -5,13 +5,14 @@ res.partner.product.property.form.inherit res.partner + - + -
+

Pricelists are managed on

diff --git a/addons/purchase/partner_view.xml b/addons/purchase/partner_view.xml index 30d5ffb01ca..969a4a9e2c7 100644 --- a/addons/purchase/partner_view.xml +++ b/addons/purchase/partner_view.xml @@ -6,9 +6,10 @@ res.partner 36 + - +