diff --git a/README.md b/README.md index 37482e576..c593d0b04 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Available addons ---------------- addon | version | summary --- | --- | --- -[base_user_role](base_user_role/) | 14.0.1.1.0 | User roles +[base_user_role](base_user_role/) | 14.0.2.0.0 | User roles [//]: # (end addons) diff --git a/base_user_role/__manifest__.py b/base_user_role/__manifest__.py index 56f7b14a8..a581591fd 100644 --- a/base_user_role/__manifest__.py +++ b/base_user_role/__manifest__.py @@ -4,7 +4,7 @@ { "name": "User roles", - "version": "14.0.1.1.0", + "version": "14.0.2.0.0", "category": "Tools", "author": "ABF OSIELL, Odoo Community Association (OCA)", "license": "LGPL-3", diff --git a/base_user_role/i18n/am.po b/base_user_role/i18n/am.po index 4a5a5fd7f..f9647add3 100644 --- a/base_user_role/i18n/am.po +++ b/base_user_role/i18n/am.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/ar.po b/base_user_role/i18n/ar.po index a57589d01..780c9dc03 100644 --- a/base_user_role/i18n/ar.po +++ b/base_user_role/i18n/ar.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "المستخدم" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/base_user_role.pot b/base_user_role/i18n/base_user_role.pot index 68d29ca46..168eb56fa 100644 --- a/base_user_role/i18n/base_user_role.pot +++ b/base_user_role/i18n/base_user_role.pot @@ -48,11 +48,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -191,12 +186,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/bg.po b/base_user_role/i18n/bg.po index 2ab054539..4e55e3804 100644 --- a/base_user_role/i18n/bg.po +++ b/base_user_role/i18n/bg.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/bs.po b/base_user_role/i18n/bs.po index 95b607660..e73e7863d 100644 --- a/base_user_role/i18n/bs.po +++ b/base_user_role/i18n/bs.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Korisnik" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/ca.po b/base_user_role/i18n/ca.po index 0f94613f4..003027ea1 100644 --- a/base_user_role/i18n/ca.po +++ b/base_user_role/i18n/ca.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Usuari" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/cs.po b/base_user_role/i18n/cs.po index 85425b050..5a670070e 100644 --- a/base_user_role/i18n/cs.po +++ b/base_user_role/i18n/cs.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Uživatel" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/da.po b/base_user_role/i18n/da.po index 4feadf89d..c5f37cebd 100644 --- a/base_user_role/i18n/da.po +++ b/base_user_role/i18n/da.po @@ -56,11 +56,6 @@ msgstr "Tilhørende gruppe" msgid "Color Index" msgstr "Farve indeks" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -201,12 +196,6 @@ msgstr "Opdater brugerroller" msgid "User" msgstr "Bruger" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/de.po b/base_user_role/i18n/de.po index a29f57138..c5cc42d73 100644 --- a/base_user_role/i18n/de.po +++ b/base_user_role/i18n/de.po @@ -56,11 +56,6 @@ msgstr "Zugewiesene Gruppe" msgid "Color Index" msgstr "Farbindex" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -199,12 +194,6 @@ msgstr "" msgid "User" msgstr "Benutzer" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/el_GR.po b/base_user_role/i18n/el_GR.po index e35215cfc..515e2e8da 100644 --- a/base_user_role/i18n/el_GR.po +++ b/base_user_role/i18n/el_GR.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/en_GB.po b/base_user_role/i18n/en_GB.po index 9f05a77de..afe19bf0a 100644 --- a/base_user_role/i18n/en_GB.po +++ b/base_user_role/i18n/en_GB.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "User" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es.po b/base_user_role/i18n/es.po index 238b43ce2..60f955c56 100644 --- a/base_user_role/i18n/es.po +++ b/base_user_role/i18n/es.po @@ -56,11 +56,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -199,12 +194,6 @@ msgstr "" msgid "User" msgstr "Usuario" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_AR.po b/base_user_role/i18n/es_AR.po index 54239de38..a015b4c95 100644 --- a/base_user_role/i18n/es_AR.po +++ b/base_user_role/i18n/es_AR.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_CL.po b/base_user_role/i18n/es_CL.po index bf97ef700..12a4bf160 100644 --- a/base_user_role/i18n/es_CL.po +++ b/base_user_role/i18n/es_CL.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_CO.po b/base_user_role/i18n/es_CO.po index 63d785734..d6432c096 100644 --- a/base_user_role/i18n/es_CO.po +++ b/base_user_role/i18n/es_CO.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_CR.po b/base_user_role/i18n/es_CR.po index eeced6de9..c7bcb3280 100644 --- a/base_user_role/i18n/es_CR.po +++ b/base_user_role/i18n/es_CR.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Usuario" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_DO.po b/base_user_role/i18n/es_DO.po index 126255ae5..76c2ac414 100644 --- a/base_user_role/i18n/es_DO.po +++ b/base_user_role/i18n/es_DO.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_EC.po b/base_user_role/i18n/es_EC.po index d0ed1734d..f0715e618 100644 --- a/base_user_role/i18n/es_EC.po +++ b/base_user_role/i18n/es_EC.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Usuario" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_ES.po b/base_user_role/i18n/es_ES.po index 39a4e21b9..a78a779a3 100644 --- a/base_user_role/i18n/es_ES.po +++ b/base_user_role/i18n/es_ES.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_MX.po b/base_user_role/i18n/es_MX.po index 545a3b083..70c8385e3 100644 --- a/base_user_role/i18n/es_MX.po +++ b/base_user_role/i18n/es_MX.po @@ -55,11 +55,6 @@ msgstr "Categoría del grupo asociado" msgid "Color Index" msgstr "Indice de color" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "Empresa" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -200,12 +195,6 @@ msgstr "Actualizar roles de usuario" msgid "User" msgstr "Usuario" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "El usuario \"{}\" no tiene acceso a la empresa \"{}\"" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" @@ -243,5 +232,11 @@ msgstr "Los usuarios de este grupo heredan automáticamente esos grupos" msgid "Views" msgstr "Vistas" +#~ msgid "Company" +#~ msgstr "Empresa" + +#~ msgid "User \"{}\" does not have access to the company \"{}\"" +#~ msgstr "El usuario \"{}\" no tiene acceso a la empresa \"{}\"" + #~ msgid "Comment" #~ msgstr "Comentario" diff --git a/base_user_role/i18n/es_PE.po b/base_user_role/i18n/es_PE.po index 4e2c1cde4..9931afee3 100644 --- a/base_user_role/i18n/es_PE.po +++ b/base_user_role/i18n/es_PE.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_PY.po b/base_user_role/i18n/es_PY.po index a52311e3c..5b22fa034 100644 --- a/base_user_role/i18n/es_PY.po +++ b/base_user_role/i18n/es_PY.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/es_VE.po b/base_user_role/i18n/es_VE.po index 8e21a3a85..019f85345 100644 --- a/base_user_role/i18n/es_VE.po +++ b/base_user_role/i18n/es_VE.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Usuario" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/et.po b/base_user_role/i18n/et.po index 5528ce0b9..d66815c2f 100644 --- a/base_user_role/i18n/et.po +++ b/base_user_role/i18n/et.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Kasutaja" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/eu.po b/base_user_role/i18n/eu.po index facbed9d7..58be01863 100644 --- a/base_user_role/i18n/eu.po +++ b/base_user_role/i18n/eu.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/fa.po b/base_user_role/i18n/fa.po index 454104fe7..b39bb5281 100644 --- a/base_user_role/i18n/fa.po +++ b/base_user_role/i18n/fa.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/fi.po b/base_user_role/i18n/fi.po index 85200b23f..9eac753a3 100644 --- a/base_user_role/i18n/fi.po +++ b/base_user_role/i18n/fi.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Käyttäjä" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/fr.po b/base_user_role/i18n/fr.po index 77c9d6457..2fac9dbfe 100644 --- a/base_user_role/i18n/fr.po +++ b/base_user_role/i18n/fr.po @@ -55,11 +55,6 @@ msgstr "Catégorie du groupe associé" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "Màj rôles utilisateur" msgid "User" msgstr "Utilisateur" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/fr_CA.po b/base_user_role/i18n/fr_CA.po index bcbd9ba1f..a53275c8f 100644 --- a/base_user_role/i18n/fr_CA.po +++ b/base_user_role/i18n/fr_CA.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/fr_CH.po b/base_user_role/i18n/fr_CH.po index 13eb5d6f7..b14b1dd95 100644 --- a/base_user_role/i18n/fr_CH.po +++ b/base_user_role/i18n/fr_CH.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/fr_FR.po b/base_user_role/i18n/fr_FR.po index 1b95d3ecd..00e2ae88c 100644 --- a/base_user_role/i18n/fr_FR.po +++ b/base_user_role/i18n/fr_FR.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/gl.po b/base_user_role/i18n/gl.po index a90a3e68e..69a08ad13 100644 --- a/base_user_role/i18n/gl.po +++ b/base_user_role/i18n/gl.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "Usuario" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/gl_ES.po b/base_user_role/i18n/gl_ES.po index 6b42f3085..8d3a69a51 100644 --- a/base_user_role/i18n/gl_ES.po +++ b/base_user_role/i18n/gl_ES.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/he.po b/base_user_role/i18n/he.po index b9014902a..f370267f9 100644 --- a/base_user_role/i18n/he.po +++ b/base_user_role/i18n/he.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/hr.po b/base_user_role/i18n/hr.po index db61e1a00..7de94cd9d 100644 --- a/base_user_role/i18n/hr.po +++ b/base_user_role/i18n/hr.po @@ -57,11 +57,6 @@ msgstr "Pridružena grupa" msgid "Color Index" msgstr "Index boje" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -203,12 +198,6 @@ msgstr "Korisničke role" msgid "User" msgstr "Korisnik" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/hr_HR.po b/base_user_role/i18n/hr_HR.po index c925597bf..4d0de2262 100644 --- a/base_user_role/i18n/hr_HR.po +++ b/base_user_role/i18n/hr_HR.po @@ -56,11 +56,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -199,12 +194,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/hu.po b/base_user_role/i18n/hu.po index 55a523ea2..e96866b8b 100644 --- a/base_user_role/i18n/hu.po +++ b/base_user_role/i18n/hu.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Felhasználó" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/id.po b/base_user_role/i18n/id.po index 101aee0d3..d101b9368 100644 --- a/base_user_role/i18n/id.po +++ b/base_user_role/i18n/id.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/it.po b/base_user_role/i18n/it.po index a1c3633d7..b920e48d3 100644 --- a/base_user_role/i18n/it.po +++ b/base_user_role/i18n/it.po @@ -56,11 +56,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -199,12 +194,6 @@ msgstr "" msgid "User" msgstr "Utente" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/ja.po b/base_user_role/i18n/ja.po index 9c76281d5..f41905801 100644 --- a/base_user_role/i18n/ja.po +++ b/base_user_role/i18n/ja.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "ユーザ" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/ko.po b/base_user_role/i18n/ko.po index 85ad83ac4..36a944110 100644 --- a/base_user_role/i18n/ko.po +++ b/base_user_role/i18n/ko.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/lt.po b/base_user_role/i18n/lt.po index 7bdcbaa54..652df463c 100644 --- a/base_user_role/i18n/lt.po +++ b/base_user_role/i18n/lt.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Naudotojas" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/lt_LT.po b/base_user_role/i18n/lt_LT.po index 239fd94b5..848ed7a75 100644 --- a/base_user_role/i18n/lt_LT.po +++ b/base_user_role/i18n/lt_LT.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/lv.po b/base_user_role/i18n/lv.po index d1235eb4f..21524a449 100644 --- a/base_user_role/i18n/lv.po +++ b/base_user_role/i18n/lv.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Lietotājs" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/mk.po b/base_user_role/i18n/mk.po index b3e3e47fe..0b1d96232 100644 --- a/base_user_role/i18n/mk.po +++ b/base_user_role/i18n/mk.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Корисник" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/mn.po b/base_user_role/i18n/mn.po index c39622f83..57c97e66b 100644 --- a/base_user_role/i18n/mn.po +++ b/base_user_role/i18n/mn.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Хэрэглэгч" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/nb.po b/base_user_role/i18n/nb.po index dcae30073..0fd262d6a 100644 --- a/base_user_role/i18n/nb.po +++ b/base_user_role/i18n/nb.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Bruker" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/nb_NO.po b/base_user_role/i18n/nb_NO.po index f11cdee98..9bdd9e1dc 100644 --- a/base_user_role/i18n/nb_NO.po +++ b/base_user_role/i18n/nb_NO.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/nl.po b/base_user_role/i18n/nl.po index 554936921..e0a268028 100644 --- a/base_user_role/i18n/nl.po +++ b/base_user_role/i18n/nl.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Gebruiker" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/nl_BE.po b/base_user_role/i18n/nl_BE.po index 1e446e40b..710dc0a68 100644 --- a/base_user_role/i18n/nl_BE.po +++ b/base_user_role/i18n/nl_BE.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Gebruiker" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/nl_NL.po b/base_user_role/i18n/nl_NL.po index 67d88e5bc..98e3df5b0 100644 --- a/base_user_role/i18n/nl_NL.po +++ b/base_user_role/i18n/nl_NL.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "Kleurindex" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Gebruiker" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/pl.po b/base_user_role/i18n/pl.po index 5567545a0..5228fdd85 100644 --- a/base_user_role/i18n/pl.po +++ b/base_user_role/i18n/pl.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Użytkownik" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/pt.po b/base_user_role/i18n/pt.po index 3afde325d..a64165226 100644 --- a/base_user_role/i18n/pt.po +++ b/base_user_role/i18n/pt.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Utilizador" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/pt_BR.po b/base_user_role/i18n/pt_BR.po index 48d5876c1..9255d933c 100644 --- a/base_user_role/i18n/pt_BR.po +++ b/base_user_role/i18n/pt_BR.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "Usuário" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/pt_PT.po b/base_user_role/i18n/pt_PT.po index 3cb688132..14285e8c8 100644 --- a/base_user_role/i18n/pt_PT.po +++ b/base_user_role/i18n/pt_PT.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "Utilizador" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/ro.po b/base_user_role/i18n/ro.po index 69518d46c..623d30154 100644 --- a/base_user_role/i18n/ro.po +++ b/base_user_role/i18n/ro.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "Utilizator" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/ru.po b/base_user_role/i18n/ru.po index 0c471f644..e324909fc 100644 --- a/base_user_role/i18n/ru.po +++ b/base_user_role/i18n/ru.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "Пользователь" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/sk.po b/base_user_role/i18n/sk.po index 9c61ac52d..89effb56f 100644 --- a/base_user_role/i18n/sk.po +++ b/base_user_role/i18n/sk.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/sl.po b/base_user_role/i18n/sl.po index c87ad1059..fdf1a4690 100644 --- a/base_user_role/i18n/sl.po +++ b/base_user_role/i18n/sl.po @@ -56,11 +56,6 @@ msgstr "Povezana skupina" msgid "Color Index" msgstr "Barvni indeks" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -200,12 +195,6 @@ msgstr "Uporabniška vloga" msgid "User" msgstr "Uporabnik" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/sr.po b/base_user_role/i18n/sr.po index a5695287c..45856af47 100644 --- a/base_user_role/i18n/sr.po +++ b/base_user_role/i18n/sr.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/sr@latin.po b/base_user_role/i18n/sr@latin.po index f3ac7b938..c6cf7c658 100644 --- a/base_user_role/i18n/sr@latin.po +++ b/base_user_role/i18n/sr@latin.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "Korisnik" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/sv.po b/base_user_role/i18n/sv.po index ea6f05030..122071c7d 100644 --- a/base_user_role/i18n/sv.po +++ b/base_user_role/i18n/sv.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Användare" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/th.po b/base_user_role/i18n/th.po index 028cbb058..7b3fe4aa2 100644 --- a/base_user_role/i18n/th.po +++ b/base_user_role/i18n/th.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "ผู้ใช้" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/tr.po b/base_user_role/i18n/tr.po index aa582cfdd..e26f46220 100644 --- a/base_user_role/i18n/tr.po +++ b/base_user_role/i18n/tr.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Kullanıcı" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/tr_TR.po b/base_user_role/i18n/tr_TR.po index ede97efda..96dcd8489 100644 --- a/base_user_role/i18n/tr_TR.po +++ b/base_user_role/i18n/tr_TR.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "Kullanıcı" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/uk.po b/base_user_role/i18n/uk.po index 3efa23e25..fb081eb84 100644 --- a/base_user_role/i18n/uk.po +++ b/base_user_role/i18n/uk.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/vi.po b/base_user_role/i18n/vi.po index dfe43e906..5939e3f76 100644 --- a/base_user_role/i18n/vi.po +++ b/base_user_role/i18n/vi.po @@ -53,11 +53,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -196,12 +191,6 @@ msgstr "" msgid "User" msgstr "Người sử dụng" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/vi_VN.po b/base_user_role/i18n/vi_VN.po index d22bde809..e26d53f2c 100644 --- a/base_user_role/i18n/vi_VN.po +++ b/base_user_role/i18n/vi_VN.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/zh_CN.po b/base_user_role/i18n/zh_CN.po index b88e3567e..0edabed3e 100644 --- a/base_user_role/i18n/zh_CN.po +++ b/base_user_role/i18n/zh_CN.po @@ -55,11 +55,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -198,12 +193,6 @@ msgstr "" msgid "User" msgstr "用户" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/i18n/zh_TW.po b/base_user_role/i18n/zh_TW.po index 244a611b8..83e677f45 100644 --- a/base_user_role/i18n/zh_TW.po +++ b/base_user_role/i18n/zh_TW.po @@ -54,11 +54,6 @@ msgstr "" msgid "Color Index" msgstr "" -#. module: base_user_role -#: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__company_id -msgid "Company" -msgstr "" - #. module: base_user_role #: model:ir.model.fields,field_description:base_user_role.field_res_users_role__create_uid #: model:ir.model.fields,field_description:base_user_role.field_res_users_role_line__create_uid @@ -197,12 +192,6 @@ msgstr "" msgid "User" msgstr "使用者" -#. module: base_user_role -#: code:addons/base_user_role/models/role.py:0 -#, python-format -msgid "User \"{}\" does not have access to the company \"{}\"" -msgstr "" - #. module: base_user_role #: model:ir.model,name:base_user_role.model_res_users_role msgid "User role" diff --git a/base_user_role/models/role.py b/base_user_role/models/role.py index 7718013b8..14cfb920e 100644 --- a/base_user_role/models/role.py +++ b/base_user_role/models/role.py @@ -3,8 +3,7 @@ import datetime import logging -from odoo import SUPERUSER_ID, _, api, fields, models -from odoo.exceptions import ValidationError +from odoo import SUPERUSER_ID, api, fields, models _logger = logging.getLogger(__name__) @@ -89,9 +88,6 @@ class ResUsersRoleLine(models.Model): date_from = fields.Date("From") date_to = fields.Date("To") is_enabled = fields.Boolean("Enabled", compute="_compute_is_enabled") - company_id = fields.Many2one( - "res.company", "Company", default=lambda self: self.env.user.company_id - ) _sql_constraints = [ ( "user_role_uniq", @@ -100,20 +96,6 @@ class ResUsersRoleLine(models.Model): ) ] - @api.constrains("user_id", "company_id") - def _check_company(self): - for record in self: - if ( - record.company_id - and record.company_id != record.user_id.company_id - and record.company_id not in record.user_id.company_ids - ): - raise ValidationError( - _('User "{}" does not have access to the company "{}"').format( - record.user_id.name, record.company_id.name - ) - ) - @api.depends("date_from", "date_to") def _compute_is_enabled(self): today = datetime.date.today() diff --git a/base_user_role/models/user.py b/base_user_role/models/user.py index 41c86b238..50e149b81 100644 --- a/base_user_role/models/user.py +++ b/base_user_role/models/user.py @@ -49,10 +49,7 @@ class ResUsers(models.Model): return res def _get_enabled_roles(self): - return self.role_line_ids.filtered( - lambda rec: rec.is_enabled - and (not rec.company_id or rec.company_id == rec.user_id.company_id) - ) + return self.role_line_ids.filtered(lambda rec: rec.is_enabled) def set_groups_from_roles(self, force=False): """Set (replace) the groups following the roles defined on users. diff --git a/base_user_role/tests/test_user_role.py b/base_user_role/tests/test_user_role.py index 703372356..2be3c436a 100644 --- a/base_user_role/tests/test_user_role.py +++ b/base_user_role/tests/test_user_role.py @@ -48,9 +48,6 @@ class TestUserRole(TransactionCase): self.role2_id = self.role_model.create(vals) self.company1 = self.env.ref("base.main_company") self.company2 = self.env["res.company"].create({"name": "company2"}) - self.user_id.write( - {"company_ids": [(4, self.company1.id, 0), (4, self.company2.id, 0)]} - ) def test_role_1(self): self.user_id.write({"role_line_ids": [(0, 0, {"role_id": self.role1_id.id})]}) @@ -172,55 +169,3 @@ class TestUserRole(TransactionCase): ) roles = self.role_model.browse([self.role1_id.id, self.role2_id.id]) self.assertEqual(user.role_ids, roles) - - def test_user_role_different_company(self): - self.user_id.write({"company_id": self.company1.id}) - self.user_id.write( - { - "role_line_ids": [ - ( - 0, - 0, - {"role_id": self.role2_id.id, "company_id": self.company2.id}, - ) - ] - } - ) - # Check that user does not have any groups - self.assertEqual(self.user_id.groups_id, self.env["res.groups"].browse()) - - def test_user_role_same_company(self): - self.user_id.write({"company_id": self.company1.id}) - self.user_id.write( - { - "role_line_ids": [ - ( - 0, - 0, - {"role_id": self.role1_id.id, "company_id": self.company1.id}, - ) - ] - } - ) - user_group_ids = sorted({group.id for group in self.user_id.groups_id}) - role_group_ids = self.role1_id.trans_implied_ids.ids - role_group_ids.append(self.role1_id.group_id.id) - role_group_ids = sorted(set(role_group_ids)) - # Check that user have groups implied by role 1 - self.assertEqual(user_group_ids, role_group_ids) - - def test_user_role_no_company(self): - self.user_id.write({"company_id": self.company1.id}) - self.user_id.write( - { - "role_line_ids": [ - (0, 0, {"role_id": self.role2_id.id, "company_id": False}) - ] - } - ) - user_group_ids = sorted({group.id for group in self.user_id.groups_id}) - role_group_ids = self.role2_id.trans_implied_ids.ids - role_group_ids.append(self.role2_id.group_id.id) - role_group_ids = sorted(set(role_group_ids)) - # Check that user have groups implied by role 2 - self.assertEqual(user_group_ids, role_group_ids) diff --git a/base_user_role/views/role.xml b/base_user_role/views/role.xml index c369b148a..400686515 100644 --- a/base_user_role/views/role.xml +++ b/base_user_role/views/role.xml @@ -27,10 +27,6 @@ - diff --git a/base_user_role/views/user.xml b/base_user_role/views/user.xml index 0430a48f0..bf8bf1284 100644 --- a/base_user_role/views/user.xml +++ b/base_user_role/views/user.xml @@ -20,10 +20,6 @@ -