-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17.0] [MIG] website_product_configurator: Migration to 17.0 #143
base: 17.0
Are you sure you want to change the base?
[17.0] [MIG] website_product_configurator: Migration to 17.0 #143
Conversation
…igurator_mrp : correct method-name, claas-name, arguments
…, replace request.website.render with request.render
…production_lots, fix singleton error(product.config.step.line)
… website_product_configurator_mrp to uninstallable list
…ues in controller
…ata to js in specific json formate
…hange step if required field have not value
…pper function in session for next step and redirect to step if any incomplete step is there
…add 404 from website.
…sion and also get value from get_attribute_value_extra_prices
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-configurator-14.0/product-configurator-14.0-website_product_configurator Translate-URL: https://translation.odoo-community.org/projects/product-configurator-14-0/product-configurator-14-0-website_product_configurator/
1b752da
to
92a1065
Compare
92a1065
to
6e04543
Compare
/ocabot migration website_product_configurator |
6e04543
to
1542af4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work done!
I've a few minor comments, most of which are not blocking
def setUp(self): | ||
super(TestProductConfiguratorValues, self).setUp() | ||
super().setUp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change this to setUpClass
instead.
Looks like the base class is doing it already: https://github.com/OCA/product-configurator/blob/e78af0c423193a6e466f22567377fdcb0e1b9e46/product_configurator/tests/common.py#L5C1-L7C29
@@ -5,11 +5,17 @@ | |||
|
|||
class TestSaleOrder(TestProductConfiguratorValues): | |||
def setUp(self): | |||
super(TestSaleOrder, self).setUp() | |||
super().setUp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change this to setUpClass
instead.
@@ -3,7 +3,7 @@ | |||
|
|||
class TestResConfigSettings(TransactionCase): | |||
def setUp(self): | |||
super(TestResConfigSettings, self).setUp() | |||
super().setUp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should change this to setUpClass
instead.
@@ -0,0 +1,629 @@ | |||
/** @odoo-module **/ | |||
|
|||
import Dialog from "@web/legacy/js/core/dialog"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicking / not-blocking
This legacy Dialog
is deprecated, and completely removed in 18
.
IMO we should migrate to the new @web/core/dialog/dialog
.
|
||
init: function () { | ||
this._super.apply(this, arguments); | ||
this.config_form = $("#product_config_form"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this should be in start
rather than init
And ideally we should use either vanilla-js or this.$
-webkit-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); | ||
-moz-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-webkit-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); | |
-moz-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); |
not needed
-webkit-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); | ||
-moz-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-webkit-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); | |
-moz-filter: brightness(90%) contrast(110%) grayscale(50%) opacity(50%); |
not needed
-webkit-filter: none; | ||
-moz-filter: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-webkit-filter: none; | |
-moz-filter: none; |
not needed
-webkit-filter: none; | ||
-moz-filter: none; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-webkit-filter: none; | |
-moz-filter: none; |
not needed
@@ -0,0 +1,3 @@ | |||
#Odoo Product Configurator | |||
|
|||
This module facilitates to configure product on website. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you replace this with proper "readme section files" under a readme
directory? 🙏🏻
Dependency MR for module product_configurator #141
Dependency MR for module product_configurator_sale #142