- Zurich
- https://servala.com
- Joined on
2025-03-03
A user in the Servala Portal which matches an internal user in Odoo should be able to see all invoice addresses, like they do when they log in to the Odoo backend. I figured out that the "Internal Users" filter in Odoo uses the domain ('share', '=', False) (L342) so let's use the same to decide if the user can see all invoice addresses. There are also "Portal Users" in Odoo, they should not see all invoice addresses and behave like a normal Servala Portal user.
Enhance the model to include ('active','=',True) to make sure the user is active in Odoo.
Just a thought: We could display all contacts we found in our ERP where the E-Mail address matches of the currently logged in user. And display additional information to it.