- Zurich
- https://serva.la
- Joined on
2025-03-03
We should also display the parent_id.name
field to make these addresses more discoverable to which company they belong to. And order alphabetically if not already the case.
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.