[fix] minor problem in m2o
lp bug: https://launchpad.net/bugs/923898 fixed bzr revid: nicolas.vanhoren@openerp.com-20120228144024-ihavt9si03lorzsu
This commit is contained in:
parent
f1280e67f2
commit
74efca03cc
|
@ -1938,9 +1938,13 @@ openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({
|
|||
$cmenu.append(QWeb.render("FieldMany2One.context_menu", {widget: self}));
|
||||
var bindings = {};
|
||||
bindings[self.cm_id + "_search"] = function() {
|
||||
if (self.readonly)
|
||||
return;
|
||||
self._search_create_popup("search");
|
||||
};
|
||||
bindings[self.cm_id + "_create"] = function() {
|
||||
if (self.readonly)
|
||||
return;
|
||||
self._search_create_popup("form");
|
||||
};
|
||||
bindings[self.cm_id + "_open"] = function() {
|
||||
|
|
Loading…
Reference in New Issue