File tree 2 files changed +3
-2
lines changed
addons/point_of_sale/static/src/js
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1480,7 +1480,7 @@ var PaymentScreenWidget = ScreenWidget.extend({
1480
1480
1481
1481
this . inputbuffer = "" ;
1482
1482
this . firstinput = true ;
1483
- this . decimal_point = instance . web . _t . database . parameters . decimal_point ;
1483
+ this . decimal_point = _t . database . parameters . decimal_point ;
1484
1484
1485
1485
// This is a keydown handler that prevents backspace from
1486
1486
// doing a back navigation
Original file line number Diff line number Diff line change 1
1
odoo . define ( 'point_of_sale.BaseWidget' , function ( require ) {
2
2
"use strict" ;
3
3
4
+ var formats = require ( 'web.formats' ) ;
4
5
var utils = require ( 'web.utils' ) ;
5
6
var Widget = require ( 'web.Widget' ) ;
6
7
@@ -50,7 +51,7 @@ var PosBaseWidget = Widget.extend({
50
51
51
52
if ( typeof amount === 'number' ) {
52
53
amount = round_di ( amount , decimals ) . toFixed ( decimals ) ;
53
- amount = openerp . instances [ this . session . name ] . web . format_value ( parseFloat ( amount ) , { type : 'float' } ) ;
54
+ amount = formats . format_value ( parseFloat ( amount ) , { type : 'float' } ) ;
54
55
}
55
56
56
57
return amount ;
You can’t perform that action at this time.
0 commit comments