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.

77 lines
2.9 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_dav_collection_tree" model="ir.ui.view">
  4. <field name="model">dav.collection</field>
  5. <field name="arch" type="xml">
  6. <tree>
  7. <field name="name"/>
  8. <field name="dav_type"/>
  9. <field name="model_id"/>
  10. <field name="domain"/>
  11. </tree>
  12. </field>
  13. </record>
  14. <record id="view_dav_collection_form" model="ir.ui.view">
  15. <field name="model">dav.collection</field>
  16. <field name="arch" type="xml">
  17. <form>
  18. <group>
  19. <field name="name"/>
  20. <field name="dav_type"/>
  21. <field name="url" widget="url" attrs="{'invisible': [('url', '=', False)]}"/>
  22. </group>
  23. <group string="Access">
  24. <field name="model_id"/>
  25. <!-- TODO: use widget="domain" when we can set the model dynamically /-->
  26. <field name="domain"/>
  27. <field name="field_uuid" domain="[('model_id', '=', model_id)]"/>
  28. <field name="rights"/>
  29. </group>
  30. <group string="Additional field mapping">
  31. <field name="field_mapping_ids" nolabel="1" context="{'default_collection_id': active_id}"/>
  32. </group>
  33. </form>
  34. </field>
  35. </record>
  36. <record id="view_dav_collection_mapping_tree" model="ir.ui.view">
  37. <field name="model">dav.collection.field_mapping</field>
  38. <field name="arch" type="xml">
  39. <tree>
  40. <field name="name"/>
  41. <field name="field_id"/>
  42. <field name="mapping_type"/>
  43. </tree>
  44. </field>
  45. </record>
  46. <record id="view_dav_collection_mapping_form" model="ir.ui.view">
  47. <field name="model">dav.collection.field_mapping</field>
  48. <field name="arch" type="xml">
  49. <form>
  50. <group>
  51. <field name="collection_id" invisible="1"/>
  52. <field name="model_id" invisible="1"/>
  53. <field name="name"/>
  54. <field name="mapping_type"/>
  55. <field name="field_id" domain="[('model_id', '=', model_id)]"/>
  56. <field name="import_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
  57. <field name="export_code" attrs="{'invisible': [('mapping_type', '!=', 'code')]}"/>
  58. </group>
  59. </form>
  60. </field>
  61. </record>
  62. <act_window
  63. id="action_dav_collection"
  64. name="WebDAV collections"
  65. res_model="dav.collection"
  66. view_mode="tree,form"
  67. />
  68. <menuitem
  69. id="menu_dav_collection"
  70. parent="base.menu_administration"
  71. action="action_dav_collection"
  72. sequence="100"
  73. />
  74. </odoo>