* Bug-Fix for the Dashboard
authormga@tinyerp.com <>
Thu, 21 Aug 2008 11:24:25 +0000 (16:54 +0530)
committermga@tinyerp.com <>
Thu, 21 Aug 2008 11:24:25 +0000 (16:54 +0530)
 - changein write method of the ir.ui.view

bzr revid: mga@tinyerp.com-20080821112425-hbkppvql30kmum9t

bin/addons/base/ir/ir_ui_view.py

index 6bf326b..97387b3 100644 (file)
@@ -80,12 +80,13 @@ class view(osv.osv):
         (_check_xml, 'Invalid XML for View Architecture!', ['arch'])
     ]
     
-    def read(self,cr, uid, ids, fields=None, context={}, load='_classic_read'):
+    def read(self, cr, uid, ids, fields=None, context={}, load='_classic_read'):
 
         if not isinstance(ids, (list, tuple)):
             ids = [ids]
 
         result = super(view, self).read(cr, uid, ids, fields, context, load)
+        print '************************** : ',result
         
         for rs in result:
             if rs.get('model') == 'board.board':
@@ -94,6 +95,7 @@ class view(osv.osv):
                 if oview:
                     rs['arch'] = oview[0]['arch']
         
+        
         return result
     
     def write(self, cr, uid, ids, vals, context={}):
@@ -107,7 +109,7 @@ class view(osv.osv):
             vals2 = {'user_id': uid, 'ref_id': ids[0], 'arch': vals.pop('arch')}
 
             # write fields except arch to the `ir.ui.view`
-            result = super(view, self).write(cr, uid, vids, vals, context)
+            result = super(view, self).write(cr, uid, ids, vals, context)
 
             if not vids:
                 self.pool.get('ir.ui.view.custom').create(cr, uid, vals2)