Browse Source

Add shortcut to execute backups from the "More" menu.

pull/203/head
Jairo Llopis 9 years ago
parent
commit
4da0b66af7
  1. 6
      auto_backup/README.rst
  2. 20
      auto_backup/view/db_backup_view.xml

6
auto_backup/README.rst

@ -62,6 +62,12 @@ Stay informed of problems, automatically!
Do you want to know if the database backup succeeded or failed? Subscribe to Do you want to know if the database backup succeeded or failed? Subscribe to
the corresponding backup setting notification type. the corresponding backup setting notification type.
Run backups when you want
-------------------------
From the backups configuration list, press *More > Execute backup(s)* to
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/8.0 :target: https://runbot.odoo-community.org/runbot/149/8.0

20
auto_backup/view/db_backup_view.xml

@ -84,5 +84,25 @@
action="action_backup_conf_form" action="action_backup_conf_form"
id="backup_conf_menu"/> id="backup_conf_menu"/>
<!-- Execute backup from "More" menu -->
<record id="action_server_backup" model="ir.actions.server">
<field name="name">Execute backup(s)</field>
<field name="model_id" ref="model_db_backup"/>
<field name="code">
object.action_backup()
</field>
</record>
<record model="ir.values" id="action_backup">
<field name="name">Execute backup(s)</field>
<field name="action_id" ref="action_server_backup" />
<field
name="value"
eval="'ir.actions.server,%d' % ref('action_server_backup')" />
<field name="key">action</field>
<field name="model_id" ref="model_db_backup" />
<field name="model">db.backup</field>
<field name="key2">client_action_multi</field>
</record>
</data> </data>
</openerp> </openerp>
Loading…
Cancel
Save