[FIX] crm: a lead created through a contact should be an opportunity
Currently, if you try to create an opportunity through the smart button on a contact form, a lead is created. A lead created from a customer should be an opportunity. opw-2886623 closes odoo/odoo#96268 X-original-commit: 415c8393f25ab47da45d15ebc455660bfa440389 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
name="action_view_opportunity"
|
||||
icon="fa-star"
|
||||
groups="sales_team.group_sale_salesman"
|
||||
context="{'default_partner_id': active_id}">
|
||||
context="{'default_partner_id': active_id, 'default_type':'opportunity'}">
|
||||
<field string="Opportunities" name="opportunity_count" widget="statinfo"/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user