[IMP] crm: remove mark lost button on leads
Leads can be archived / unarchived. It is not necessary to keep the mark as lost button. This button is used in opportunities but is redundant with archive in leads.
This commit is contained in:
committed by
Thibault Delavallée
parent
0d25248cc3
commit
69a769fc99
@@ -106,9 +106,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_lost" string="Mark Lost"
|
||||
type="object" class="oe_highlight"
|
||||
attrs="{'invisible': [('active', '=', False)]}"/>
|
||||
<field name="stage_id" widget="statusbar" clickable="True"
|
||||
domain="['&', ('team_ids', '=', team_id), '|', ('type', '=', type), ('type', '=', 'both')]"
|
||||
options="{'fold_field': 'fold'}"
|
||||
@@ -116,12 +113,10 @@
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive"
|
||||
attrs="{'invisible': [('active', '=', True), ('probability', '<', 100)]}">
|
||||
<button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
|
||||
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
|
||||
</button>
|
||||
</div>
|
||||
<div class="label label-danger pull-right" attrs="{'invisible': ['|', ('probability', '>', 0), ('active', '=', True)]}">Lost</div>
|
||||
<div class="label label-success pull-right" attrs="{'invisible': [('probability', '<', 100)]}">Won</div>
|
||||
<div class="oe_title">
|
||||
<label for="name" class="oe_edit_only" string="Lead"/>
|
||||
@@ -246,6 +241,7 @@
|
||||
<field name="user_id" invisible="1"/>
|
||||
<field name="partner_id" invisible="1"/>
|
||||
<field name="team_id"/>
|
||||
<field name="active" invisible="1"/>
|
||||
<field name="probability" invisible="1"/>
|
||||
<field name="campaign_id" invisible="1"/>
|
||||
<field name="referred" invisible="1"/>
|
||||
@@ -676,7 +672,7 @@
|
||||
</record>
|
||||
|
||||
<record id="action_mark_as_lost" model="ir.actions.server">
|
||||
<field name="name">Mark As Lost</field>
|
||||
<field name="name">Mark as lost</field>
|
||||
<field name="model_id" ref="model_crm_lead"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
@@ -688,7 +684,7 @@
|
||||
<record id="ir_mark_as_lost" model="ir.values">
|
||||
<field eval="'client_action_multi'" name="key2"/>
|
||||
<field eval="'crm.lead'" name="model"/>
|
||||
<field name="name">Mark As Lost</field>
|
||||
<field name="name">Mark as lost</field>
|
||||
<field eval="'ir.actions.server,%d'%action_mark_as_lost" name="value"/>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user