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
This commit is contained in:
Xavier Morel
2012-02-09 16:48:44 +01:00
parent 80f9a1e770
commit 2d08b98ea4
@@ -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;