[MERGE] lunch usability imp

bzr revid: qdp-launchpad@openerp.com-20110621141936-sf3b5bs2a1oecyde
This commit is contained in:
Quentin (OpenERP) 2011-06-21 16:19:36 +02:00
commit 2ba9ac9ed3
2 changed files with 13 additions and 6 deletions

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'),
}

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 string="Description" colspan="4" />
<field name="description" nolabel="1" colspan="4" />
</page>
</notebook>
</form>
</field>
</record>