DevArc Open Source, episode 03 - Portal Login As for Odoo 19 Community
A customer writes: "The October invoice is not in our portal." In B2B, the customer portal is where invoices, quotes and orders live, so a missing document is a real problem. But the salesperson only sees the back end. Screenshots go back and forth, and asking the customer for their password is never an option.
Portal Login As (devarc_portal_login_as) lets authorised staff look at the portal exactly as one portal user sees it - for a limited time, with a reason, and with an audit trail.
Who may do it
An administrator assigns one of two groups in the user form, under Portal Login As:
- Login As: my customers - only customers where the user is the Salesperson.
- Login As: all portal users - meant for support.
Internal users can never be viewed - only portal users.
How it works
- On the customer's contact, the salesperson clicks View as customer.
- A reason is required. It is stored in the log.
- Before starting, Odoo asks for the salesperson's own password unless their identity was already verified within the last 10 minutes.
- The portal opens as that customer, with a yellow banner: whose portal it is and when the session ends.
- Return brings the salesperson back to the back end, straight onto the audit log entry.
In the demo, the missing invoice was simply still a draft - and drafts never reach the portal. Found in seconds, without a single screenshot.
Built-in limits
- Every visit is logged: who looked, at whose portal, why, start, expiry, end, end reason, IP address and browser.
- The customer receives a short notification that their portal was viewed.
- A session ends by itself after 30 minutes; logging out ends it too.
- An administrator can stop an active session from the log.
Technical facts
- Odoo 19 Community, depends only on
portal,mailandbus. - License: LGPL-3, free and open source.
- Source: https://github.com/devarc-gmbh/devarc-odoo-addons/tree/19.0/devarc_portal_login_as (repository
devarc-gmbh/devarc-odoo-addons, branch19.0)
Watch the video: https://youtu.be/wp7Nc-AZdSg
Previous episode: matching QR payments to invoices in Odoo 19 Community (episode 02, QR payment matching): https://devarc.ch/blog/knowledge-3/swiss-qr-bills-odoo-community-import-reconciliation-11
This video is AI narrated. All names and data in the demo are fictional.