Small improvements :

- when lead is marked as lost, related quotes are cancelled
- when you create a lead from a quote, its stage will be "proposition"
This commit is contained in:
Alexis de Lattre
2016-05-03 18:30:51 +02:00
parent e1c660d90c
commit 2dd4a7d577
3 changed files with 32 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
<field name="pricelist_id" position="after">
<field name="lead_id"
domain="[('type', '=', 'opportunity'), ('partner_id', '=', partner_id)]"
context="{'default_type': 'opportunity', 'default_partner_id': partner_id, 'default_user_id': uid, 'stage_type': 'opportunity'}"/>
context="{'default_type': 'opportunity', 'default_partner_id': partner_id, 'default_user_id': uid, 'stage_type': 'opportunity', 'usability_default_stage_xmlid': 'crm.stage_lead4'}"/>
</field>
</field>
</record>