[FIX] point_of_sale: set a date and not a datetime

last_session_closing_date is a date field but stop_at us a datetime
This commit is contained in:
Martin Trigaux
2018-08-08 12:24:59 +02:00
parent 87f0d2eefb
commit fb1a8cc19d
+1 -1
View File
@@ -195,7 +195,7 @@ class PosConfig(models.Model):
order="stop_at desc", limit=1)
if session:
pos_config.last_session_closing_cash = session[0]['cash_register_balance_end_real']
pos_config.last_session_closing_date = session[0]['stop_at']
pos_config.last_session_closing_date = session[0]['stop_at'].date()
else:
pos_config.last_session_closing_cash = 0
pos_config.last_session_closing_date = False