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