ever-just/agentskills/everjust-client-portal
Claude Code and agent skill by ever-just/agentskills
- community
Checking that the SKILL.md file is still in the repository.
Operate the everjust.app CLIENT PORTAL (the /my/* self-service frontend) as an agent — grant a customer login access to their portal (portal.wizard / portal.wizard.user.action_grant_access, which creates a res.users with share=True in group_portal and emails a set-password invite), or SHARE a single backend record via a signed access-token link (portal.share / get_portal_url / _get_share_url on portal.mixin) with no login at all. Use when the task is "invite <customer> to the portal", "give <contact> portal access", "send <partner> a link to view this invoice/quote/task", "why can a portal user see X but not Y", or minting a shareable /my URL. This is Odoo's portal stack (portal.mixin, portal.wizard(.user), portal.share, res.users share=True) — NOT internal-user provisioning, NOT the public marketing website, NOT the everjust.mail webmail. Odoo 19: res.users groups are group_ids, NOT groups_id. Cross-refs [[everjust-platform]], [[everjust-agent-mcp]], [[everjust-mail-ops]].
Install
npx vskill@latest install ever-just/agentskills/everjust-client-portalSKILL.md
The same SKILL.md was published earlier as ever-just/agentskills/everjust-client-portal.
EVERJUST Client Portal — Agent Skill
Operate the client portal: the /my/* self-service frontend where a customer logs in (or follows a signed link) to see their own records — quotes, invoices, sales orders, projects, tasks, tickets, signatures. Two distinct capabilities, don't conflate them:
- Grant portal access — turn a contact (
res.partner) into a login user with
share=True in base.group_portal, and email them a set-password invite. They then sign in at https://<tenant>.everjust.app/my and browse everything linked to their partner. This is portal.wizard → portal.wizard.user.action_grant_access.
- Share one record — send a specific partner a link to one backend record, gated by
an access_token (bypasses their rights for that record only) or a signup token — with no login required. This is portal.share wizard, or directly record.get_portal_url() / record._get_share_url(...) on any portal.mixin model.
You drive all of this through the platform's Odoo MCP (env[...], search, create, call) — see [[everjust-agent-mcp]] for opening the session against the right tenant. For the tenancy model and what a workspace is for, see [[everjust-platform]].
When to use this skill
- Invite a customer to the portal — "give jane@acme.com portal access", "let this
contact log in and see their invoices/projects", "onboard the client to their portal".
- Re-invite / revoke — resend the set-password mail, or archive a portal login.
- Share a single record by link — "send this invoice/quote/SO/task to the customer",
"generate a shareable link for record X" — with or without them having a login.
- Explain portal visibility — "why can this portal user see the invoice but not the
contact form", "what will they see when they log in".
- Audit portal users — list
res.userswithshare=True, see who has access to what.
When NOT to use this skill — stop if the task is really:
- Provisioning an INTERNAL (staff) user — an employee who works in
/odoo, not a
customer on /my. That is base.group_user (internal), not group_portal, and is platform/admin work. A portal user has share=True; an internal user has share=False.
- The public marketing website (
website_connectdomain,website_tcsw, the/
homepage) — that is anonymous QWeb pages, not the authenticated /my portal. See the website tools in [[everjust-agent-mcp]] / [[everjust-platform]].
- The everjust.mail webmail (
everjust.mail.*) — a separate product; sending the
invite email uses Odoo's own mail templates, not that stack. See [[everjust-mail-ops]].
- e-signature request flow —
sign.requesthas its own signer-invite path; portal
users view signed docs but requesting a signature is [[everjust-sign]].
- Granting admin / secret config — hard-blocked by the MCP anyway.
Key models (real _name + fields, Odoo 19, verified live)
| Model | Kind | Role | |
|---|---|---|---|
portal.mixin | AbstractModel | Mixed into every "portal-shareable" business model (sale.order, account.move, project.task, project.project, etc.). Gives them access_url, access_token, access_warning, and the URL builders. A model is shareable iff it inherits this. | |
portal.wizard | TransientModel | The "Grant portal access" batch wizard. Holds partner_ids and an auto-computed user_ids (one portal.wizard.user per contact) + a welcome_message. | |
portal.wizard.user | TransientModel | The per-contact access action lives here. One row = one partner's portal-access decision. Methods: action_grant_access, action_revoke_access, action_invite_again. | |
portal.share | TransientModel | The "Share" wizard — email a signed link to a specific record to partner_ids. Computes share_link from the record's _get_share_url. | |
res.users | Model | The login. A portal user = `share=True` + membership in `base.group_portal`. Odoo 19 groups field is `group_ids` (m2m → res.groups) — NOT `groups_id` (that name was removed). | |
res.partner | Model | The contact behind the user. _get_frontend_writable_fields() defines what a portal user may edit on their own contact (name, phone, email, address, vat, company_name). |
portal.mixin — the fields/methods you actually call
access_url(Char, computed per model) — the record's own/my/...path, e.g.
/my/invoices/<id>. Default '#'; each concrete model overrides _compute_access_url.
access_token(Char) — the per-record security token. Lazily minted by
_portal_ensure_token() (writes a uuid4 on first use). Presence of a valid ?access_token= in a URL bypasses the recipient's ACLs for that one record.
get_portal_url(suffix=, report_type=, download=, query_string=, anchor=)→ the full
access_url + '?access_token=<token>...' string. This is the simplest way to mint a shareable link. Ensures the token exists as a side effect.
_get_share_url(redirect=False, signup_partner=False, pid=None, share_token=True)→
lower-level; with redirect=True returns a /mail/view?model=..&res_id=..&access_token=.. URL (mail/view re-checks access and redirects to the portal page). pid=<partner.id> adds a signed hash so that partner is auto-authenticated in the record's chatter.
action_share()→ returns their.actions.act_windowthat opens theportal.share
wizard for the current active_id/active_model (the backend "Share" button).
portal.wizard.user — the grant/revoke engine (read this before granting)
- Fields:
partner_id(the contact),email,user_id(existing login, if any),
is_portal (bool: already a portal user), is_internal (bool: is a staff user — you must NOT downgrade these), email_state (ok | ko invalid | exist email already a user).
action_grant_access()— the whole grant, idempotent-guarded:
- asserts
email_state != ko/exist; raises if alreadyis_portal/is_internal; - creates a
res.usersfrom template if the partner has none (_create_user, login =
normalized email);
user.write({'active': True, 'group_ids': [(4, group_portal.id), (3, group_public.id)]})
— note `group_ids` (adds portal group, removes public group);
partner.signup_prepare()(mints a signup token) and sends the
auth_signup.portal_set_password_email template with force_send=True.
action_revoke_access()— archives the login (active=False) and clears the signup
token. Keeps them in group_portal (never re-adds public). Only touches users where _is_portal() is true.
action_invite_again()— just re-sends the set-password email (requiresis_portal).
Recipes
Route each through the Odoo MCP (open env on the tenant DB — see [[everjust-agent-mcp]]). The connected user needs the rights to create users / send the invite (typically an admin/Settings role); a plain user's key will AccessError.
1. Grant a contact portal access (the invite) — the canonical path
Do NOT hand-roll a `res.users`. Go through portal.wizard so the group swap, signup token, and invite email all fire correctly. Steps: create the wizard seeded with the partner → find the auto-created portal.wizard.user row → call action_grant_access on it.
Over MCP: create(model="portal.wizard", values={...}), then call(model="portal.wizard.user", method="action_grant_access", ids=[<pwu_id>], confirm=true). The customer gets a set-password email and, after choosing a password, logs in at https://<tenant>.everjust.app/my. The return value is a wizard-refresh action — ignore it; verify success by reading the user (recipe 4), not by the return.
2. Re-invite or revoke
Both are mutating → confirm:true over MCP. Revoke does NOT delete the user or the partner; it archives the login and voids the signup token. To re-enable, run recipe 1 again (it flips active back to True).
3. Share ONE record by link — no login required
The fastest mint is get_portal_url() on any record whose model inherits portal.mixin (sale.order, account.move, project.task, project.project, purchase.order, …). It ensures the token and returns the token'd path; prepend the base URL for an absolute link.
Over MCP: call(model="account.move", method="get_portal_url", ids=[8891], confirm=true) (it writes the access_token on first call, hence confirm). Anyone with this URL can view that one record without logging in — treat the link as a bearer secret.
To also email it (with a proper invite body + chatter authentication), use the portal.share wizard instead of pasting the raw link:
action_send_mail is smart: partners who are already users (or when the record already has an access_token) get the common public link; partners with no login get an individualized signup link (_get_signup_url_for_action) so they can self-register on click. It never creates a login itself — that's recipe 1.
4. Audit / find portal users (who has access?)
share=True is the definitive marker of a portal (external) user. Filtering on group_ids uses the Odoo-19 name ([("group_ids", "in", group_portal.id)]), not groups_id.
5. Understand what a portal user will see
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/everjust-client-portal/SKILL.md
Popularity
- Repository stars
- 3
- Repository forks
- 1
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ever-just/agentskills/everjust-client-portal)