Browse Source

[MIG][base_export_manager] Migrate features from 8.0

pull/870/head
Jairo Llopis 8 years ago
parent
commit
4340c0572f
  1. 3
      base_export_manager/__manifest__.py
  2. 9
      base_export_manager/migrations/8.0.2.1.0/post-migrate.py
  3. 5
      base_export_manager/static/src/js/base_export_manager.js

3
base_export_manager/__manifest__.py

@ -10,7 +10,6 @@
'web', 'web',
], ],
'data': [ 'data': [
'data/ir_exports_data.xml',
'views/assets.xml', 'views/assets.xml',
'views/ir_exports.xml', 'views/ir_exports.xml',
'views/ir_model.xml', 'views/ir_model.xml',
@ -25,7 +24,7 @@
'LasLabs, ' 'LasLabs, '
'Ursa Information Systems, ' 'Ursa Information Systems, '
'Odoo Community Association (OCA)', 'Odoo Community Association (OCA)',
'website': 'http://www.antiun.com',
'website': 'https://www.tecnativa.com',
'license': 'AGPL-3', 'license': 'AGPL-3',
'installable': True, 'installable': True,
'application': False, 'application': False,

9
base_export_manager/migrations/8.0.2.1.0/post-migrate.py

@ -1,9 +0,0 @@
# -*- coding: utf-8 -*-
# Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
# 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)

5
base_export_manager/static/src/js/base_export_manager.js

@ -35,7 +35,10 @@ odoo.define('base_export_manager.base_export_manager', function(require) {
}); });
self.sidebar.items.other = items_data; self.sidebar.items.other = items_data;
self.sidebar.add_items('other', _.compact([ 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
},
])); ]));
} }
}); });

Loading…
Cancel
Save