fix: error when displaying many2many field without options defined.

This commit is contained in:
Nicolas JEUDY
2013-12-04 09:48:51 +01:00
parent 9d80f56726
commit dbb1b27d1e

View File

@@ -186,7 +186,7 @@ openerp.web_m2x_options = function (instance) {
}
// quick create
if ((typeof self.options.create === 'undefined' && can_create) ||
if ((typeof self.options.create === 'undefined') ||
self.options.create) {
var raw_result = _(data.result).map(function(x) {return x[1];});
@@ -204,7 +204,7 @@ openerp.web_m2x_options = function (instance) {
// create...
if ((typeof self.options.create_edit === 'undefined' && can_create) ||
if ((typeof self.options.create_edit === 'undefined') ||
self.options.create_edit) {
values.push({