-
-
Notifications
You must be signed in to change notification settings - Fork 84
[18.0] [MIG] product_configurator_mrp: Migration to 18.0 #154
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
base: 18.0
Are you sure you want to change the base?
[18.0] [MIG] product_configurator_mrp: Migration to 18.0 #154
Conversation
de translations of product_configurator (Pledra)
* Flake8 fixes
…igurator_mrp : correct method-name, claas-name, arguments
…production_lots, fix singleton error(product.config.step.line)
…igurator_mrp : correct method-name, claas-name, arguments
…production_lots, fix singleton error(product.config.step.line)
This commit fixes the error received when finishing a configuration and it tries to create or write of the mrp order
…ible when not in draft state
[IMP] Add Bom Line if no config_id [FIX] Removed unused UserError [IMP] Better config set attribute matching [FIX] Travis [IMP] Don't create bom if no bom lines [FIX] no bom line if
…t should copy over the operations from the master BOM
Co-authored-by: Daniel Reis <[email protected]>
Correction of bug access key "product_qty" not in dictionary
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: product-configurator-16.0/product-configurator-16.0-product_configurator_mrp Translate-URL: https://translation.odoo-community.org/projects/product-configurator-16-0/product-configurator-16-0-product_configurator_mrp/
Currently translated at 100.0% (47 of 47 strings) Translation: product-configurator-16.0/product-configurator-16.0-product_configurator_mrp Translate-URL: https://translation.odoo-community.org/projects/product-configurator-16-0/product-configurator-16-0-product_configurator_mrp/it/
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!
non-blocking comments, pre-approving
patch(FormController.prototype, {}); | ||
applyConfigButtonMixin(FormController.prototype, ".o_form_button_create_config"); |
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.
With the current mixin approach, patch
seems pointless here, isn't it?
I would recommend, though, rather than removing it, do a refactoring on the mixin to return a patch-like object and use it (roughly) like this:
// config_button_mixin.esm.js
export function ConfigButtonMixin(buttonSelector) {
return {
setup() {
super.setup();
// do stuff
},
async _onConfigure() {
// do stuff
}
}
}
// form_controller.esm.js
patch(FormController.prototype, ConfigButtonMixin(".o_form_button_create_config"))
Here's an example of this pattern in upstream code: https://github.com/odoo/odoo/blob/0bc69d757f7c3429c6112aa5aaa1ceb999428189/addons/mail/static/src/js/onchange_on_keydown.js#L42
import {patch} from "@web/core/utils/patch"; | ||
|
||
patch(KanbanController.prototype, {}); | ||
applyConfigButtonMixin(KanbanController.prototype, ".o-kanban-button-new_config"); |
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.
Same comment
import {patch} from "@web/core/utils/patch"; | ||
|
||
patch(ListController.prototype, {}); | ||
applyConfigButtonMixin(ListController.prototype, ".o_list_button_add_config"); |
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.
Same
"Please inform the administrator/manager. [Product: {}]" | ||
).format(product_name) |
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.
"Please inform the administrator/manager. [Product: {}]" | |
).format(product_name) | |
"Please inform the administrator/manager. [Product: %s]", | |
product_name | |
) |
a4d6c21
to
bde2dab
Compare
@ivantodorovich Thank you for the review. changes are done. |
Dependency PR for module product_configurator #150