Skip to content
Permalink
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
  • Loading branch information...
kebeclibre committed Feb 22, 2019
1 parent 21e44d4 commit e9345079b541a6f838645b0df7d168f1e682e746
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/portal/wizard/portal_wizard.py
@@ -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 contact.id not in contact_ids:

0 comments on commit e934507

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