projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c05abdc
)
[FIX] FieldMany2One: avoid displaying a crash when name_getting an invisible many2one...
author
Thibault Delavallée
<tde@openerp.com>
Mon, 27 May 2013 14:49:27 +0000
(16:49 +0200)
committer
Thibault Delavallée
<tde@openerp.com>
Mon, 27 May 2013 14:49:27 +0000
(16:49 +0200)
bzr revid: tde@openerp.com-
20130527144927
-9c9ivhskyiv66fnh
addons/web/static/src/js/view_form.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/view_form.js
b/addons/web/static/src/js/view_form.js
index
1d5c975
..
711f34f
100644
(file)
--- a/
addons/web/static/src/js/view_form.js
+++ b/
addons/web/static/src/js/view_form.js
@@
-3389,6
+3389,11
@@
instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
this.alive(dataset.name_get([self.get("value")])).done(function(data) {
self.display_value["" + self.get("value")] = data[0][1];
self.render_value(true);
+ }).fail( function (data, event) {
+ // avoid displaying crash errors when having an invisible field
+ if (self.get('effective_invisible')) {
+ event.preventDefault();
+ }
});
}
},