Browse Source

AJout creation transaction apres article enlevé de la balance

12.0
Juliana 4 years ago
parent
commit
c43826d0d8
  1. 9
      static/src/js/container.js

9
static/src/js/container.js

@ -157,7 +157,7 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require)
'widget': ConfirmationScreen,
});
// Add the FloorScreen to the GUI, and set it as the default screen
// Add the Presentation to the GUI, and set it as the default screen
chrome.Chrome.include({
build_widgets: function(){
this._super();
@ -177,7 +177,7 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require)
});
// We need to modify the OrderSelector to hide itself when we're on
// the floor plan
// the floor plan ?
chrome.OrderSelectorWidget.include({
hide: function(){
@ -209,7 +209,6 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require)
$("#pos-topheader-scale").addClass('oe_hidden');
var screen = this.gui.screen_instances['products'];
// screen.$el.removeClass('oe_hidden');
},
show: function(){
@ -351,8 +350,6 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require)
show: function(){
// $("#validation-bloc").removeClass('oe_hidden');
// this._super();
var self = this;
var queue = this.pos.proxy_queue;
@ -394,7 +391,7 @@ odoo.define('vracoop_pos_free_balance_V2.container_balance', function (require)
self.set_price(scale_answer.price);
if ((scale_answer.error === '30' || scale_answer.error === '31') && scale_answer.weight !== 0) {
self.gui.show_screen(self.next_screen);
// add product *after* switching screen to scroll properly
self.create_transaction();
self.order_product();
}
});

Loading…
Cancel
Save