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.

51 lines
1.7 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. <group name="main">
  13. <field name="name"/>
  14. <field name="address_url"/>
  15. <field name="lat_lon_url"/>
  16. <field name="route_address_url"/>
  17. <field name="route_lat_lon_url"/>
  18. </group>
  19. </form>
  20. </field>
  21. </record>
  22. <record id="map_website_tree" model="ir.ui.view">
  23. <field name="name">map.website.tree</field>
  24. <field name="model">map.website</field>
  25. <field name="arch" type="xml">
  26. <tree string="Map Websites">
  27. <field name="name"/>
  28. <field name="address_url"/>
  29. </tree>
  30. </field>
  31. </record>
  32. <record id="map_website_action" model="ir.actions.act_window">
  33. <field name="name">Map Websites</field>
  34. <field name="res_model">map.website</field>
  35. <field name="view_mode">tree,form</field>
  36. </record>
  37. <!-- Menu entry under Settings > Technical
  38. We prefered the menu entry of previous Odoo versions under
  39. Sales > Config > Address Book > Localization, but in v10 that
  40. would required a dependency on sales_team, and we don't want that -->
  41. <menuitem id="root_map_website_menu" name="Map Websites" parent="base.menu_custom" sequence="100"/>
  42. <menuitem id="map_website_menu" action="map_website_action"
  43. parent="root_map_website_menu"/>
  44. </odoo>