From b131a447b3b8f94cec25f26ca341e7e4ebe89494 Mon Sep 17 00:00:00 2001 From: Giovanni Date: Thu, 21 Apr 2022 16:02:41 +0200 Subject: [PATCH] [14.0][FIX] l10n_it_fatturapa_sale, field permission --- l10n_it_fatturapa_sale/models/sale_order.py | 2 +- l10n_it_fatturapa_sale/models/sale_order_line.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/l10n_it_fatturapa_sale/models/sale_order.py b/l10n_it_fatturapa_sale/models/sale_order.py index 5a76095d3a5d..21877edfc07d 100644 --- a/l10n_it_fatturapa_sale/models/sale_order.py +++ b/l10n_it_fatturapa_sale/models/sale_order.py @@ -12,7 +12,7 @@ class SaleOrder(models.Model): inverse_name="sale_order_id", string="Related Documents", copy=False, - groups="account.group_account_user", + groups="account.group_account_user,sales_team.group_sale_salesman", ) def _create_invoices(self, grouped=False, final=False, date=None): diff --git a/l10n_it_fatturapa_sale/models/sale_order_line.py b/l10n_it_fatturapa_sale/models/sale_order_line.py index 351ab53783af..55d2ea972cbd 100644 --- a/l10n_it_fatturapa_sale/models/sale_order_line.py +++ b/l10n_it_fatturapa_sale/models/sale_order_line.py @@ -12,12 +12,12 @@ class SaleOrderLine(models.Model): inverse_name="sale_order_line_id", string="Related Documents", copy=False, - groups="account.group_account_user", + groups="account.group_account_user,sales_team.group_sale_salesman", ) admin_ref = fields.Char( string="Admin. ref.", copy=False, - groups="account.group_account_user", + groups="account.group_account_user,sales_team.group_sale_salesman", ) def _prepare_invoice_line(self, **optional_values):