[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:
@@ -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) {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user