diff options
| author | Victor Feyens <vfe@odoo.com> | 2019-05-14 14:46:56 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2019-06-06 06:52:26 +0000 |
| commit | ebc64a089a3d394d6c985378e6a549857d094daf (patch) | |
| tree | 1c4cbd1511e08e8ab3fcdf67838f61bb71f4ca5b /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 154703d21c9609c8d45f3a7997dab575c2bc6983 (diff) | |
[REF] product_configurator
Purposes:
* Remove bridge module event_sale_product_configurator
* Ease developement of product configurators AND product-based sale_order_line configurators
* Fix the tests for those extensions
* Note that despite the widget being extensible, the tests from the other configurators can easily crash when other configurators are installed because of query counts or limited data available in tests environments.
Technical clarifications:
A main product_configurator widget base in odoo/addons/sale, set on the product_product and product_template on the sale_order_line inline list, providing:
* 5 hooks:
* _onTemplateChange for product_product configurators based on product templates
* _onProductChange for sale_order_line configurators based on product_product
Those two hooks are expected to return a boolean promise to know whether the line has been configured or not, avoiding the opening of multiple wizards.
* _isConfigurableProduct
* _isConfigurableLine
If true, a pencil button is shown next to the product/product_template, calling _onEditProductConfiguration when clicked.
* _onEditProductConfiguration
Called when clicking on edit pencil button.
Examples :
Product configurator : odoo/addons/sale_product_configurator module --> product_configurator (true one, the one in sale doesn't do anything until extended)
Sale Order Line configurator : odoo/addons/event_sale/ --> event_configurator, future rental configurator
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
