Website Sale Product Multi Website

website_sale_product_multi_website
REPOSITORY
REPOSITORYOCA/e-commerce
GIT
GIThttps://github.com/OCA/e-commerce.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/e-commerce/tree/17.0/website_sale_product_multi_website
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Adhoc S.A.
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Adhoc S.A.
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, pilarvargas-tecnativa, Pilar Vargas
WEBSITE
WEBSITEhttps://github.com/OCA/e-commerce
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website_sale
    - website
    - digest
    - mail
    - base
    - base_setup
    - web
    - bus
    - web_tour
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - social_media
    - google_recaptcha
    - utm
    - sale
    - sales_team
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - payment
    - website_payment
    - website_mail
    - portal_rating
    - rating
    - delivery
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES geoip2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends that behavior by allowing products to be linked to
multiple websites through a new `website_ids` field. It also adapts the
website publication and access logic so products are only available on
the selected websites.

This is useful in multi-website environments where the same catalog item
must be shared across some websites, but not all of them.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
product_product_website_tree_view product.product.website.inherit.view.tree product.product field Inherits website_sale.product_product_website_tree_view
product_template_form_view product.template.inherit.view.form product.template field Inherits website_sale.product_template_form_view
product_template_view_tree product_template_view_tree.view.tree product.template field Inherits website_sale.product_template_view_tree
Models touched (3)

New fields (2)
  • website_id Many2one → website
    compute='_compute_website_id' inverse='_inverse_website_id' store=True string='Website' args: 'website'
  • website_ids Many2many → website
    help='Restrict the product to the selected websites. Leave empty to make it available on all websites.' string='Websites' args: 'website', 'product_template_website_rel', 'product_template_id', 'website_id'
Public methods (1)
  • can_access_from_current_website(self, website_id=False)

New fields (0)

No new fields.

Public methods (2)
  • sale_product_domain(self)
  • website_domain(self, website_id=False)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.