[IMP]:Improve code in lunch module

bzr revid: aja@tinyerp.com-20121121071304-i1ce7134f6jlximn
This commit is contained in:
ajay javiya (OpenERP)
2012-11-21 12:43:04 +05:30
parent 902507d67a
commit 0e438f2671
2 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -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.")
+3 -3
View File
@@ -327,8 +327,6 @@
</group>
</group>
<field name='alerts' attrs="{'invisible': ['|',('state','!=','new'),('alerts','=','')]}" class="oe_inline oe_lunch_alert"/>
<div name="preferences">
</div>
<separator string='Select your order'/>
<field name='order_line_ids' nolabel='1' on_change='onchange_price(order_line_ids)'>
<tree string='List' editable='bottom'>
@@ -342,6 +340,8 @@
<group class='oe_subtotal_footer oe_right'>
<field name='total'/>
</group>
<div name="preferences">
</div>
<br/><br/>
</sheet>
</form>
@@ -389,7 +389,7 @@
<field name="name">cashmove tree</field>
<field name="model">lunch.cashmove</field>
<field name="arch" type="xml">
<tree string="cashmove tree">
<tree string="cashmove tree" create="false">
<field name="date"/>
<field name="user_id"/>
<field name="description"/>