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.

58 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2016-2017 LasLabs Inc.
  3. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->
  4. <odoo>
  5. <record id="slick_example_view_form" model="ir.ui.view">
  6. <field name="name">slick.example.view.form</field>
  7. <field name="model">slick.example</field>
  8. <field name="arch" type="xml">
  9. <form string="Slick / Slickroom Examples">
  10. <header />
  11. <sheet>
  12. <group col="2">
  13. <separator string="Slick Carousel" />
  14. <newline />
  15. <field name="slick_image_ids"
  16. nolabel="1"
  17. colspan="2"
  18. widget="one2many_slick_images"
  19. options="{'slidesToShow': 2}" />
  20. <separator string="Slickroom Carousel" />
  21. <newline />
  22. <field name="slickroom_image_ids"
  23. nolabel="1"
  24. colspan="2"
  25. widget="slickroom"
  26. options="{'slidesToShow': 2}" />
  27. </group>
  28. </sheet>
  29. <footer />
  30. </form>
  31. </field>
  32. </record>
  33. <record id="slick_example_view_tree" model="ir.ui.view">
  34. <field name="name">slick.example.view.tree</field>
  35. <field name="model">slick.example</field>
  36. <field name="arch" type="xml">
  37. <tree string="Slick Example">
  38. <field name="id" />
  39. </tree>
  40. </field>
  41. </record>
  42. <record id="slick_example_action" model="ir.actions.act_window">
  43. <field name="name">Slick Examples</field>
  44. <field name="res_model">slick.example</field>
  45. <field name="type">ir.actions.act_window</field>
  46. <field name="view_type">form</field>
  47. <field name="view_mode">tree,form</field>
  48. </record>
  49. <menuitem id="slick_example_menu"
  50. name="Slick"
  51. parent="base.menu_custom"
  52. action="slick_example_action"
  53. sequence="1" />
  54. </odoo>