Browse Source

[FIX] pos_order_to_sale_order : make the module working if get_order() is null, that occures if pos_restaurant is installed

pull/539/head
Sylvain LE GAL 4 years ago
parent
commit
1826782e51
  1. 4
      pos_order_to_sale_order/static/src/js/screens.js

4
pos_order_to_sale_order/static/src/js/screens.js

@ -35,7 +35,11 @@ odoo.define('pos_order_to_sale_order.screens', function (require) {
}, },
is_visible: function () { is_visible: function () {
if (this.pos.get_order()){
return this.pos.get_order().orderlines.length > 0; return this.pos.get_order().orderlines.length > 0;
} else {
return false;
}
}, },
}); });

Loading…
Cancel
Save