Skip to content
Snippets Groups Projects
Commit e5804835 authored by std-odoo's avatar std-odoo Committed by Thibault Delavallée
Browse files

[FIX] website_crm_partner_assign: fix a traceback when null probability


Bug
===
1. Login as "Portal"
2. Go to "/my/opportunity"
3. Create an opportunity
4. Edit this opportunity from the frontend and set the probability empty
=> Save, an error is raised

Technical
=========
The probability is set to "None" and not to "False", therefor the
verification "probability >= 100" in the write method of the lead will
raise an error.

By using False instead of None, this verification will work.

Task-2613208

closes odoo/odoo#75084

X-original-commit: 6453a03e
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent c698d589
Branches
Tags
No related merge requests found
......@@ -210,7 +210,7 @@ class CrmLead(models.Model):
for lead in self:
lead_values = {
'expected_revenue': values['expected_revenue'],
'probability': values['probability'],
'probability': values['probability'] or False,
'priority': values['priority'],
'date_deadline': values['date_deadline'] or False,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment