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.

48 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2020 Coop IT Easy
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <record id="emc_backend_view_form" model="ir.ui.view">
  8. <field name="name">emc_backend_view_form</field>
  9. <field name="model">emc.backend</field>
  10. <field name="arch" type="xml">
  11. <form string="emc_backend_form">
  12. <sheet>
  13. <div class="oe_button_box" name="button_box">
  14. <button name="toggle_active" type="object"
  15. class="oe_stat_button" icon="fa-archive">
  16. <field name="active" widget="boolean_button"
  17. options="{'terminology': 'active'}"/>
  18. </button>
  19. </div>
  20. <group>
  21. <field name="name"/>
  22. <field name="location"/>
  23. <field name="api_key"/>
  24. <field name="description"/>
  25. </group>
  26. <footer>
  27. <button name="action_ping"
  28. string="Ping the API (no authentication)"
  29. type="object"
  30. class="oe_highlight"/>
  31. </footer>
  32. </sheet>
  33. </form>
  34. </field>
  35. </record>
  36. <record id="emc_backend_view_tree" model="ir.ui.view">
  37. <field name="name">emc_backend_view_tree</field>
  38. <field name="model">emc.backend</field>
  39. <field name="arch" type="xml">
  40. <tree string="emc_backend_tree">
  41. <field name="location"/>
  42. <field name="api_key"/>
  43. </tree>
  44. </field>
  45. </record>
  46. </odoo>