Sylvain LE GAL
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
2 deletions
-
pos_order_to_sale_order/__manifest__.py
-
pos_order_to_sale_order/static/src/js/screens.js
|
|
@ -8,7 +8,7 @@ |
|
|
|
"author": "GRAP,Odoo Community Association (OCA)", |
|
|
|
"category": "Point Of Sale", |
|
|
|
"license": "AGPL-3", |
|
|
|
"depends": ["point_of_sale"], |
|
|
|
"depends": ["point_of_sale", "sale"], |
|
|
|
"maintainers": ["legalsylvain"], |
|
|
|
"development_status": "Production/Stable", |
|
|
|
"website": "https://github.com/OCA/pos", |
|
|
|
|
|
@ -35,7 +35,11 @@ odoo.define('pos_order_to_sale_order.screens', function (require) { |
|
|
|
}, |
|
|
|
|
|
|
|
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; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|