[FIX] crm: Creating a lead in multi company from My pipeline
[FIX] crm: Creating a lead in multi company from My pipeline

Steps to reproduce the bug:

- Let's consider two companies C1 and C2
- Let's consider a sales team ST in C1
- Let's consider that the partner of your current user is in ST
- Log your user in C2
- Go to CRM > Sales > My pipeline
- Create a lead

Bug:

An access error was raised.

opw:2191517

closes odoo/odoo#45234

X-original-commit: 42cdf368bdec41918b9f4b131b838cb1c76928b4
Signed-off-by: Simon Goffin (sig) <b3ed2cf313e7546085c3c50622143ff31e467d23@openerp.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo