Website Sale Product Multi Website
website_sale_product_multi_website · OCA/e-commerce
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `INSERT INTO product_template_website_rel ( product_template_id, website_id ) SELECT id, website_id FROM product_template WHERE website_id IS NOT NULL ON CONFLICT DO NOTHING` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
-
website_idMany2one → websitecompute='_compute_website_id'inverse='_inverse_website_id'store=True args: 'website' -
website_idsMany2many → websitehelp='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'
-
can_access_from_current_website(self, website_id=False)
No new fields.
Public methods (2)-
sale_product_domain(self) -
website_domain(self)
No new fields.
Public methods (0)No public methods.
Loading…