[FIX] problem that made the partners view crash

bzr revid: nicolas.vanhoren@openerp.com-20120622143320-5auneze02g29hvzi
This commit is contained in:
niv-openerp 2012-06-22 16:33:20 +02:00
parent a139c6fc6c
commit 83d27ba827
1 changed files with 3 additions and 0 deletions

View File

@ -510,6 +510,9 @@ instance.web.FormView = instance.web.View.extend(instance.web.form.FieldManagerM
}
if (result.domain) {
function edit_domain(node) {
if (typeof node !== "object") {
return;
}
var new_domain = result.domain[node.attrs.name];
if (new_domain) {
node.attrs.domain = new_domain;