Nimesh Contractor(Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-point-of-sale-shp into lp:openobject-addons.
Requested reviews: Atul Patel(OpenERP) (atp-openerp) Related bugs: Bug #1099408 in OpenERP Addons: "[trunk/7.0][PoS frontend] NaN when clicking on the pos frontend back arrow button" https://bugs.launchpad.net/openobject-addons/+bug/1099408 For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-point-of-sale-shp/+merge/146089 Hello, Fix the NaN value problem while clicking on <x| button on num pad , in discount mode and payment mode. Thanks, Nimesh. -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-point-of-sale-shp/+merge/146089 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-point-of-sale-shp.
=== modified file 'point_of_sale/point_of_sale.py' --- point_of_sale/point_of_sale.py 2012-12-06 14:56:32 +0000 +++ point_of_sale/point_of_sale.py 2013-02-01 10:34:54 +0000 @@ -65,7 +65,7 @@ 'iface_print_via_proxy' : fields.boolean('Print via Proxy'), 'state' : fields.selection(POS_CONFIG_STATE, 'Status', required=True, readonly=True), - 'sequence_id' : fields.many2one('ir.sequence', 'Order IDs Sequence', readonly=True, + 'sequence_id' : fields.many2one('ir.sequence', 'Session ID Sequence', readonly=True, help="This sequence is automatically created by OpenERP but you can change it "\ "to customize the reference numbers of your orders."), 'session_ids': fields.one2many('pos.session', 'config_id', 'Sessions'), === modified file 'point_of_sale/static/src/js/models.js' --- point_of_sale/static/src/js/models.js 2013-01-11 14:42:19 +0000 +++ point_of_sale/static/src/js/models.js 2013-02-01 10:34:54 +0000 @@ -804,10 +804,19 @@ }, deleteLastChar: function() { var tempNewBuffer = this.get('buffer').slice(0, -1); - if(!tempNewBuffer){ this.set({ buffer: "0" }); - this.killTarget(); + if (this.get('mode') == "discount"){ + this.trigger('set_value',0); + this.set({mode:"quantity"}) + } + else if (this.get('mode')== "payment"){ + this.trigger('set_value',0); + } + else{ + this.killTarget(); + } + }else{ if (isNaN(tempNewBuffer)) { tempNewBuffer = "0";
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp