diff --git a/addons/payment_stripe/static/src/js/stripe.js b/addons/payment_stripe/static/src/js/stripe.js index 9db27aea858..a5dec077e7d 100644 --- a/addons/payment_stripe/static/src/js/stripe.js +++ b/addons/payment_stripe/static/src/js/stripe.js @@ -70,9 +70,6 @@ odoo.define('payment_stripe.stripe', function(require) { var currency = $("input[name='currency']").val(); var currency_id = $("input[name='currency_id']").val(); var amount = parseFloat($("input[name='amount']").val() || '0.0'); - if (!_.contains(int_currencies, currency)) { - amount = amount*100; - } ajax.jsonRpc('/website_payment/transaction', 'call', { reference: $("input[name='invoice_num']").val(), @@ -84,14 +81,11 @@ odoo.define('payment_stripe.stripe', function(require) { name: $("input[name='merchant']").val(), description: $("input[name='invoice_num']").val(), currency: currency, - amount: amount, + amount: _.contains(int_currencies, currency) ? amount : amount * 100, }); } else { var currency = $("input[name='currency']").val(); var amount = parseFloat($("input[name='amount']").val() || '0.0'); - if (!_.contains(int_currencies, currency)) { - amount = amount*100; - } ajax.jsonRpc('/shop/payment/transaction/' + acquirer_id, 'call', { so_id: so_id, @@ -102,7 +96,7 @@ odoo.define('payment_stripe.stripe', function(require) { name: $("input[name='merchant']").val(), description: $("input[name='invoice_num']").val(), currency: currency, - amount: amount, + amount: _.contains(int_currencies, currency) ? amount : amount * 100, }); }); } diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 4b6b142cac3..2d61f4b63a9 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -1985,6 +1985,7 @@ var PaymentScreenWidget = ScreenWidget.extend({ invoiced.fail(function(error){ self.invoicing = false; + order.finalized = false; if (error.message === 'Missing Customer') { self.gui.show_popup('confirm',{ 'title': _t('Please select the Customer'), diff --git a/addons/purchase_mrp/__manifest__.py b/addons/purchase_mrp/__manifest__.py index 5fde90cfe08..ce84472e8d9 100644 --- a/addons/purchase_mrp/__manifest__.py +++ b/addons/purchase_mrp/__manifest__.py @@ -8,7 +8,7 @@ 'category': 'Hidden', 'description': """ This module provides facility to the user to install mrp and purchase modules at a time. -==================================================================================== +======================================================================================== It is basically used when we want to keep track of production orders generated from purchase order. diff --git a/addons/web_editor/static/src/js/transcoder.js b/addons/web_editor/static/src/js/transcoder.js index 6b42e028b3a..265ca5ab3f0 100644 --- a/addons/web_editor/static/src/js/transcoder.js +++ b/addons/web_editor/static/src/js/transcoder.js @@ -9,7 +9,7 @@ var getMatchedCSSRules = function (a) { var sheets = document.styleSheets; for(var i = sheets.length-1; i >= 0 ; i--) { var rules; - if (sheets[i].rules) { + if (sheets[i].hasOwnProperty('rules')) { rules = sheets[i].rules; } else { //try...catch because Firefox not able to enumerate document.styleSheets[].cssRules[] for cross-domain stylesheets. diff --git a/addons/website/models/ir_qweb.py b/addons/website/models/ir_qweb.py index 4ecee90fd5e..f9a14d812e5 100644 --- a/addons/website/models/ir_qweb.py +++ b/addons/website/models/ir_qweb.py @@ -26,7 +26,7 @@ class QWeb(models.AbstractModel): def _get_asset(self, xmlid, options, css=True, js=True, debug=False, async=False, values=None): website = getattr(request, 'website', None) if request else None if website and website.cdn_activated: - values = dict(values, url_for=website.get_cdn_url) + values = dict(values or {}, url_for=website.get_cdn_url) return super(QWeb, self)._get_asset(xmlid, options, css, js, debug, async, values) def _website_build_attribute(self, tagName, name, value, options, values): diff --git a/doc/cla/corporate/wt-io-it.md b/doc/cla/corporate/wt-io-it.md new file mode 100644 index 00000000000..491d580c792 --- /dev/null +++ b/doc/cla/corporate/wt-io-it.md @@ -0,0 +1,15 @@ +Austria, 2018-02-06 + +WT-IO-IT GmbH agrees to the terms of the Odoo Corporate Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Wolfgang Taferner wolfgang.taferner@wt-io-it.at https://github.com/wt-io-it + +List of contributors: + +Wolfgang Taferner wolfgang.taferner@wt-io-it.at https://github.com/wtaferner diff --git a/doc/cla/individual/remi-filament.md b/doc/cla/individual/remi-filament.md index b57242f471f..fb602974ade 100644 --- a/doc/cla/individual/remi-filament.md +++ b/doc/cla/individual/remi-filament.md @@ -8,4 +8,4 @@ declaration. Signed, -Rémi CAZENAVE remi@le-filament.com https://github.com/remi-filament +Rémi CAZENAVE 30716308+remi-filament@users.noreply.github.com https://github.com/remi-filament