bzr revid: uco@tinyerp.co.in-20100317061143-642585pn1cy91z2c
This commit is contained in:
uco (OpenERP) 2010-03-17 11:41:43 +05:30
parent 49e9a1ee0d
commit 27505b3654
2 changed files with 7 additions and 0 deletions

View File

@ -208,7 +208,13 @@ class product_category(osv.osv):
'parent_id': fields.many2one('product.category','Parent Category', select=True),
'child_id': fields.one2many('product.category', 'parent_id', string='Child Categories'),
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of product categories."),
'type': fields.selection([('view','View'), ('normal','Normal')], 'Category Type'),
}
_defaults = {
'type' : lambda *a : 'normal',
}
_order = "sequence"
def _check_recursion(self, cr, uid, ids):
level = 100

View File

@ -212,6 +212,7 @@
<field name="name" select="1"/>
<field name="parent_id"/>
<field name="sequence"/>
<field name="type"/>
<newline/>
</form>
</field>