[FIX] point_of_sale: format date on receipt

The date printed on the receipt is not printed according to the language
settings.

opw-769862
This commit is contained in:
Nicolas Martinelli
2017-09-18 10:03:27 +02:00
parent c2f2bea6c5
commit 6b511f38c0
2 changed files with 3 additions and 1 deletions
@@ -1943,6 +1943,8 @@ exports.Order = Backbone.Model.extend({
initialize_validation_date: function () {
this.validation_date = new Date();
this.formatted_validation_date = formats.format_value(
this.validation_date, {type: 'datetime'});
},
set_tip: function(tip) {
+1 -1
View File
@@ -1402,7 +1402,7 @@
<t t-name="PosTicket">
<div class="pos-sale-ticket">
<div class="pos-center-align"><t t-esc="moment().format('L LT')"/> <t t-esc="order.name"/></div>
<div class="pos-center-align"><t t-esc="order.formatted_validation_date"/> <t t-esc="order.name"/></div>
<br />
<t t-esc="widget.pos.company.name"/><br />
<div class="receipt-phone">