From 0e438f26714ca140dd038222299f5df220f0cc3a Mon Sep 17 00:00:00 2001 From: "ajay javiya (OpenERP)" Date: Wed, 21 Nov 2012 12:43:04 +0530 Subject: [PATCH] [IMP]:Improve code in lunch module bzr revid: aja@tinyerp.com-20121121071304-i1ce7134f6jlximn --- addons/lunch/lunch.py | 7 ++++--- addons/lunch/lunch_view.xml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addons/lunch/lunch.py b/addons/lunch/lunch.py index 0d224ef3a8e..49e23129c83 100644 --- a/addons/lunch/lunch.py +++ b/addons/lunch/lunch.py @@ -174,9 +174,10 @@ class lunch_order(osv.Model): if len(pref_ids)==0: #create Elements xml_no_pref_1 = etree.Element("div") - xml_no_pref_1.set('class','oe_inline oe_lunch_intro') - xml_no_pref_2 = etree.Element("h3") - xml_no_pref_2.text = _("This is the first time you order a meal") + xml_no_pref_1.set('class','oe_view_nocontent') + xml_no_pref_2 = etree.Element("p") + xml_no_pref_2.set('class','oe_view_nocontent_create') + xml_no_pref_2.text = _("Click to record your lunch order.") xml_no_pref_3 = etree.Element("p") xml_no_pref_3.set('class','oe_grey') xml_no_pref_3.text = _("Select a product and put your order comments on the note.") diff --git a/addons/lunch/lunch_view.xml b/addons/lunch/lunch_view.xml index ea9356bddc5..81e5cb787fc 100644 --- a/addons/lunch/lunch_view.xml +++ b/addons/lunch/lunch_view.xml @@ -327,8 +327,6 @@ -
-
@@ -342,6 +340,8 @@ +
+


@@ -389,7 +389,7 @@ cashmove tree lunch.cashmove - +