[FIX] crm: do not mark as won a lead
A lead can be marked as won, it must be converted to an opportunity first. Previous flow was problematic as we could still convert to opportunity a won lead (which does not work and does not make much sense). A lead can only be lost or converted. Fixes #9076
This commit is contained in:
@@ -108,9 +108,6 @@
|
||||
<header>
|
||||
<button name="%(crm.action_crm_lead2opportunity_partner)d" string="Convert to Opportunity" type="action"
|
||||
help="Convert to Opportunity" class="oe_highlight"/>
|
||||
<button name="action_set_won" string="Mark Won"
|
||||
type="object" class="oe_highlight"
|
||||
attrs="{'invisible': ['|', ('active','=',False), ('probability', '=', 100)]}"/>
|
||||
<button name="action_set_lost" string="Mark Lost"
|
||||
type="object" class="oe_highlight"
|
||||
attrs="{'invisible': [('active', '=', False)]}"/>
|
||||
|
||||
Reference in New Issue
Block a user