PURPOSE As CRM is going to be updated (onchange -> compute, code improvements, better management of sales teams) cleaning and improving code is a necessary first step. SPECIFICATIONS Add tests. Amazing. Notably about matching partner / duplicate based on email as there is some weird behavior. closes odoo/odoo#45477 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>