[IMP]lunch:view Improvement is Done in lunch view

bzr revid: mma@tinyerp.com-20110620113420-ojmy8wgucyrzai3r
This commit is contained in:
mayur maheshwari (Open ERP)
2011-06-20 17:04:20 +05:30
parent f729a005fa
commit cddc1cf0f7
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class lunch_product(osv.osv):
_columns = {
'name': fields.char('Name', size=50, required=True),
'category_id': fields.many2one('lunch.category', 'Category'),
'description': fields.char('Description', size=128, required=False),
'description': fields.text('Description', size=128, required=False),
'price': fields.float('Price', digits=(16,2)),
'active': fields.boolean('Active'),
}
+12 -5
View File
@@ -260,11 +260,18 @@
<field name="model">lunch.product</field>
<field name="arch" type="xml">
<form string="Products">
<field name="name" select="1"/>
<field name="category_id" widget="selection"/>
<field name="description" />
<field name="price" />
<field name="active"/>
<group col="6">
<field name="name" select="1"/>
<field name="category_id" widget="selection"/>
<field name="price" />
</group>
<notebook colspan="4">
<page string="General Information">
<field name="active"/>
<separator colspan="4" />
<field name="description" nolabel="1" colspan="4" />
</page>
</notebook>
</form>
</field>
</record>