Browse Source

[MIG] auto_backup: Update to v10

* Change openerp to odoo
* Bump version
* Rename manifest
* Add pysftp to requirements
* Add base_setup and update view
pull/614/head
Dave Lasley 8 years ago
parent
commit
4c77da4b77
No known key found for this signature in database GPG Key ID: 7DDBA4BA81B934CF
  1. 2
      auto_backup/README.rst
  2. 15
      auto_backup/__manifest__.py
  3. 4
      auto_backup/models/db_backup.py
  4. 6
      auto_backup/tests/test_db_backup.py
  5. 2
      auto_backup/view/db_backup_view.xml

2
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
===========

15
auto_backup/__openerp__.py → 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",

4
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:

6
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):

2
auto_backup/view/db_backup_view.xml

@ -79,7 +79,7 @@
res_model="db.backup"/>
<menuitem
parent="base.menu_config"
parent="base_setup.menu_config"
action="action_backup_conf_form"
id="backup_conf_menu"/>

Loading…
Cancel
Save