summaryrefslogtreecommitdiff
path: root/addons/lunch/models
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2018-08-10 13:31:42 +0200
committerMartin Trigaux <mat@odoo.com>2018-08-10 13:31:42 +0200
commit78c9084ea207a043e9ae5494292190acf37830f3 (patch)
tree3bb8907c4a9da00faaac90c85c7f08ac821d3895 /addons/lunch/models
parentfd02fec8d8d0dc73d2403cef540922dc25534e93 (diff)
[FIX] lunch: convert date to string
To properly dump it in json
Diffstat (limited to 'addons/lunch/models')
-rw-r--r--addons/lunch/models/lunch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/lunch/models/lunch.py b/addons/lunch/models/lunch.py
index 4decde206fd..70b468367a4 100644
--- a/addons/lunch/models/lunch.py
+++ b/addons/lunch/models/lunch.py
@@ -101,7 +101,7 @@ class LunchOrder(models.Model):
'supplier': line.supplier.name,
'note': line.note,
'price': line.price,
- 'date': line.date,
+ 'date': fields.Date.to_string(line.date),
'currency_id': line.currency_id.id,
}
# sort the old lunch orders by (date, id)