[MERGE] lunch usability imp
bzr revid: qdp-launchpad@openerp.com-20110621141936-sf3b5bs2a1oecyde
This commit is contained in:
commit
2ba9ac9ed3
|
@ -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'),
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue