[FIX] pos_discount: missing translation
opw-783101
This commit is contained in:
committed by
Nicolas Martinelli
parent
0d5ac92ff0
commit
5548b2ff7a
@@ -28,7 +28,10 @@ msgid "Discount"
|
||||
msgstr ""
|
||||
|
||||
#. module: pos_discount
|
||||
#. openerp-web
|
||||
#: code:addons/pos_discount/static/src/js/discount.js:14
|
||||
#: model:ir.model.fields,field_description:pos_discount.field_pos_config_discount_pc
|
||||
#, python-format
|
||||
msgid "Discount Percentage"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user