You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

51 lines
2.5 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_task_form" model="ir.ui.view">
<field name="model">storage.backend.task</field>
<field name="arch" type="xml">
<form>
<header>
<button name="run_import" type="object" string="Run" class="oe_read_only" icon="fa-play-circle" attrs="{'invisible': ['|', ('method_type', '!=', 'import'), ('enabled','=', False)]}"/>
</header>
<sheet>
<field name="method_type" invisible="1"/>
<div class="oe_title" style="width: 390px;" colspan="4">
<label class="oe_edit_only" for="name" string="Name"/>
<h2>
<field name="name" class="oe_inline"/>
</h2>
</div>
<group>
<field name="enabled"/>
<field name="method_type"/>
<field name="pattern" attrs="{'invisible':[('method_type','!=','import')]}"/>
<field name="filepath"/>
<field name="check_duplicated_files" />
<field name="emails"/>
</group>
<group name="action" string="Action">
<field name="after_import" attrs="{'invisible':[('method_type','!=','import')]}"/>
<field name="move_path" colspan="4" attrs="{'invisible':['|', '&amp;', ('after_import','!=','move'), ('after_import','!=','move_rename'), ('method_type','!=','import')]}"/>
<field name="new_name" colspan="4" attrs="{'invisible': ['|', '&amp;', ('after_import','!=','rename'), ('after_import','!=','move_rename'), ('method_type','!=','import')]}"/>
</group>
<group string="Data importation setting">
<field name="file_type" attrs="{'invisible':[('method_type','!=','import')]}"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_task_tree" model="ir.ui.view">
<field name="model">storage.backend.task</field>
<field name="arch" type="xml">
<tree string="Tasks">
<field name="name" select="1"/>
<field name="method_type"/>
<field name="pattern"/>
<field name="filepath"/>
</tree>
</field>
</record>
</odoo>