Files
odoo_source/addons/portal/controllers
Noe Antoine 554b31eec7 [IMP] portal: add fallback contact if salesperson not set.
Before this commit, the "Your contact" details in the portal
layout were not shown if the user_id (salesperson) was not set
on the portal user's partner.

In order for them to have contact info in that case, we now use
as a fallback contact the one responsible of their company, i.e.
the first company in the parent hierarchy (corresponding to the
commercial_partner_id field).

We still do not use the user if it they are a public user.

Task-3213421

closes odoo/odoo#114599

Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2023-03-16 14:12:29 +01:00
..
…
…