From 2c4954703e72dc1ec080e71cf7c1bd4746c8b3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 10 Apr 2021 23:46:24 +0200 Subject: [PATCH] Check rule only if _check_access is set and enforce companies rule issue4080 review343891009 --- sale.xml | 10 ++--- sale_reporting.xml | 108 +++++++++++++++++++++++++++++++++++++++++++++ tests/test_sale.py | 6 +-- 3 files changed, 115 insertions(+), 9 deletions(-) diff --git a/sale.xml b/sale.xml index 9c8166a8f9..d832b6686a 100644 --- a/sale.xml +++ b/sale.xml @@ -470,16 +470,16 @@ this repository contains the full copyright notices and license terms. --> pyson="1"/> - - User in company + + User in companies - + - + diff --git a/sale_reporting.xml b/sale_reporting.xml index 584f3300ae..9857a7fc3e 100644 --- a/sale_reporting.xml +++ b/sale_reporting.xml @@ -68,6 +68,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -133,6 +145,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -195,6 +219,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -259,6 +295,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -327,6 +375,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -392,6 +452,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -434,6 +506,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -493,6 +577,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + @@ -553,6 +649,18 @@ this repository contains the full copyright notices and license terms. --> + + User in companies + + + + + + + + diff --git a/tests/test_sale.py b/tests/test_sale.py index 31ad6d5d5b..da5ff771fe 100644 --- a/tests/test_sale.py +++ b/tests/test_sale.py @@ -12,13 +12,11 @@ from trytond.pool import Pool from trytond.modules.account.tests import create_chart from trytond.modules.company.tests import ( - create_company, set_company, PartyCompanyCheckEraseMixin, - CompanyMultiValueTestMixin) + create_company, set_company, PartyCompanyCheckEraseMixin, CompanyTestMixin) class SaleTestCase( - PartyCompanyCheckEraseMixin, CompanyMultiValueTestMixin, - ModuleTestCase): + PartyCompanyCheckEraseMixin, CompanyTestMixin, ModuleTestCase): 'Test Sale module' module = 'sale'