diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-11-30 18:43:08 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-11-30 18:43:08 +0100 |
| commit | 42264d8dcb7f8d0795c84718d1fc9a5fd1aefd32 (patch) | |
| tree | 216ded7eac5ba06623892aaaece74c586afd4b5e /addons/pos_discount/static/src/js | |
| parent | e4a281b5a5f7ea44e4f25259b1a84cb0dc437ebc (diff) | |
| parent | 5d7ad2b16cc3ef579a6657822b7c57b07fef4f52 (diff) | |
[MERGE] forward port branch saas-16 up to 5d7ad2b16cc
Diffstat (limited to 'addons/pos_discount/static/src/js')
| -rw-r--r-- | addons/pos_discount/static/src/js/discount.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/pos_discount/static/src/js/discount.js b/addons/pos_discount/static/src/js/discount.js index eadad806fd1..e77e4559e0c 100644 --- a/addons/pos_discount/static/src/js/discount.js +++ b/addons/pos_discount/static/src/js/discount.js @@ -1,14 +1,17 @@ odoo.define('pos_discount.pos_discount', function (require) { "use strict"; +var core = require('web.core'); var screens = require('point_of_sale.screens'); +var _t = core._t; + var DiscountButton = screens.ActionButtonWidget.extend({ template: 'DiscountButton', button_click: function(){ var self = this; this.gui.show_popup('number',{ - 'title': 'Discount Percentage', + 'title': _t('Discount Percentage'), 'value': this.pos.config.discount_pc, 'confirm': function(val) { val = Math.round(Math.max(0,Math.min(100,val))); |
