diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-08-10 13:31:42 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-08-10 13:31:42 +0200 |
| commit | 78c9084ea207a043e9ae5494292190acf37830f3 (patch) | |
| tree | 3bb8907c4a9da00faaac90c85c7f08ac821d3895 | |
| parent | fd02fec8d8d0dc73d2403cef540922dc25534e93 (diff) | |
[FIX] lunch: convert date to string
To properly dump it in json
| -rw-r--r-- | addons/lunch/models/lunch.py | 2 |
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) |
