Skip to content

Commit 836c10f

Browse files
[MIG] base_portal_type: Migration to 18.0
1 parent 3153f47 commit 836c10f

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

base_portal_type/README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ Contributors
8383

8484
- Holger Brunn <[email protected]>
8585
(https://hunki-enterprises.com)
86+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
87+
88+
- Bhavesh Heliconia
8689

8790
Maintainers
8891
-----------

base_portal_type/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Portal types",
66
"summary": "Base module to allow different types of portals",
7-
"version": "16.0.1.0.0",
7+
"version": "18.0.1.0.0",
88
"development_status": "Alpha",
99
"category": "Technical",
1010
"website": "https://github.com/OCA/server-backend",

base_portal_type/models/res_groups.py

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,30 +42,17 @@ def _update_user_groups_view(self):
4242
for group in portal_groups:
4343
field_name = name_boolean_group(group.id)
4444
for field_node in arch.xpath(f"//field[@name='{field_name}']"):
45-
field_node.attrib["attrs"] = str(
46-
{
47-
"readonly": [
48-
(
49-
user_type_field,
50-
"not in",
51-
(portal_group + internal_group).ids,
52-
)
53-
],
54-
}
45+
field_node.attrib["readonly"] = (
46+
f"{user_type_field} not in "
47+
f"{(portal_group + internal_group).ids}"
5548
)
5649
node.addnext(
5750
etree.Element(
5851
"field",
5952
{
6053
"name": field_name,
6154
"on_change": "1",
62-
"attrs": str(
63-
{
64-
"invisible": [
65-
(user_type_field, "!=", portal_group.id),
66-
],
67-
}
68-
),
55+
"invisible": f"{user_type_field} != {portal_group.id}",
6956
},
7057
)
7158
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
- Holger Brunn \<[email protected]\>
22
(<https://hunki-enterprises.com>)
3+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
4+
- Bhavesh Heliconia

base_portal_type/static/description/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,10 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
432432
<ul class="simple">
433433
<li>Holger Brunn &lt;<a class="reference external" href="mailto:mail&#64;hunki-enterprises.com">mail&#64;hunki-enterprises.com</a>&gt;
434434
(<a class="reference external" href="https://hunki-enterprises.com">https://hunki-enterprises.com</a>)</li>
435+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
436+
<li>Bhavesh Heliconia</li>
437+
</ul>
438+
</li>
435439
</ul>
436440
</div>
437441
<div class="section" id="maintainers">

0 commit comments

Comments
 (0)