Repository
odoo/odoo · module folder
Module version
1.0
Category
Hidden
Folder size
0.42 MB
License
LGPL-3
Application
No
Auto-installable
Yes
Website
None
Last tracking update
2026-08-08 22:19:36
Authors
Maintainers
None
Committers
Martin Trigaux, Odoo Translation Bot, Aaron Bohy, Yannick Tivisse, Odoo Online, Victor Feyens, Adrien Dieudonné, Samuel Degueldre, Tiffany Chang (tic), Gorash, MerlinGuillaume, Antoine Vandevenne (anv), Demesmaeker, Mathieu Walravens, Valentin Chevalier, Louis Wicket (wil), Thomas Lefebvre (thle), Julien (jula), Mahamadasif Ansari, Tom De Caluwé, Andrew Gavgavian, Valentin Vallaeys (vava), Bruno Boi, Antoine (ande), FrancoisGe, Michael (mcm), Valeriya(vchu), Leloup Loïc (lole), stcc-odoo, Renilkumar Kajavadra, Mahdi Cheikh Rouhou (macr), Eteil Djoumatchoua (etdj), Lina (liew), Louis (wil), Iván Todorovich, Pierre Pulinckx (pipu), Pulinckx Pierre (PIPU), aksi-odoo, shrm-odoo
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
pos_sale_product_configurator, sale_product_configurator_widget_product_label, sale_product_matrix, test_sale_product_configurators, website_sale_product_configurator
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.
    

Code Analysis

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…