Commit Graph

12 Commits (5217da79395a94cb35364e8a1cd85f1dddb9b450)

Author SHA1 Message Date
Anh Vu 189d10d70d [15][MIG] 🎉 Migrate auto_backup 2023-12-01 16:50:52 +01:00
Riccardo Bellanova ba420adf05 Translated using Weblate (Italian)
Currently translated at 94.1% (81 of 86 strings)

Translation: server-tools-14.0/server-tools-14.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auto_backup/it/
2023-12-01 16:50:51 +01:00
simonev 651500ca38 [FIX] Tests with mock 2023-12-01 16:50:51 +01:00
simonev 20af5f105b [IMP] auto_backup: black, isort, prettier 2023-12-01 16:50:51 +01:00
David Alonso // Solvos fedd9384df [MIG] auto_backup: Migration to 13.0 2023-12-01 16:50:51 +01:00
David Alonso // Solvos 230890d127 [IMP] auto_backup: black, isort, prettier 2023-12-01 16:50:51 +01:00
Aitor Bouzas 73c4e9147b [MIG] auto_backup: Migration to 12.0
Added test coverage
Added requirements.txt for pysftp
Added in the roadmap the exact version of pysftp for this to work (0.2.8)
Added in the roadmap the problem with list_db=False
Adapted calls to message_post
2023-12-01 16:50:51 +01:00
Jordi Riera 507b351523 auto_backup: allow to change the format of backup (#1333) 2023-12-01 16:50:51 +01:00
Andrea 56f1564f2a [11.0][MIG] auto_backup 2023-12-01 16:50:51 +01:00
Dave Lasley 98d4864407 [MIG] auto_backup: Migrate to v9
* Add self.ensure_ones
* Add test coverage
2023-12-01 16:50:51 +01:00
Jairo Llopis 3295a72bde [auto_backup] Refactor.
- Follow template README.
- Remove HTML README.
- Move models to models folder.
- Model and view file names follow guidelines.
- Unused methods cleanup.
- Remove unneeded `.pot` file.
- Fix permissons.
- Follow PEP8 in names everywhere.
- Set more descriptive field names.
- Disable backups for other databases, for security.
- Remove db name from generated file, for easier cleanup.
- EAFP logic everywhere.
- More descriptive name.
- Data files moved to YAML, with cleaner ir.cron record creation.
- Add permissions for db.backup model.
- Icons.
- Update tests with new format.
- Storage method is a selectable, for easier extensibility.
- Instead of custom mailing, it just has a mail thread where you can subscribe.
- Should fix almost all comments in https://github.com/OCA/server-tools/pull/203.
- Reduce headers.

This respects the upstream license choice (GPL/AGPL) but reduces
verbosity.

It would be ideal to have everything under AGPL though.
2023-12-01 16:50:51 +01:00
Alessio Gerace 23c62612bd Open FTP session on the last moment possible
Used to open  fp = open(file_path,'wb') a few lines before it was needed. This shouldn't be too much of a problem but opening and closing it right after eachother keeps the session open for less time and there are less chances on failure.
2023-12-01 16:50:51 +01:00