OdooWiki OCA HUB

Conditional visibility for internal users in Website

website_conditional_visibility_user_group folder_open OCA/website open_in_new
Product License: AGPL-3

This module adds extra granularity in the visibility of the website snippets allowing to set if the users that can see a block are internal or portal ones.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a 'Groups' option in the Website builder so you can show a block only to portal users or only to internal users, on top of the existing 'Visible for Logged In' condition.

When editing a website page, blocks already have a visibility setting. This module adds an extra 'Groups' dropdown that appears only when the block is set to be visible for logged-in visitors.

  • 'No restriction': everyone who meets the logged-in condition sees the block.
  • 'Only portal users': the block is hidden from internal employees and from anonymous visitors.
  • 'Only internal users': the block is hidden from portal customers and from anonymous visitors.

To make this work, the module tells the website which kind of visitor is browsing: internal user, portal user or public visitor. This information is added to the page and used by the website's own visibility rules, so the block is shown or hidden automatically without any manual action.

A safety rule is included: if you later change the block back to a normal visibility setting, the group restriction is removed automatically, so a block cannot stay hidden with no visible option to bring it back.

The module only extends the website frontend behaviour and the ir.http session information; it does not add new menus or database models.

Depends on

website
Models and fields (1)
  • ir.http · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure the user group visibility:

  • With the frontend editor opened select the block you want to set the visibility for.
  • In Style tab of the editor panel set the Visibility option to Conditional and unfold it.
  • Set the Users option to Visible for logged in.
  • Now you'll see the new Groups option.
  • You can choose between Only internal users, Only portal users or No restriction, which is the default value.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.