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
No known key found for this signature in database
GPG Key ID: 7DDBA4BA81B934CF
5 changed files with
17 additions and
12 deletions
-
auto_backup/README.rst
-
auto_backup/__manifest__.py
-
auto_backup/models/db_backup.py
-
auto_backup/tests/test_db_backup.py
-
auto_backup/view/db_backup_view.xml
|
@ -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 |
|
|
=========== |
|
|
=========== |
|
|
|
@ -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," |
|
|
|
|
|
" 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", |
|
|
'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", |
|
@ -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: |
|
|
|
@ -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): |
|
|
|
@ -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"/> |
|
|
|
|
|
|
|
|