summaryrefslogtreecommitdiff
path: root/addons/lunch/models
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2017-04-14 11:07:14 +0200
committerMartin Geubelle <mge@odoo.com>2017-04-19 17:49:34 +0200
commit90d6573579768525e339fa843a906016befd8aab (patch)
tree10913d57432b311cc5c6f6215327b614013f2532 /addons/lunch/models
parent3445597940f4bf7791be8071910c4257254eb700 (diff)
[FIX] lunch: adapt the code to new views
We also adapt the code to comply to the new guidelines and we have added some tests.
Diffstat (limited to 'addons/lunch/models')
-rw-r--r--addons/lunch/models/lunch.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/addons/lunch/models/lunch.py b/addons/lunch/models/lunch.py
index e677b1506cc..b7407ce0386 100644
--- a/addons/lunch/models/lunch.py
+++ b/addons/lunch/models/lunch.py
@@ -99,9 +99,7 @@ class LunchOrder(models.Model):
'supplier': line.supplier.name,
'note': line.note,
'price': line.price,
- 'currency': line.currency_id.symbol,
- 'digits': [69, line.currency_id.decimal_places],
- 'position': line.currency_id.position,
+ 'currency_id': line.currency_id.id,
}
self.previous_order_widget = json.dumps(lunch_data)