[FIX] *: correct some javascript errors
Oversight of previous forward-port.
This commit is contained in:
@@ -70,7 +70,7 @@ odoo.define('payment.processing', function (require) {
|
||||
self.displayContent("payment.rpc_error", {});
|
||||
self.startPolling();
|
||||
});
|
||||
},g
|
||||
},
|
||||
processPolledData: function (transactions) {
|
||||
var render_values = {
|
||||
'tx_draft': [],
|
||||
|
||||
@@ -170,7 +170,7 @@ var OptionalProductsModal = Dialog.extend(ServicesMixin, VariantMixin, {
|
||||
this._priceToStr(parseFloat(price))
|
||||
);
|
||||
}
|
||||
ProductConfiguratorMixin.computePriceTotal.apply(this, arguments);
|
||||
VariantMixin.computePriceTotal.apply(this, arguments);
|
||||
},
|
||||
/**
|
||||
* Returns the list of selected products.
|
||||
@@ -517,4 +517,4 @@ var OptionalProductsModal = Dialog.extend(ServicesMixin, VariantMixin, {
|
||||
|
||||
return OptionalProductsModal;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2608,7 +2608,7 @@ QUnit.module('Views', {
|
||||
QUnit.test('calendar sidebar toggle', async function (assert) {
|
||||
assert.expect(5);
|
||||
|
||||
var calendar = await createView({
|
||||
var calendar = await createCalendarView({
|
||||
View: CalendarView,
|
||||
model: 'event',
|
||||
data: this.data,
|
||||
|
||||
@@ -8133,7 +8133,7 @@ QUnit.module('Views', {
|
||||
form.$('.o_data_row').last(),
|
||||
{position: 'bottom'}
|
||||
);
|
||||
assert.strictEqual(onchangeNum, 3, "one onchange happens when lines are resequenced")
|
||||
assert.strictEqual(onchangeNum, 3, "one onchange happens when lines are resequenced");
|
||||
assert.strictEqual(form.$('[name="foo"]').val(), "1", "onchange worked there is 1 line");
|
||||
|
||||
// Add a second line
|
||||
|
||||
@@ -657,7 +657,7 @@ publicWidget.registry.WebsiteSale = publicWidget.Widget.extend(VariantMixin, {
|
||||
* @override
|
||||
*/
|
||||
_toggleDisable: function ($parent, isCombinationPossible) {
|
||||
ProductConfiguratorMixin._toggleDisable.apply(this, arguments);
|
||||
VariantMixin._toggleDisable.apply(this, arguments);
|
||||
$parent.find("#add_to_cart").toggleClass('disabled', !isCombinationPossible);
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user