[FIX] point_of_sale: Correct the return payment date

When registering payment, we display now the date + time instead just the date.

closes odoo/odoo#58667

X-original-commit: eb534d078dcdf58aedf09131dd57c8f6da69a910
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
Robin Heinz
2020-09-28 12:09:07 +00:00
parent 9de59048a1
commit cfa89c54d3
+1 -1
View File
@@ -178,7 +178,7 @@ class PosOrder(models.Model):
'name': _('return'),
'pos_order_id': order.id,
'amount': -pos_order['amount_return'],
'payment_date': fields.Date.context_today(self),
'payment_date': fields.Datetime.now(),
'payment_method_id': cash_payment_method.id,
'is_change': True,
}