Browse Source

[imp] web_export_view: export many2many field

pull/2/head
Leonardo Pistone 12 years ago
parent
commit
29cad964e1
  1. 8
      web_export_view/static/js/web_advanced_export.js

8
web_export_view/static/js/web_advanced_export.js

@ -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;
});
}

Loading…
Cancel
Save