From 1bd7e1341ada14b49ac64f36a7759360a669b006 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jes=C3=BAs=20Alan=20Ramos=20Rodr=C3=ADguez?=
Date: Mon, 12 Oct 2020 11:51:00 -0500
Subject: [PATCH] [MIG] base_user_role: Migration to 14.0
---
base_user_role/README.rst | 11 ++++++-----
base_user_role/__manifest__.py | 2 +-
base_user_role/models/role.py | 1 +
base_user_role/readme/CONTRIBUTORS.rst | 1 +
base_user_role/static/description/index.html | 7 ++++---
base_user_role/tests/test_user_role.py | 2 +-
6 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/base_user_role/README.rst b/base_user_role/README.rst
index 59364ee6..eec42484 100644
--- a/base_user_role/README.rst
+++ b/base_user_role/README.rst
@@ -14,13 +14,13 @@ User roles
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
- :target: https://github.com/OCA/server-backend/tree/13.0/base_user_role
+ :target: https://github.com/OCA/server-backend/tree/14.0/base_user_role
:alt: OCA/server-backend
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role
+ :target: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_user_role
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/253/13.0
+ :target: https://runbot.odoo-community.org/runbot/253/14.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -93,7 +93,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -111,6 +111,7 @@ Contributors
* Sébastien Alix
* Duc, Dao Dong (https://komit-consulting.com)
* Jean-Charles Drubay (https://komit-consulting.com)
+* Alan Ramos (https://www.jarsa.com.mx)
Do not contact contributors directly about support or help with technical issues.
@@ -149,6 +150,6 @@ Current `maintainers `__:
|maintainer-sebalix| |maintainer-jcdrubay| |maintainer-novawish|
-This module is part of the `OCA/server-backend `_ project on GitHub.
+This module is part of the `OCA/server-backend `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/base_user_role/__manifest__.py b/base_user_role/__manifest__.py
index 75671f3e..1f924b3c 100644
--- a/base_user_role/__manifest__.py
+++ b/base_user_role/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "User roles",
- "version": "13.0.1.0.0",
+ "version": "14.0.1.0.0",
"category": "Tools",
"author": "ABF OSIELL, Odoo Community Association (OCA)",
"license": "LGPL-3",
diff --git a/base_user_role/models/role.py b/base_user_role/models/role.py
index f6ed6676..495a5b66 100644
--- a/base_user_role/models/role.py
+++ b/base_user_role/models/role.py
@@ -32,6 +32,7 @@ class ResUsersRole(models.Model):
default=lambda cls: cls.env.ref("base_user_role.ir_module_category_role").id,
string="Associated category",
help="Associated group's category",
+ readonly=False,
)
@api.depends("line_ids.user_id")
diff --git a/base_user_role/readme/CONTRIBUTORS.rst b/base_user_role/readme/CONTRIBUTORS.rst
index ed506202..828fac31 100644
--- a/base_user_role/readme/CONTRIBUTORS.rst
+++ b/base_user_role/readme/CONTRIBUTORS.rst
@@ -1,5 +1,6 @@
* Sébastien Alix
* Duc, Dao Dong (https://komit-consulting.com)
* Jean-Charles Drubay (https://komit-consulting.com)
+* Alan Ramos (https://www.jarsa.com.mx)
Do not contact contributors directly about support or help with technical issues.
diff --git a/base_user_role/static/description/index.html b/base_user_role/static/description/index.html
index fb8ae694..067d435d 100644
--- a/base_user_role/static/description/index.html
+++ b/base_user_role/static/description/index.html
@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-

+

This module was written to extend the standard functionality regarding users
and groups management.
It helps creating well-defined user roles and associating them to users.
@@ -439,7 +439,7 @@ and then associate users to it.
Bugs are tracked on GitHub Issues.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-feedback.
+feedback.
Do not contact contributors directly about support or help with technical issues.
@@ -477,7 +478,7 @@ mission is to support the collaborative development of Odoo features and
promote its widespread use.
Current maintainers:

-This module is part of the OCA/server-backend project on GitHub.
+This module is part of the OCA/server-backend project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/base_user_role/tests/test_user_role.py b/base_user_role/tests/test_user_role.py
index 9dd9a0a4..70337235 100644
--- a/base_user_role/tests/test_user_role.py
+++ b/base_user_role/tests/test_user_role.py
@@ -187,7 +187,7 @@ class TestUserRole(TransactionCase):
}
)
# Check that user does not have any groups
- self.assertEquals(self.user_id.groups_id, self.env["res.groups"].browse())
+ 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})