From 7b21d44b0373decb5558945f01d368fa92ebc7bc Mon Sep 17 00:00:00 2001 From: "mga@tinyerp.com" <> Date: Fri, 25 Jul 2008 16:21:46 +0530 Subject: [PATCH] override write method in to the ir.ui.view to store the new customised view for dash board for user bzr revid: mga@tinyerp.com-20080725105146-4ebhtsmhrwxbvpsn --- bin/addons/base/ir/ir_ui_view.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/addons/base/ir/ir_ui_view.py b/bin/addons/base/ir/ir_ui_view.py index f6c0a598b68..48b2ee94ffd 100644 --- a/bin/addons/base/ir/ir_ui_view.py +++ b/bin/addons/base/ir/ir_ui_view.py @@ -70,7 +70,12 @@ class view(osv.osv): _constraints = [ (_check_xml, 'Invalid XML for View Architecture!', ['arch']) ] - + + def write(self, cr, uid, ids, vals, context={}): + print ids, vals + result = super(view, self).write(cr, uid, ids, vals, context) + return result + view() class UserView(osv.osv):