diff --git a/base_export_manager/README.rst b/base_export_manager/README.rst index be8bf9c..13c9b44 100644 --- a/base_export_manager/README.rst +++ b/base_export_manager/README.rst @@ -44,6 +44,7 @@ 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 4 levels of subfields. * You can drag & drop to reorder the fields. @@ -86,10 +87,10 @@ Credits Contributors ------------ -* Antonio Espinosa * Javier Iniesta -* Rafael Blasco -* Jairo Llopis +* Antonio Espinosa +* Rafael Blasco +* Jairo Llopis * Dave Lasley * Sandip Mangukiya * Maxime Chambreuil diff --git a/base_export_manager/__manifest__.py b/base_export_manager/__manifest__.py index a99f74e..1607048 100644 --- a/base_export_manager/__manifest__.py +++ b/base_export_manager/__manifest__.py @@ -10,7 +10,6 @@ 'web', ], 'data': [ - 'data/ir_exports_data.xml', 'views/assets.xml', 'views/ir_exports.xml', 'views/ir_model.xml', @@ -20,12 +19,11 @@ 'qweb': [ "static/src/xml/base.xml", ], - 'author': 'Antiun IngenierĂ­a S.L., ' - 'Tecnativa, ' + 'author': 'Tecnativa, ' 'LasLabs, ' 'Ursa Information Systems, ' 'Odoo Community Association (OCA)', - 'website': 'http://www.antiun.com', + 'website': 'https://www.tecnativa.com', 'license': 'AGPL-3', 'installable': True, 'application': False, diff --git a/base_export_manager/migrations/8.0.2.1.0/post-migrate.py b/base_export_manager/migrations/8.0.2.1.0/post-migrate.py deleted file mode 100644 index 146b535..0000000 --- a/base_export_manager/migrations/8.0.2.1.0/post-migrate.py +++ /dev/null @@ -1,9 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2016 Jairo Llopis -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.addons.base_export_manager import post_init_hook - - -def migrate(cr, version): - """When updating, now you need the post_init_hook.""" - post_init_hook(cr, None) diff --git a/base_export_manager/models/ir_exports_line.py b/base_export_manager/models/ir_exports_line.py index 9d901c2..d9292f7 100644 --- a/base_export_manager/models/ir_exports_line.py +++ b/base_export_manager/models/ir_exports_line.py @@ -3,8 +3,7 @@ # Copyright 2015-2016 Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import models, fields, api, exceptions -from odoo.tools.translate import _ +from odoo import _, models, fields, api, exceptions class IrExportsLine(models.Model): diff --git a/base_export_manager/static/src/js/base_export_manager.js b/base_export_manager/static/src/js/base_export_manager.js index e24d15e..b31e5df 100644 --- a/base_export_manager/static/src/js/base_export_manager.js +++ b/base_export_manager/static/src/js/base_export_manager.js @@ -35,8 +35,11 @@ odoo.define('base_export_manager.base_export_manager', function(require) { }); self.sidebar.items.other = items_data; self.sidebar.add_items('other', _.compact([ - self.render_export_enable >= 0 && {label: _t("Export"), callback: self.on_sidebar_export}, - ])); + self.render_export_enable >= 0 && { + label: _t("Export"), + callback: self.on_sidebar_export + }, + ])); } }); }, diff --git a/base_export_manager/tests/test_ir_exports_line.py b/base_export_manager/tests/test_ir_exports_line.py index b9639e0..00a2afb 100644 --- a/base_export_manager/tests/test_ir_exports_line.py +++ b/base_export_manager/tests/test_ir_exports_line.py @@ -37,9 +37,8 @@ class TestIrExportsLineCase(TransactionCase): m_ir_exports_line = self.env['ir.exports.line'] export_line = m_ir_exports_line.create({'name': 'parent_id/name', 'export_id': self.export.id}) - check_label = " (res.partner) (parent_id/name)" self.assertEqual(export_line.with_context(lang="en_US").label, - "Related Company (res.partner)/Name" + check_label) + "Related Company/Name (parent_id/name)") with self.assertRaises(ValidationError): m_ir_exports_line.create({'name': '', 'export_id': self.export.id})