Repository
OCA/e-commerce · module folder · Try on Runboat
Module version
1.1.1
Category
Website
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/e-commerce
Last tracking update
2026-08-07 08:42:55
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
CarlosRoca13, Pilar Vargas, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None
Description
This module allows to set e-commerce restrictions on product
assortments.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
(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_ids Many2many → product.product
    comodel_name='product.product' compute='_compute_all_product_ids' relation='assortment_all_products'
  • apply_on_public_user Boolean
  • assortment_information Html
  • message_unavailable Char
    help="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_availability Selection
    default='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=True selection=[('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_ids Many2many → website
    comodel_name='website' ondelete='cascade' string='Websites'
Public methods (0)

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…