From bd4f67db0a450e2fcf272cf9263033a858aed3e6 Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Tue, 19 Jul 2016 12:51:10 -0700 Subject: [PATCH] base_export_manager: Upgrade to v9 * Upgrade base_export_manager to v9 * Rename JS to base_export_manager --- base_export_manager/README.rst | 3 +- base_export_manager/__openerp__.py | 2 +- .../static/description/icon.svg | 79 ------------------- base_export_manager/static/src/js/main.js | 32 -------- base_export_manager/views/ir_exports_view.xml | 7 +- 5 files changed, 6 insertions(+), 117 deletions(-) delete mode 100644 base_export_manager/static/description/icon.svg delete mode 100644 base_export_manager/static/src/js/main.js diff --git a/base_export_manager/README.rst b/base_export_manager/README.rst index 07454a9..4e236a3 100644 --- a/base_export_manager/README.rst +++ b/base_export_manager/README.rst @@ -44,7 +44,8 @@ To manage export profiles, you need to: * Choose a name. * Choose a model (table in the database). * Choose the fields to export. - * If you choose a related field, you can choose also up to 3 levels of subfields. + * If you choose a related field, you can choose also up to 3 levels of + subfields. * You can drag & drop to reorder the fields. To use one of those profiles, you need to: diff --git a/base_export_manager/__openerp__.py b/base_export_manager/__openerp__.py index b5a9be9..7bb0788 100644 --- a/base_export_manager/__openerp__.py +++ b/base_export_manager/__openerp__.py @@ -5,7 +5,7 @@ { 'name': "Manage model export profiles", 'category': 'Personalization', - 'version': '9.0.1.1.0', + 'version': '9.0.1.0.0', 'depends': [ 'web', ], diff --git a/base_export_manager/static/description/icon.svg b/base_export_manager/static/description/icon.svg deleted file mode 100644 index a7a26d0..0000000 --- a/base_export_manager/static/description/icon.svg +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - image/svg+xml - - - - - - - - - - - diff --git a/base_export_manager/static/src/js/main.js b/base_export_manager/static/src/js/main.js deleted file mode 100644 index 43d04a5..0000000 --- a/base_export_manager/static/src/js/main.js +++ /dev/null @@ -1,32 +0,0 @@ -/* © 2015 Antiun Ingeniería S.L. - Antonio Espinosa - * License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). */ - -// Check jQuery available -if (typeof jQuery === 'undefined') { throw new Error('Requires jQuery') } - -+function ($) { - 'use strict'; - - openerp.base_exports_manager = function(instance, local) { - var _t = instance.web._t, - _lt = instance.web._lt; - var QWeb = instance.web.qweb; - - instance.web.DataExport.include({ - do_load_export_field: function(field_list) { - var export_node = this.$el.find("#fields_list"); - _(field_list).each(function (field) { - export_node.append(new Option(field.label + ' (' + field.name + ')', field.name)); - }); - }, - add_field: function(field_id, string) { - var field_list = this.$el.find('#fields_list'); - if (this.$el.find("#fields_list option[value='" + field_id + "']") - && !this.$el.find("#fields_list option[value='" + field_id + "']").length) { - field_list.append(new Option(string + ' (' + field_id + ')', field_id)); - } - }, - }); - } - -}(jQuery); diff --git a/base_export_manager/views/ir_exports_view.xml b/base_export_manager/views/ir_exports_view.xml index a9b9b9a..106948f 100644 --- a/base_export_manager/views/ir_exports_view.xml +++ b/base_export_manager/views/ir_exports_view.xml @@ -1,8 +1,8 @@ - - + + Export Profiles @@ -81,5 +81,4 @@ - - +