Skip to content
Snippets Groups Projects
Commit f8bf66b6 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] website_crm_partner_assign: assign opportunity to the commercial_partner_id

Before this commit, an opp created from a contact via the portal was assign to
himself instead of the commercial_partner_id.

So the saleperson was not assigned to the opportunity, and the opp created was
not for the company but for the contact only.

That make sense to share the opp to the company and assign the saleman directly.

Thanks to GBR for the reporting.
parent 5f9c3f51
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,7 @@ class CrmLead(models.Model):
'name': values['title'],
'description': values['description'],
'priority': '2',
'partner_assigned_id': user.partner_id.id,
'partner_assigned_id': user.commercial_partner_id.id,
}
if tag_own:
values['tag_ids'] = [(4, tag_own.id, False)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment