Skip to content
Health
87/100
good
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 19 months ago
  • Required by25/25
    5 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
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.42 MB
Module directory on disk
Code analysis 0 migration notes 2 models 2 views 4 HTTP endpoints

Description

Technical module: The main purpose is to override the sale_order view to allow configuring products in the SO form.

It also enables the "optional products" feature.

Dependencies

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_template_view_form product.template.form.inherit.sale.product.configurator product.template form Inherits product.product_template_form_view
sale_order_view_form sale.order.form.inherit.sale.product.configurator sale.order form Inherits sale.view_order_form

HTTP endpoints 4

Route(s)HandlerAuthTypeMethodsFlags
/sale_product_configurator/get_values ProductConfiguratorController.get_product_configurator_values user json ALL
/sale_product_configurator/create_product ProductConfiguratorController.sale_product_configurator_create_product user json ALL
/sale_product_configurator/get_optional_products ProductConfiguratorController.sale_product_configurator_get_optional_products user json ALL
/sale_product_configurator/update_combination ProductConfiguratorController.sale_product_configurator_update_combination user json ALL

Models touched 2

New fields (1)
  • optional_product_ids Many2many → product.template
    check_company=True column1='src_id' column2='dest_id' comodel_name='product.template' help='Optional Products are suggested whenever the customer hits *Add to Cart* (cross-sell strategy, e.g. for computers: warranty, software, etc.).' relation='product_optional_rel' string='Optional Products'
Public methods (1)
  • get_single_product_variant(self)
    Method used by the product configurator to check if the product is configurable or not. We need to open the product configurator if the product: - is configurable (see has_configurable_attributes) - has optional products

New fields (2)
  • is_configurable_product Boolean
    depends=['product_id'] related='product_template_id.has_configurable_attributes' string='Is the product configurable?'
  • product_template_attribute_value_ids Many2many
    depends=['product_id'] related='product_id.product_template_attribute_value_ids'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…