-
- Downloads
[IMP] (website_)sale: Allow configuring variants creation on demand
Purpose ======= Product attributes can be configured to create variants "on demand". This means that product.templates having these attributes will only create product.product variant when that combination is actually selected in a sale order/in the web shop. Product attribute values are also improved to handle extra prices and exclusions in all three modes ("never", "on demand", "always") Specification ============= Create variants on demand - add a new mode to generate variants as they are added to the order/cart (needed for big # of combinations managed in the inventory and/or produced in mrp with specific boms) - replace the boolean by a selection radio tooltip for this new field: Always: Variants are generated straight away when the attribute values are combined in the product configuration. Only when the product is added to a sales order: Variants are generated once the combination is selected in the sales order. This is advised when variants are customized on demand and manufactured as such in Odoo. Never: Advised when variants are not needed in Odoo. The selected values just show up in the description of sales order lines. - ability to define attribute extra prices & exclude combinations in all variant modes - if at least one attribute of the product in set to "on demand" mode, generate all the variants "on demand"
Showing
- addons/mrp/models/mrp_bom.py 8 additions, 0 deletionsaddons/mrp/models/mrp_bom.py
- addons/mrp/views/mrp_bom_views.xml 3 additions, 2 deletionsaddons/mrp/views/mrp_bom_views.xml
- addons/product/models/product.py 10 additions, 3 deletionsaddons/product/models/product.py
- addons/product/models/product_attribute.py 12 additions, 5 deletionsaddons/product/models/product_attribute.py
- addons/product/models/product_template.py 42 additions, 15 deletionsaddons/product/models/product_template.py
- addons/product/tests/test_variants.py 1 addition, 1 deletionaddons/product/tests/test_variants.py
- addons/product/views/product_attribute_views.xml 1 addition, 1 deletionaddons/product/views/product_attribute_views.xml
- addons/product/views/product_views.xml 2 additions, 1 deletionaddons/product/views/product_views.xml
- addons/sale/controllers/product_configurator.py 103 additions, 53 deletionsaddons/sale/controllers/product_configurator.py
- addons/sale/models/product_product.py 1 addition, 0 deletionsaddons/sale/models/product_product.py
- addons/sale/models/product_template.py 17 additions, 0 deletionsaddons/sale/models/product_template.py
- addons/sale/models/sale.py 26 additions, 2 deletionsaddons/sale/models/sale.py
- addons/sale/static/src/js/product_configurator_controller.js 83 additions, 20 deletionsaddons/sale/static/src/js/product_configurator_controller.js
- addons/sale/static/src/js/product_configurator_mixin.js 286 additions, 213 deletionsaddons/sale/static/src/js/product_configurator_mixin.js
- addons/sale/static/src/js/product_configurator_modal.js 231 additions, 142 deletionsaddons/sale/static/src/js/product_configurator_modal.js
- addons/sale/views/sale_product_configurator_templates.xml 22 additions, 14 deletionsaddons/sale/views/sale_product_configurator_templates.xml
- addons/sale/views/sale_views.xml 1 addition, 0 deletionsaddons/sale/views/sale_views.xml
- addons/sale/wizard/sale_product_configurator.py 1 addition, 0 deletionsaddons/sale/wizard/sale_product_configurator.py
- addons/sale_management/__manifest__.py 1 addition, 2 deletionsaddons/sale_management/__manifest__.py
- addons/sale_management/static/tests/product_configurator_advanced_test_ui.js 132 additions, 0 deletions...ent/static/tests/product_configurator_advanced_test_ui.js
Loading
Please register or sign in to comment