33 lines
1.7 KiB
XML
33 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Inherit Form View -->
|
|
<record id="view_db_backup_configure_form_inherit_rsync" model="ir.ui.view">
|
|
<field name="name">db.backup.configure.form.inherit.rsync</field>
|
|
<field name="model">db.backup.configure</field>
|
|
<field name="inherit_id" ref="auto_database_backup.db_backup_configure_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="backup_format" position="after">
|
|
<field name="enable_rsync" attrs="{'invisible': [('backup_format', '!=', 'dump')]}"/>
|
|
<field name="remote_host" attrs="{
|
|
'invisible': ['|', ('backup_format', '!=', 'dump'), ('enable_rsync', '=', False)],
|
|
'required': [('enable_rsync', '=', True)]
|
|
}"/>
|
|
<field name="remote_user" attrs="{
|
|
'invisible': ['|', ('backup_format', '!=', 'dump'), ('enable_rsync', '=', False)],
|
|
'required': [('enable_rsync', '=', True)]
|
|
}"/>
|
|
<field name="remote_port" attrs="{
|
|
'invisible': ['|', ('backup_format', '!=', 'dump'), ('enable_rsync', '=', False)]
|
|
}"/>
|
|
<field name="ssh_key_path" attrs="{
|
|
'invisible': ['|', ('backup_format', '!=', 'dump'), ('enable_rsync', '=', False)]
|
|
}"/>
|
|
<field name="filestore_dest_path" attrs="{
|
|
'invisible': ['|', ('backup_format', '!=', 'dump'), ('enable_rsync', '=', False)],
|
|
'required': [('enable_rsync', '=', True)]
|
|
}"/>
|
|
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|