storage_backend/storage_image/wizards/replace_file.xml

47 lines
1.7 KiB
XML
Raw Permalink Normal View History

2024-11-08 03:21:56 +07:00
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="storage_file_replace_view_form" model="ir.ui.view">
<field name="name">storage.file.replace.form</field>
<field name="model">storage.file.replace</field>
<field name="arch" type="xml">
<form string="Replace File" version="7.0">
<sheet>
<field name="file_id" invisible="1" />
<field name="image_id" invisible="1" />
<group string="Image" name="image">
<field
name="data"
widget="image"
filename="file_name"
nolabel="1"
options="{'size':(128,128)}"
/>
</group>
<group string="Name" name="name">
<field name="file_name" />
</group>
<footer>
<button name="confirm" string="Confirm" type="object" />
<button special="cancel" string="Cancel" class="btn-default" />
</footer>
</sheet>
</form>
</field>
</record>
<record id="storage_replace_file_action" model="ir.actions.act_window">
<field name="name">Replace File</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">storage.file.replace</field>
<field name="view_mode">form</field>
<field name="target">new</field>
<field name="view_id" ref="storage_file_replace_view_form" />
<field name="context">{"withControlPanel": False, "no_breadcrumbs": True}</field>
</record>
</odoo>