Browse Source

[imp] web_export_view: export many2many field

pull/2/head
Leonardo Pistone 12 years ago
committed by Guewen Baconnier
parent
commit
27ff2e4a26
  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 view = this.widget_parent; // valid for list view
if (view.widget_children) { if (view.widget_children) {
view.widget_children.every(function(child) { 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; view = child.viewmanager.views.list.controller;
return false; // break out of the loop 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; return true;
}); });
} }

Loading…
Cancel
Save