mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[MIG] base_user_role_company: Migration to 17.0
This commit is contained in:
@@ -109,6 +109,10 @@ Contributors
|
||||
- Chandresh Thakkar <cthakkr@opensourceintegrators.com>
|
||||
- Urvisha Desai <udesai@opensourceintegrators.com>
|
||||
|
||||
`WeSolved <http://wesolved.com>`__
|
||||
|
||||
- Robin Conjour <rconjour@wesolved.com>
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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(",")]
|
||||
|
||||
@@ -3,3 +3,7 @@
|
||||
> - Daniel Reis \<<dreis@opensourceintegrators.com>\>
|
||||
> - Chandresh Thakkar \<<cthakkr@opensourceintegrators.com>\>
|
||||
> - Urvisha Desai \<<udesai@opensourceintegrators.com>\>
|
||||
|
||||
[WeSolved](http://wesolved.com)
|
||||
|
||||
> - Robin Conjour \<<rconjour@wesolved.com>\>
|
||||
|
||||
@@ -451,6 +451,12 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<li>Urvisha Desai <<a class="reference external" href="mailto:udesai@opensourceintegrators.com">udesai@opensourceintegrators.com</a>></li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
<p><a class="reference external" href="http://wesolved.com">WeSolved</a></p>
|
||||
<blockquote>
|
||||
<ul class="simple">
|
||||
<li>Robin Conjour <<a class="reference external" href="mailto:rconjour@wesolved.com">rconjour@wesolved.com</a>></li>
|
||||
</ul>
|
||||
</blockquote>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
|
||||
|
||||
Reference in New Issue
Block a user