This commit fixes the insert_record override where, after calling super, the visitor is linked a lead with the id got from result, no matter if the model is lead or not. This commit adds the check to apply the link between visitor and lead only if the current model is crm.lead. Task ID: 2179631 PR #43731 closes odoo/odoo#43814 X-original-commit: 37d4fa4385c6c98bff6b5adc7b6aa0ee325c49eb Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>