diff --git a/website_product_configurator/__init__.py b/website_product_configurator/__init__.py index 5a9543a4b8..f7209b1710 100644 --- a/website_product_configurator/__init__.py +++ b/website_product_configurator/__init__.py @@ -1,3 +1,2 @@ from . import models from . import controllers -from . import tests diff --git a/website_product_configurator/__manifest__.py b/website_product_configurator/__manifest__.py index 3e50eb258e..7d1d7b591b 100644 --- a/website_product_configurator/__manifest__.py +++ b/website_product_configurator/__manifest__.py @@ -1,6 +1,6 @@ { "name": "Website Product Configurator", - "version": "14.0.1.2.0", + "version": "16.0.1.0.0", "summary": """Configure products in e-shop""", "author": "Pledra, Odoo Community Association (OCA)", "license": "AGPL-3", @@ -16,11 +16,19 @@ "data/ir_config_parameter_data.xml", "data/config_form_templates.xml", "data/cron.xml", - "views/assets.xml", "views/product_view.xml", "views/templates.xml", "views/res_config_settings_view.xml", ], + "assets": { + "web.assets_frontend": [ + "website_product_configurator/static/src/js/config_form.js", + "website_product_configurator/static/src/js/website_sale.esm.js", + "website_product_configurator/static/src/js/website_config_tour.js", + "website_product_configurator/static/src/scss/config_form.scss", + "website_product_configurator/static/src/scss/tooltip.scss", + ], + }, "demo": ["demo/product_template_demo.xml"], "images": ["static/description/cover.png"], "application": True, diff --git a/website_product_configurator/controllers/main.py b/website_product_configurator/controllers/main.py index eb9eb464ca..2d72029465 100644 --- a/website_product_configurator/controllers/main.py +++ b/website_product_configurator/controllers/main.py @@ -1,4 +1,5 @@ import json +import logging from odoo import http, models from odoo.exceptions import UserError, ValidationError @@ -8,6 +9,8 @@ from odoo.addons.http_routing.models.ir_http import slug from odoo.addons.website_sale.controllers.main import WebsiteSale +_logger = logging.getLogger(__name__) + def get_pricelist(): sale_order = request.env.context.get("sale_order") @@ -467,8 +470,8 @@ def save_configuration( valid = config_session_id.sudo().validate_configuration() if valid: check_next_step = False - except Exception: - pass + except Exception as exc: + _logger.debug(exc, exc_info=True) if check_next_step: result = self.set_config_next_step( config_session_id=config_session_id, diff --git a/website_product_configurator/data/config_form_templates.xml b/website_product_configurator/data/config_form_templates.xml index 9fbdacf12a..e8381b9522 100644 --- a/website_product_configurator/data/config_form_templates.xml +++ b/website_product_configurator/data/config_form_templates.xml @@ -18,14 +18,13 @@ - -