|
|
@ -43,7 +43,7 @@ class PosTransaction(models.Model): |
|
|
|
@api.depends('write_date') |
|
|
|
def _compute_date_iso(self): |
|
|
|
for transaction in self: |
|
|
|
# date_iso = pytz.utc.localize(transaction.write_date).astimezone(timezone('Europe/Berlin')) |
|
|
|
# print("---date_iso ---", str(date_iso)) |
|
|
|
if hasattr(transaction.write_date, 'isoformat'): |
|
|
|
transaction.date_iso = transaction.write_date.isoformat('T')[:19] |
|
|
|
date_iso = pytz.utc.localize(transaction.write_date).astimezone(pytz.timezone('Europe/Paris')) |
|
|
|
transaction.date_iso = date_iso.isoformat('T')[:19] |