Browse Source

[fix] compability between pos_customer_display and pos_pricelist (#210)

* [fix] compability between pos_customer_display and pos_pricelist
pull/214/head
gaelTorrecillas 7 years ago
committed by Stefan Rijnhart (Opener)
parent
commit
a1f90f209c
  1. 2
      pos_customer_display/__manifest__.py
  2. 6
      pos_customer_display/static/src/js/customer_display.js

2
pos_customer_display/__manifest__.py

@ -5,7 +5,7 @@
{
'name': 'POS Customer Display',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'category': 'Point Of Sale',
'summary': 'Manage Customer Display device from POS front end',
'author': "Aurélien DUMAINE,Akretion,Odoo Community Association (OCA)",

6
pos_customer_display/static/src/js/customer_display.js

@ -203,8 +203,10 @@ odoo.define('pos_customer_display', function(require) {
var res = OrderlineSuper.prototype.set_quantity.call(this, quantity);
if (quantity != 'remove') {
var line = this;
if(this.selected){
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
}
}
return res;
},
@ -212,15 +214,19 @@ odoo.define('pos_customer_display', function(require) {
var res = OrderlineSuper.prototype.set_discount.call(this, discount);
if (discount) {
var line = this;
if(this.selected){
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
}
}
return res;
},
set_unit_price: function(price){
var res = OrderlineSuper.prototype.set_unit_price.call(this, price);
var line = this;
if(this.selected){
this.pos.prepare_text_customer_display('add_update_line', {'line': line});
}
return res;
},

Loading…
Cancel
Save