From ad44b408071cceebea68da81398bf57856f156c1 Mon Sep 17 00:00:00 2001 From: cubells Date: Wed, 20 Sep 2017 12:44:24 +0200 Subject: [PATCH] [FIX] account_credit_control: groups in view instead of fields (#537) This way, fields are not read if you don't belong to the group and you don't see a permission error. --- account_credit_control/__openerp__.py | 2 +- account_credit_control/views/account_invoice.xml | 11 ++++------- account_credit_control/views/res_partner.xml | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/account_credit_control/__openerp__.py b/account_credit_control/__openerp__.py index dec7c6713..d6de5efc2 100644 --- a/account_credit_control/__openerp__.py +++ b/account_credit_control/__openerp__.py @@ -5,7 +5,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': 'Account Credit Control', - 'version': '9.0.1.0.0', + 'version': '9.0.1.0.1', 'author': "Camptocamp, " "Tecnativa, " "Odoo Community Association (OCA)", diff --git a/account_credit_control/views/account_invoice.xml b/account_credit_control/views/account_invoice.xml index 5fede04d6..92212cb9b 100644 --- a/account_credit_control/views/account_invoice.xml +++ b/account_credit_control/views/account_invoice.xml @@ -13,20 +13,17 @@ invoice.followup.form.view account.invoice + - + + attrs="{'invisible': [('credit_policy_id', '=', False)]}"/> - + diff --git a/account_credit_control/views/res_partner.xml b/account_credit_control/views/res_partner.xml index ddfe35f30..7b4ccbd90 100644 --- a/account_credit_control/views/res_partner.xml +++ b/account_credit_control/views/res_partner.xml @@ -5,10 +5,10 @@ partner.credit_control.form.view res.partner + - +