Browse Source

Merge 1826782e51 into 45a15ac568

pull/539/merge
Sylvain LE GAL 4 years ago
committed by GitHub
parent
commit
bfd1396d79
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pos_order_to_sale_order/__manifest__.py
  2. 6
      pos_order_to_sale_order/static/src/js/screens.js

2
pos_order_to_sale_order/__manifest__.py

@ -8,7 +8,7 @@
"author": "GRAP,Odoo Community Association (OCA)", "author": "GRAP,Odoo Community Association (OCA)",
"category": "Point Of Sale", "category": "Point Of Sale",
"license": "AGPL-3", "license": "AGPL-3",
"depends": ["point_of_sale"],
"depends": ["point_of_sale", "sale"],
"maintainers": ["legalsylvain"], "maintainers": ["legalsylvain"],
"development_status": "Production/Stable", "development_status": "Production/Stable",
"website": "https://github.com/OCA/pos", "website": "https://github.com/OCA/pos",

6
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 () {
return this.pos.get_order().orderlines.length > 0;
if (this.pos.get_order()){
return this.pos.get_order().orderlines.length > 0;
} else {
return false;
}
}, },
}); });

Loading…
Cancel
Save