-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] website_product_configurator_mrp: pre-commit execution
- Loading branch information
1 parent
f4c59f7
commit c752963
Showing
3 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
setup/website_product_configurator_mrp/odoo/addons/website_product_configurator_mrp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../website_product_configurator_mrp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
31 changes: 16 additions & 15 deletions
31
website_product_configurator_mrp/static/src/js/website_sale.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
odoo.define("website_product_configurator_mrp.config_website_sale_mrp", function ( | ||
require | ||
) { | ||
"use strict"; | ||
odoo.define( | ||
"website_product_configurator_mrp.config_website_sale_mrp", | ||
function (require) { | ||
"use strict"; | ||
|
||
var publicWidget = require("web.public.widget"); | ||
require("website_product_configurator.config_website_sale"); | ||
var publicWidget = require("web.public.widget"); | ||
require("website_product_configurator.config_website_sale"); | ||
|
||
publicWidget.registry.WebsiteSale.include({ | ||
_onProductReady: function () { | ||
var $form = this.$form; | ||
this.rootProduct.assembly = $form.find('select[name="assembly"]').val(); | ||
var res = this._super.apply(this, arguments); | ||
return res; | ||
}, | ||
}); | ||
}); | ||
publicWidget.registry.WebsiteSale.include({ | ||
_onProductReady: function () { | ||
var $form = this.$form; | ||
this.rootProduct.assembly = $form.find('select[name="assembly"]').val(); | ||
var res = this._super.apply(this, arguments); | ||
return res; | ||
}, | ||
}); | ||
} | ||
); |