Skip to content
Snippets Groups Projects
Commit 9b534649 authored by Florent Lejoly's avatar Florent Lejoly Committed by Thibault Delavallée
Browse files

[FIX] crm: fix archive / restore PLS inconsistencies


SPECIFICATIONS

Fixes following issue: when a lead is marked as lost, the probability is
correctly set to 0 but not the automatic one. If one clicks on the "Set to
automatic", the probability is updated, which un-archives it without really
restoring it, meaning we get in a very strange state outside the expected flow
(no Won/Lost buttons, ...).

With this commit the automated probability is set to 0 when setting as lost.
Moreover restoring a lead recomputes its probabilities.

LINKS

Task ID 2092799
Manual backport of PR odoo/odoo#42015 done in master
PR odoo/odoo#42045

closes odoo/odoo#42057

X-original-commit: 9ac5f42c
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent e72ae1aa
No related branches found
No related tags found
Loading
Loading
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