Skip to content
Snippets Groups Projects
Commit 9ac5f42c 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

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 2761fec0
No related branches found
No related tags found
No related merge requests found
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