Skip to content
Health
77/100
good
  • Security22/25
    1 minor finding
  • Activity25/25
    Last human commit 4 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 5 Odoo series since 13.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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

Odoo dependencies
Python dependencies
geoip2
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…