OdooWiki OCA HUB

Website Sale Restrict By Pricelist

website_sale_restrict_by_pricelist folder_open OCA/e-commerce open_in_new
eCommerce License: AGPL-3

This module customizes the website shop page so that portal users only see products that are explicitly included in their assigned pricelist. It ensures personalized product visibility per customer without affecting internal users or public visitors.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Lets you hide website shop products from portal customers so they only see items included in their assigned pricelist. You can turn this on for one customer or for all portal users from the website settings.

This module changes how the public website shop shows products to logged-in portal customers (not internal staff and not anonymous visitors).

  • On a customer contact form, a new checkbox "Restrict products" appears. When ticked, that portal customer only sees products that are listed in their assigned pricelist, and only if those products are published on the website.
  • In Website settings, a new option lets you apply the same restriction to all portal users at once, instead of setting it customer by customer.
  • When the restriction applies, the shop page, its categories and its pager are recalculated so the customer only browses the allowed products. If the customer has no pricelist, they see no products at all.
  • The customer form checkbox is automatically hidden when the global option is enabled, because the global setting already covers everyone.

It touches the website shop controller and the customer (res.partner) and website settings (res.config.settings) screens. No emails, scheduled jobs or reports are added.

Depends on

website_sale
Models and fields (2)
  • res.partner · extends an existing modelrestrict_products, restrict_products_for_all_users
  • res.config.settings · extends an existing modelrestrict_products_for_all_users

Text generated by AI (DeepSeek) from reading the Odoo 15.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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 15.0

Confirmed on 2026-11-03 in branch 15.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 15.0
  • Go to: Contacts > select a contact.
  • Assign a pricelist to the contact that includes only specific products.
  • Select the 'Restrict Products' checkbox.

Additionally, you can restrict product visibility for all portal users by going to Website > Configuration > Settings and selecting the checkbox "Restrict Products For All Users".

  • Log in as that contact (portal user).
  • Go to: Website > Shop.

Only the products defined in the assigned pricelist will be visible in the shop for that user.

No verified information in OCA: Installation, Configuration.

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.