[FIX] sale_crm: fix default value for team_id

When create a sale order from a opportunity the default value
for the team_id was wrong and thus the team_id was not properly set

Solution
--------
Return the id of the team not a tuple that contains the id of the team

closes odoo/odoo#93631

X-original-commit: 9c172745dcb9aa755079e2b63a7e9e69442b867f
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
Thibault Francois
2022-06-15 08:21:45 +02:00
parent dbc9836dff
commit 13eab9aa84
+1 -1
View File
@@ -83,7 +83,7 @@ class CrmLead(models.Model):
'default_tag_ids': [(6, 0, self.tag_ids.ids)]
}
if self.team_id:
quotation_context['default_team_id'] = self.team_id.id,
quotation_context['default_team_id'] = self.team_id.id
if self.user_id:
quotation_context['default_user_id'] = self.user_id.id
return quotation_context