summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-02-09 16:48:44 +0100
committerXavier Morel <xmo@openerp.com>2012-02-09 16:48:44 +0100
commit2d08b98ea4735dfaa54eac2ffd6c6b780bb02e66 (patch)
treee47c9c5162b3260094d4030aaa28e402969979a3
parent80f9a1e7702e06407b3d89da8b618392777d64bd (diff)
[FIX] bug introduced during xmo@openerp.com-20120208130738-pr92lh9qotki71o4
Change made registry inheritance "lazy", keeping a permanent relation between child and parent and walking the tree to find matches. But editable listviews relied on an implementation detail (that an extension eagerly created keys in the children registry) and iterated over the internal map of the child registry they'd just created to replace the form keys with overridden versions of the form widgets. Just iterate over form's registry, but really the editable list should have its own Registry subclass doing that stuff more solidly. bzr revid: xmo@openerp.com-20120209154844-zk2xuxdhhi57eqhp
-rw-r--r--addons/web/static/src/js/view_list_editable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js
index 3eae086539b..c7222455889 100644
--- a/addons/web/static/src/js/view_list_editable.js
+++ b/addons/web/static/src/js/view_list_editable.js
@@ -395,7 +395,7 @@ openerp.web.list_editable = function (openerp) {
// former should completely remove the cell. We need to override update_dom
// on all widgets since we can't just hit on widget itself (I think)
var list_form_widgets = openerp.web.list.form.widgets;
- _(list_form_widgets.map).each(function (widget_path, key) {
+ _(form_widgets.map).each(function (widget_path, key) {
if (key === 'frame') { return; }
var new_path = 'openerp.web.list.form.' + key;