From a1e39f8d75ef757f6dd3380decdd650c72557190 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 4 Jan 2013 15:00:00 +0100 Subject: [PATCH] [FIX] py.js: add the name of value to display error when debugging. bzr revid: chm@openerp.com-20130104140000-22t1wj95jp7ro2ho --- addons/web/static/lib/py.js/lib/py.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/web/static/lib/py.js/lib/py.js b/addons/web/static/lib/py.js/lib/py.js index 4ef92b40112..8d6443b7753 100644 --- a/addons/web/static/lib/py.js/lib/py.js +++ b/addons/web/static/lib/py.js/lib/py.js @@ -521,7 +521,7 @@ var py = {}; } }; py.PY_getAttr = function (o, attr_name) { - return PY_ensurepy(o.__getattribute__(attr_name)); + return PY_ensurepy(o.__getattribute__(attr_name),attr_name); }; py.PY_str = function (o) { var v = o.__str__(); @@ -998,7 +998,7 @@ var py = {}; } var t = py.PY_call(py.tuple); for(var i=0; i