Browse Source

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

* [fix] compability between pos_customer_display and pos_pricelist
pull/437/head
gaelTorrecillas 7 years ago
committed by Sylvain LE GAL
parent
commit
faf1c6187b
  1. 2
      pos_customer_display/__manifest__.py
  2. 12
      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)",

12
pos_customer_display/static/src/js/customer_display.js

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

Loading…
Cancel
Save