From f5fc4532f2f3c6193913b5845fe2760cececa207 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 6 Nov 2012 10:03:00 +0100 Subject: [PATCH] [IMP] lunch: code review. usability / fixes bzr revid: qdp-launchpad@openerp.com-20121106090300-bk9up9ugprfcyqn4 --- addons/lunch/lunch.py | 2 +- addons/lunch/lunch_view.xml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/addons/lunch/lunch.py b/addons/lunch/lunch.py index 6aef154ad0a..0d224ef3a8e 100644 --- a/addons/lunch/lunch.py +++ b/addons/lunch/lunch.py @@ -79,7 +79,7 @@ class lunch_order(osv.Model): get the alerts to display on the order form """ result = {} - alert_msg = self._default_alerts_get(cr, uid, arg, context=context) + alert_msg = self._default_alerts_get(cr, uid, context=context) for order in self.browse(cr, uid, ids, context=context): if order.state == 'new': result[order.id] = alert_msg diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml index 31540c63e14..32b978dfab0 100644 --- a/addons/lunch/lunch_view.xml +++ b/addons/lunch/lunch_view.xml @@ -37,9 +37,10 @@ search - + + @@ -51,9 +52,11 @@ search - - + + + + @@ -86,11 +89,11 @@ - Your Order + New Order lunch.order form - + Your Orders