Sylvain LE GAL
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
pos_customer_display/static/src/js/screens.js
|
|
@ -12,7 +12,10 @@ odoo.define('pos_customer_display.screens', function (require) { |
|
|
|
screens.PaymentScreenWidget.include({ |
|
|
|
|
|
|
|
render_paymentlines: function() { |
|
|
|
if (this.pos.get_order().get_total_with_tax() === 0) { |
|
|
|
if ( |
|
|
|
!this.pos.get_order() || |
|
|
|
(this.pos.get_order() && this.pos.get_order().get_total_with_tax() === 0) |
|
|
|
) { |
|
|
|
// Render payment is called each time a new order is created
|
|
|
|
// (and so when lauching the PoS)
|
|
|
|
// in that case, we display the welcome message
|
|
|
|