[ADD] base_dav

This commit is contained in:
Holger Brunn
2018-12-12 11:51:31 +01:00
committed by fkantelberg
parent c1349bb4bc
commit cb2ecfee46
26 changed files with 1665 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_dav_collection_tree" model="ir.ui.view">
<field name="model">dav.collection</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="dav_type"/>
<field name="model_id"/>
<field name="domain"/>
</tree>
</field>
</record>
<record id="view_dav_collection_form" model="ir.ui.view">
<field name="model">dav.collection</field>
<field name="arch" type="xml">
<form>
<group>
<field name="name"/>
<field name="dav_type"/>
<field name="url" widget="url" attrs="{'invisible': [('url', '=', False)]}"/>
</group>
<group string="Access">
<field name="model_id"/>
<!-- TODO: use widget="domain" when we can set the model dynamically /-->
<field name="domain"/>
<field name="field_uuid" domain="[('model_id', '=', model_id)]"/>
<field name="rights"/>
</group>
<group string="Additional field mapping">
<field name="field_mapping_ids" nolabel="1"/>
</group>
</form>
</field>
</record>
<record id="view_dav_collection_mapping_tree" model="ir.ui.view">
<field name="model">dav.collection.field_mapping</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="mapping_type"/>
</tree>
</field>
</record>
<record id="view_dav_collection_mapping_form" model="ir.ui.view">
<field name="model">dav.collection.field_mapping</field>
<field name="arch" type="xml">
<form>
<group>
<field name="collection_id" invisible="1"/>
<field name="name"/>
<field name="mapping_type"/>
<field name="field_id"
domain="[('model_id', '=', collection_id.model_id)]"
attrs="{'invisible': [('mapping_type', '!=', 'simple')]}"/>
<field name="import_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
<field name="export_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
</group>
</form>
</field>
</record>
<act_window
id="action_dav_collection"
name="WebDAV collections"
res_model="dav.collection"
view_mode="tree,form"
/>
<menuitem
id="menu_dav_collection"
parent="base.menu_administration"
action="action_dav_collection"
sequence="100"
/>
</odoo>