From 230778d47054249a303ff45c855ca3851fafcbcc Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Fri, 18 Nov 2016 12:37:18 -0800 Subject: [PATCH] [MIG] auto_backup: Update to v10 * Change openerp to odoo * Bump version * Rename manifest * Add pysftp to requirements * Add base_setup and update view --- auto_backup/README.rst | 2 +- auto_backup/{__openerp__.py => __manifest__.py} | 15 ++++++++++----- auto_backup/models/db_backup.py | 4 ++-- auto_backup/tests/test_db_backup.py | 6 +++--- auto_backup/view/db_backup_view.xml | 2 +- 5 files changed, 17 insertions(+), 12 deletions(-) rename auto_backup/{__openerp__.py => __manifest__.py} (74%) diff --git a/auto_backup/README.rst b/auto_backup/README.rst index 7767a2f38..8ec13d1e1 100644 --- a/auto_backup/README.rst +++ b/auto_backup/README.rst @@ -70,7 +70,7 @@ manually execute the selected processes. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/9.0 + :target: https://runbot.odoo-community.org/runbot/149/10.0 Bug Tracker =========== diff --git a/auto_backup/__openerp__.py b/auto_backup/__manifest__.py similarity index 74% rename from auto_backup/__openerp__.py rename to auto_backup/__manifest__.py index f66e49b46..7141e9372 100644 --- a/auto_backup/__openerp__.py +++ b/auto_backup/__manifest__.py @@ -7,16 +7,21 @@ { "name": "Database Auto-Backup", "summary": "Backups database", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "author": ( - "VanRoey.be - Yenthe Van Ginneken, Agile Business Group," - " Grupo ESOC IngenierĂ­a de Servicios," - " Odoo Community Association (OCA)" + "Yenthe Van Ginneken, " + "Agile Business Group, " + "Grupo ESOC IngenierĂ­a de Servicios, " + "LasLabs, " + "Odoo Community Association (OCA)" ), 'license': "AGPL-3", "website": "http://www.vanroey.be/applications/bedrijfsbeheer/odoo", "category": "Tools", - "depends": ['mail'], + "depends": [ + 'base_setup', + 'mail', + ], "data": [ "data/ir_cron.xml", "data/mail_message_subtype.xml", diff --git a/auto_backup/models/db_backup.py b/auto_backup/models/db_backup.py index a8786c169..4e30602aa 100644 --- a/auto_backup/models/db_backup.py +++ b/auto_backup/models/db_backup.py @@ -10,8 +10,8 @@ import traceback from contextlib import contextmanager from datetime import datetime, timedelta from glob import iglob -from openerp import exceptions, models, fields, api, _, tools -from openerp.service import db +from odoo import exceptions, models, fields, api, _, tools +from odoo.service import db import logging _logger = logging.getLogger(__name__) try: diff --git a/auto_backup/tests/test_db_backup.py b/auto_backup/tests/test_db_backup.py index 8671c0cb4..91305a0aa 100644 --- a/auto_backup/tests/test_db_backup.py +++ b/auto_backup/tests/test_db_backup.py @@ -11,8 +11,8 @@ import mock from datetime import datetime from contextlib import contextmanager -from openerp.tests import common -from openerp import exceptions, tools +from odoo.tests import common +from odoo import exceptions, tools try: import pysftp @@ -20,7 +20,7 @@ except ImportError: pass -model = 'openerp.addons.auto_backup.models.db_backup' +model = 'odoo.addons.auto_backup.models.db_backup' class TestConnectionException(pysftp.ConnectionException): diff --git a/auto_backup/view/db_backup_view.xml b/auto_backup/view/db_backup_view.xml index 00d6012f5..f36ff2361 100644 --- a/auto_backup/view/db_backup_view.xml +++ b/auto_backup/view/db_backup_view.xml @@ -79,7 +79,7 @@ res_model="db.backup"/>