[IMP]product: remove a store=True and replace by store=
authorMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Tue, 20 Dec 2011 08:57:54 +0000 (14:27 +0530)
committerMayur Maheshwari (OpenERP) <mma@tinyerp.com>
Tue, 20 Dec 2011 08:57:54 +0000 (14:27 +0530)
bzr revid: mma@tinyerp.com-20111220085754-55yt6cy6zvbjzawg

addons/product/product.py

index 6b66c0c..36aeebd 100644 (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."),