[IMP] product: https://blueprints.launchpad.net/openobject-addons/+spec/view-normal-product-category. Added type field for product category.
bzr revid: uco@tinyerp.co.in-20100317061143-642585pn1cy91z2c
This commit is contained in:
parent
49e9a1ee0d
commit
27505b3654
|
@ -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
|
||||
|
|
|
@ -212,6 +212,7 @@
|
|||
<field name="name" select="1"/>
|
||||
<field name="parent_id"/>
|
||||
<field name="sequence"/>
|
||||
<field name="type"/>
|
||||
<newline/>
|
||||
</form>
|
||||
</field>
|
||||
|
|
Loading…
Reference in New Issue