Skip to content

Commit

Permalink
[MIG] base_user_role_company: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatiana Deribina committed Dec 10, 2021
1 parent d69c15f commit 6192fef
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
10 changes: 5 additions & 5 deletions base_user_role_company/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ User roles by company
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github
:target: https://github.com/OCA/server-backend/tree/14.0/base_user_role_company
:target: https://github.com/OCA/server-backend/tree/15.0/base_user_role_company
: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-14-0/server-backend-14-0-base_user_role_company
:target: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-14-0-base_user_role_company
: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/14.0
:target: https://runbot.odoo-community.org/runbot/253/15.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

Enable User Roles depending on the Companies selected.

Expand Down Expand Up @@ -110,6 +110,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/14.0/base_user_role_company>`_ project on GitHub.
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/15.0/base_user_role_company>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion base_user_role_company/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "User roles by company",
"version": "14.0.1.1.0",
"version": "15.0.0.0.0",
"category": "Tools",
"author": "Open Source Integrators, Odoo Community Association (OCA)",
"license": "AGPL-3",
Expand Down
2 changes: 1 addition & 1 deletion base_user_role_company/models/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ResUsersRoleLine(models.Model):
help="If set, this role only applies when this is the main company selected."
" Otherwise it applies to all companies.",
)
active_role = fields.Boolean(string="Active Role", default=True)
active_role = fields.Boolean(default=True)

@api.constrains("user_id", "company_id")
def _check_company(self):
Expand Down
6 changes: 6 additions & 0 deletions setup/base_user_role_company/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 6192fef

Please sign in to comment.