Skip to content

Commit

Permalink
[FIX] point_of_sale: consider timezone in return orders
Browse files Browse the repository at this point in the history
Similar to 2157540 for returns
payment_date is a date field, make sure the day is the one of the user

Closes odoo#25342
  • Loading branch information
Invitu authored and mart-e committed Aug 23, 2018
1 parent 01b1830 commit a19d2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/point_of_sale/models/pos_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _process_order(self, pos_order):
cash_journal_id = cash_journal[0].id
order.add_payment({
'amount': -pos_order['amount_return'],
'payment_date': fields.Datetime.now(),
'payment_date': fields.Date.context_today(self),
'payment_name': _('return'),
'journal': cash_journal_id,
})
Expand Down

0 comments on commit a19d2c9

Please sign in to comment.