TIP: You can type at any time to perform a new search.
Website Sale Product Multi Website
website_sale_product_multi_website · OCA/e-commerce
Security findings
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. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/e-commerce · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- Website
- Folder size
- 0.05 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/e-commerce
- Last tracking update
- 2026-08-25 11:30:29
- Authors
- Odoo Community Association (OCA), Adhoc S.A.
- Maintainers
- Odoo Community Association (OCA), Adhoc S.A.
- Committers
- OCA-git-bot, oca-ci, cristina.hidalgo
- 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 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)
New fields (2)
-
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)
New fields (0)
No new fields.
Public methods (2)-
sale_product_domain(self) -
website_domain(self)
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…