forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] auto_backup: Migration to 12.0
- Loading branch information
1 parent
07f7831
commit f095841
Showing
6 changed files
with
162 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
|
||
<record id="ir_cron_backup_scheduler_0" model="ir.cron"> | ||
<field name="name">Backup Scheduler</field> | ||
<field name="user_id" ref="base.user_root" /> | ||
<field name="interval_number">1</field> | ||
<field name="interval_type">days</field> | ||
<field name="numbercall">-1</field> | ||
<field name="nextcall" eval="(datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d 03:00:00')"/> | ||
<field name="model_id" ref="model_db_backup"/> | ||
<field | ||
name="nextcall" | ||
eval="(datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d 03:00:00')" | ||
/> | ||
<field name="model_id" ref="model_db_backup" /> | ||
<field name="state">code</field> | ||
<field name="code">model.action_backup_all()</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
|
||
<record id="mail_message_subtype_success" model="mail.message.subtype"> | ||
<field name="name">Backup Successful</field> | ||
<field name="description">Database backup succeeded.</field> | ||
<field name="res_model">db.backup</field> | ||
<field name="default" eval="False" /> | ||
</record> | ||
|
||
<record id="mail_message_subtype_failure" model="mail.message.subtype"> | ||
<field name="name">Backup Failed</field> | ||
<field name="description">Database backup failed.</field> | ||
<field name="res_model">db.backup</field> | ||
<field name="default" eval="True" /> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.