[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#75100

X-original-commit: e58048350b670b88c31c88cc57cdf6cc38b22f80
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
std-odoo
2021-08-13 16:17:15 +00:00
committed by Thibault Delavallée
parent b6974528f9
commit 99d53cf473
@@ -205,7 +205,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,
}