[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:Thibault Delavallee (tde) <tde@openerp.com>
Loading
Please register or sign in to comment