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. 11
      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 .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :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 Bug Tracker
=========== ===========

11
auto_backup/__openerp__.py → auto_backup/__manifest__.py

@ -7,16 +7,21 @@
{ {
"name": "Database Auto-Backup", "name": "Database Auto-Backup",
"summary": "Backups database", "summary": "Backups database",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"author": ( "author": (
"VanRoey.be - Yenthe Van Ginneken, Agile Business Group,"
"Yenthe Van Ginneken, "
"Agile Business Group, "
"Grupo ESOC Ingeniería de Servicios, " "Grupo ESOC Ingeniería de Servicios, "
"LasLabs, "
"Odoo Community Association (OCA)" "Odoo Community Association (OCA)"
), ),
'license': "AGPL-3", 'license': "AGPL-3",
"website": "http://www.vanroey.be/applications/bedrijfsbeheer/odoo", "website": "http://www.vanroey.be/applications/bedrijfsbeheer/odoo",
"category": "Tools", "category": "Tools",
"depends": ['mail'],
"depends": [
'base_setup',
'mail',
],
"data": [ "data": [
"data/ir_cron.xml", "data/ir_cron.xml",
"data/mail_message_subtype.xml", "data/mail_message_subtype.xml",

4
auto_backup/models/db_backup.py

@ -10,8 +10,8 @@ import traceback
from contextlib import contextmanager from contextlib import contextmanager
from datetime import datetime, timedelta from datetime import datetime, timedelta
from glob import iglob 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 import logging
_logger = logging.getLogger(__name__) _logger = logging.getLogger(__name__)
try: try:

6
auto_backup/tests/test_db_backup.py

@ -11,8 +11,8 @@ import mock
from datetime import datetime from datetime import datetime
from contextlib import contextmanager 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: try:
import pysftp import pysftp
@ -20,7 +20,7 @@ except ImportError:
pass pass
model = 'openerp.addons.auto_backup.models.db_backup'
model = 'odoo.addons.auto_backup.models.db_backup'
class TestConnectionException(pysftp.ConnectionException): class TestConnectionException(pysftp.ConnectionException):

2
auto_backup/view/db_backup_view.xml

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

Loading…
Cancel
Save