diff options
| author | Pierre Masereel <pim@odoo.com> | 2020-01-31 13:08:42 +0000 |
|---|---|---|
| committer | Pierre Masereel <pim@odoo.com> | 2020-06-10 17:54:54 +0000 |
| commit | 09cfde14bd086bd190a8c34a157557fa363d0438 (patch) | |
| tree | 98ea6bbc36839a8b4c97a0c47f9892db97bfcbd5 /addons/point_of_sale/static/src/js/models.js | |
| parent | 152b3464c0342d9b59279ca0a454b84715c6c2b8 (diff) | |
[IMP] point_of_sale: responsive UI
The point of sale user interface has been adapted to work on mobile
devices.
We modified the design of payment lines to look like payment methods and
stack them together in the mobile view.
When you had a cash method, the amount was not preffilled during
payment, now we always prefill the amount to keep it more simple.
closes odoo/odoo#51891
Task-id: 1887609
Related: odoo/upgrade#1334
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/static/src/js/models.js')
| -rw-r--r-- | addons/point_of_sale/static/src/js/models.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index 1a8d5fad652..459ac9138d5 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -2845,9 +2845,7 @@ exports.Order = Backbone.Model.extend({ add_paymentline: function(payment_method) { this.assert_editable(); var newPaymentline = new exports.Paymentline({},{order: this, payment_method:payment_method, pos: this.pos}); - if(!payment_method.is_cash_count || this.pos.config.iface_precompute_cash){ - newPaymentline.set_amount(this.get_due() ); - }; + newPaymentline.set_amount(this.get_due()); this.paymentlines.add(newPaymentline); this.select_paymentline(newPaymentline); return newPaymentline; |
