[IMP]product: remove a store=True and replace by store=

bzr revid: mma@tinyerp.com-20111220085754-55yt6cy6zvbjzawg
This commit is contained in:
Mayur Maheshwari (OpenERP) 2011-12-20 14:27:54 +05:30
parent b27b984caa
commit f48f886432
1 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,10 @@ class product_category(osv.osv):
_description = "Product Category"
_columns = {
'name': fields.char('Name', size=64, required=True, translate=True),
'complete_name': fields.function(_name_get_fnc, type="char", string='Name',size=256, store=True),
'complete_name': fields.function(_name_get_fnc, type="char", string='Name',size=256,
store={
'product.category': (lambda self, cr, uid, ids, c={}: ids, ['name','parent_id'], 10),
}),
'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."),