diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 89c51e5d705d15e339f5d69fbf03b9e7a0e3222e..bd6bc17a78e13ee8c3f77bb9dec941708b037466 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -574,6 +574,7 @@ class pos_order(osv.osv): 'lines': [process_line(l) for l in ui_order['lines']] if ui_order['lines'] else False, 'pos_reference':ui_order['name'], 'partner_id': ui_order['partner_id'] or False, + 'date_order': ui_order['creation_date'] } def _payment_fields(self, cr, uid, ui_paymentline, context=None): diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js index ca1b051d0f2f482bfde2e4188a4eb0e8138bc9da..0e790027e4438a24ea94c3b649594ae21d3d506a 100644 --- a/addons/point_of_sale/static/src/js/models.js +++ b/addons/point_of_sale/static/src/js/models.js @@ -1523,6 +1523,7 @@ exports.Order = Backbone.Model.extend({ user_id: this.pos.cashier ? this.pos.cashier.id : this.pos.user.id, uid: this.uid, sequence_number: this.sequence_number, + creation_date: this.creation_date, }; }, export_for_printing: function(){