[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:
Nshimiyimana Séna
2022-07-19 11:51:28 +02:00
parent f8dd8678aa
commit 6957fe14f7
+1 -1
View File
@@ -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>