Repository
OCA/e-commerce · module folder · Try on Runboat
Module version
1.0.2
Category
Website
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/e-commerce
Last tracking update
2026-08-07 08:23:00
Authors
Odoo Community Association (OCA), Adhoc S.A.
Maintainers
Odoo Community Association (OCA), Adhoc S.A.
Committers
pilarvargas-tecnativa, Pilar Vargas, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None
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 tree Inherits website_sale.product_product_website_tree_view
product_template_form_view product.template.inherit.view.form product.template form Inherits website_sale.product_template_form_view
product_template_view_tree product_template_view_tree.view.tree product.template tree Inherits website_sale.product_template_view_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

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.

Status
Open migration PR — not merged yet for this version
CI status
green — ready to merge
Open since
0 days ago
Last activity
0 days ago
Repository
OCA/e-commerce
Pull request
[19.0][MIG] website_sale_product_multi_website: Migration to version 19.0 (#1299)