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.
70 lines
3.5 KiB
70 lines
3.5 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<openerp>
|
|
<data>
|
|
|
|
<record id="view_location_form" model="ir.ui.view">
|
|
<field name="model">external.file.location</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Location" version="7.0">
|
|
<sheet>
|
|
<group col="4">
|
|
<div class="oe_title" style="width: 390px;" colspan="4">
|
|
<label class="oe_edit_only" for="name" string="Name"/>
|
|
<h1><field name="name" class="oe_inline"/></h1>
|
|
</div>
|
|
<newline/>
|
|
<field name="protocol" colspan="2"/>
|
|
<newline/>
|
|
<field name="address" colspan="2" attrs="{'required': [('protocol', '!=', 'file_store')], 'invisible': [('protocol', '=', 'file_store')]}"/>
|
|
<field name="filestore_rootpath" colspan="2" attrs="{'required': [('protocol', '=', 'file_store')], 'invisible': [('protocol', '!=', 'file_store')]}"/>
|
|
<field name="port" colspan="2" attrs="{'invisible': [('hide_port', '=', True)], 'required': [('hide_port', '=', False)]}"/>
|
|
<field name="company_id" colspan="2"/>
|
|
<field name="login" colspan="2" attrs="{'invisible': [('hide_login', '=', True)], 'required': [('hide_login', '=', False)]}"/>
|
|
<field name="password" password="1" colspan="2" attrs="{'invisible': [('hide_password', '=', True)]}"/>
|
|
<separator string="Tasks" colspan="4"/>
|
|
<field name="task_ids" colspan="4" nolabel="1" context="{'hide_location': True, 'protocol': protocol}">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="name"/>
|
|
<field name="method_type"/>
|
|
<field name="filename"/>
|
|
<field name="filepath"/>
|
|
</tree>
|
|
</field>
|
|
<field name="hide_login" invisible="1"/>
|
|
<field name="hide_password" invisible="1"/>
|
|
<field name="hide_port" invisible="1"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_location_tree" model="ir.ui.view">
|
|
<field name="model">external.file.location</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="File Location">
|
|
<field name="name" select="1"/>
|
|
<field name="protocol"/>
|
|
<field name="address"/>
|
|
<field name="login"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_location" model="ir.actions.act_window">
|
|
<field name="name">File Locations</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">external.file.location</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_id" eval="False"/>
|
|
</record>
|
|
|
|
<menuitem id="menu_ir_location"
|
|
parent="base.menu_automation"
|
|
sequence="20"
|
|
action="action_location"/>
|
|
|
|
</data>
|
|
</openerp>
|
|
|