eCommerce product assortment
website_sale_product_assortment · OCA/e-commerce
Health
77/100
good
-
Security22/251 minor finding
-
Activity25/25Last human commit 4 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis
0 migration notes
2 models
2 views
2 HTTP endpoints
Description
This module allows to set e-commerce restrictions on product assortments.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product |
product | ir.ui.view | qweb | Inherits website_sale.product |
product_assortment_view_form |
ir.filters | form | Inherits product_assortment.product_assortment_view_form |
HTTP endpoints 2
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
| (inherited route override) | WebsiteSale.product |
inherited | http | ALL | |
/sale/get_info_assortment_preview |
WebsiteSaleVariantController.get_info_assortment_preview |
public | json | POST | sudo website |
Models touched 2
New fields (6)
-
all_product_idsMany2many → product.productcomodel_name='product.product'compute='_compute_all_product_ids'relation='assortment_all_products' -
apply_on_public_userBoolean -
assortment_informationHtml -
message_unavailableCharhelp="Message showed when some product is not available and the option\n 'Avoid selling not available products' is selected.\n "string='Message when unavailable' -
website_availabilitySelectiondefault='no_restriction'help="\n Each point is used to:\n\n \t- Don't apply restriction: Show all products available for sale on website.\n\n \t- Avoid to show non available products: Show only products available for sale\n on website.\n\n \t- Avoid selling not available products: Show all products, but avoid\n purchase on website.\n\n "required=Trueselection=[('no_restriction', "Don't apply restriction"), ('no_show', 'Avoid to show non available products'), ('no_purchase', 'Avoid selling not available products')]string='Availability on Website' -
website_idsMany2many → websitecomodel_name='website'ondelete='cascade'string='Websites'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
get_product_assortment_restriction_info(self, product_ids)@api.model
Loading…
Loading…
Loading…
Loading…