[imp] web_export_view: export many2many field

pull/2/head
Leonardo Pistone 2013-05-24 13:28:51 +02:00
parent 3dfd8db6f8
commit 29cad964e1
1 changed files with 5 additions and 3 deletions

View File

@ -66,12 +66,14 @@ openerp.web_export_view = function(openerp) {
view = this.widget_parent; // valid for list view
if (view.widget_children) {
view.widget_children.every(function(child) {
if (child.field && (
child.field.type == 'many2many'
|| child.field.type == 'one2many')) {
if (child.field && child.field.type == 'one2many') {
view = child.viewmanager.views.list.controller;
return false; // break out of the loop
}
if (child.field && child.field.type == 'many2many') {
view = child.list_view;
return false; // break out of the loop
}
return true;
});
}