From a9a9375624c89ea50646d12812f06fb40571fe7f Mon Sep 17 00:00:00 2001 From: Robin Conjour Date: Mon, 26 Feb 2024 17:26:08 +0100 Subject: [PATCH] [MIG] base_user_role_company: Migration to 17.0 --- base_user_role_company/README.rst | 4 ++++ base_user_role_company/__manifest__.py | 2 +- base_user_role_company/models/ir_http.py | 2 +- base_user_role_company/readme/CONTRIBUTORS.md | 4 ++++ base_user_role_company/static/description/index.html | 6 ++++++ 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/base_user_role_company/README.rst b/base_user_role_company/README.rst index ab33ac01..140654bb 100644 --- a/base_user_role_company/README.rst +++ b/base_user_role_company/README.rst @@ -109,6 +109,10 @@ Contributors - Chandresh Thakkar - Urvisha Desai +`WeSolved `__ + + - Robin Conjour + Maintainers ----------- diff --git a/base_user_role_company/__manifest__.py b/base_user_role_company/__manifest__.py index 1e3d1ceb..c2246f73 100644 --- a/base_user_role_company/__manifest__.py +++ b/base_user_role_company/__manifest__.py @@ -3,7 +3,7 @@ { "name": "User roles by company", - "version": "16.0.1.1.0", + "version": "17.0.1.0.0", "category": "Tools", "author": "Open Source Integrators, Odoo Community Association (OCA)", "license": "AGPL-3", diff --git a/base_user_role_company/models/ir_http.py b/base_user_role_company/models/ir_http.py index 65a6b3b9..972e66a2 100644 --- a/base_user_role_company/models/ir_http.py +++ b/base_user_role_company/models/ir_http.py @@ -14,7 +14,7 @@ class IrHttp(models.AbstractModel): calculate the roles to enable. A role should be enabled only when it applies to all selected companies. """ - result = super(IrHttp, self).session_info() + result = super().session_info() if self.env.user.role_line_ids: cids_str = request.httprequest.cookies.get("cids", str(self.env.company.id)) cids = [int(cid) for cid in cids_str.split(",")] diff --git a/base_user_role_company/readme/CONTRIBUTORS.md b/base_user_role_company/readme/CONTRIBUTORS.md index a3a565f2..8fa3c89a 100644 --- a/base_user_role_company/readme/CONTRIBUTORS.md +++ b/base_user_role_company/readme/CONTRIBUTORS.md @@ -3,3 +3,7 @@ > - Daniel Reis \<\> > - Chandresh Thakkar \<\> > - Urvisha Desai \<\> + +[WeSolved](http://wesolved.com) + +> - Robin Conjour \<\> diff --git a/base_user_role_company/static/description/index.html b/base_user_role_company/static/description/index.html index d0cea181..598528b5 100644 --- a/base_user_role_company/static/description/index.html +++ b/base_user_role_company/static/description/index.html @@ -451,6 +451,12 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
  • Urvisha Desai <udesai@opensourceintegrators.com>
  • +

    WeSolved

    +
    + +