Repository
OCA/e-commerce · module folder · Try on Runboat
Module version
1.0.0
Category
eCommerce
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/e-commerce
Last tracking update
2026-08-07 07:57:04
Authors
Odoo Community Association (OCA), APSL-Nagarro
Maintainers
Odoo Community Association (OCA), APSL-Nagarro
Committers
OCA-git-bot, oca-ci, Antoni Marroig Campomar
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
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.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form.inherit res.config.settings form Inherits website_sale.res_config_settings_view_form
view_partner_form res.partner.view.form.inherit res.partner form Inherits base.view_partner_form
HTTP endpoints (1)
Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) WebsiteSaleRestrictPartnerProductController.shop inherited http ALL
Models touched (2)

New fields (1)
  • restrict_products_for_all_users Boolean
    config_parameter='website_sale_restrict_by_pricelist.restrict_products' help='Enable to restrict products base on the assigned pricelist of all users.'
Public methods (0)

No public methods.

New fields (2)
  • restrict_products Boolean
    help='Enable to restrict products base on the assigned pricelist.'
  • restrict_products_for_all_users Boolean
    compute='_compute_restrict_products_for_all_users' store=False
Public methods (0)

No public methods.

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
182 days ago
Last activity
4 days ago
Repository
OCA/e-commerce
Pull request
[16.0][MIG]:website_sale_restrict_by_pricelist (#1166)