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.

71 lines
2.4 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!--
  3. Copyright 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="map_website_form" model="ir.ui.view">
  8. <field name="name">map.website.form</field>
  9. <field name="model">map.website</field>
  10. <field name="arch" type="xml">
  11. <form string="Map Website">
  12. <widget
  13. name="web_ribbon"
  14. title="Archived"
  15. bg_color="bg-danger"
  16. attrs="{'invisible': [('active', '=', True)]}"
  17. />
  18. <group name="main">
  19. <field name="name" />
  20. <field name="address_url" />
  21. <field name="lat_lon_url" />
  22. <field name="route_address_url" />
  23. <field name="route_lat_lon_url" />
  24. <field name="active" invisible="1" />
  25. </group>
  26. </form>
  27. </field>
  28. </record>
  29. <record id="map_website_tree" model="ir.ui.view">
  30. <field name="name">map.website.tree</field>
  31. <field name="model">map.website</field>
  32. <field name="arch" type="xml">
  33. <tree string="Map Websites">
  34. <field name="sequence" widget="handle" />
  35. <field name="name" />
  36. <field name="address_url" />
  37. </tree>
  38. </field>
  39. </record>
  40. <record id="map_website_search" model="ir.ui.view">
  41. <field name="name">map.website.search</field>
  42. <field name="model">map.website</field>
  43. <field name="arch" type="xml">
  44. <search>
  45. <field name="name" />
  46. <filter
  47. string="Archived"
  48. name="inactive"
  49. domain="[('active', '=', False)]"
  50. />
  51. </search>
  52. </field>
  53. </record>
  54. <record id="map_website_action" model="ir.actions.act_window">
  55. <field name="name">Map Websites</field>
  56. <field name="res_model">map.website</field>
  57. <field name="view_mode">tree,form</field>
  58. </record>
  59. <menuitem
  60. id="root_map_website_menu"
  61. name="Map Websites"
  62. parent="base.menu_custom"
  63. sequence="100"
  64. />
  65. <menuitem
  66. id="map_website_menu"
  67. action="map_website_action"
  68. parent="root_map_website_menu"
  69. />
  70. </odoo>