Skip to content
Browse files

[FIX] portal: portal access management wizard for company

Have a partner which is a company, with some children
Click on the action "Portal Access Management"

Before this commit, only the children of the company is selectable in the wizard
but not the company itself

After this commit, the company is part of the list

OPW 1931920

closes #31344
  • Loading branch information...
kebeclibre committed Feb 22, 2019
1 parent 21e44d4 commit 64a3d8f1d6162cc2556633e8acf73bb281a23677
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/portal/wizard/
@@ -44,7 +44,7 @@ def onchange_portal_id(self):
contact_ids = set()
user_changes = []
for partner in self.env['res.partner'].sudo().browse(partner_ids):
contact_partners = partner.child_ids or [partner]
contact_partners = partner.child_ids | partner
for contact in contact_partners:
# make sure that each contact appears at most once in the list
if not in contact_ids:

0 comments on commit 64a3d8f

Please sign in to comment.
You can’t perform that action at this time.