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.

47 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="location"/>
  22. <field name="api_key"/>
  23. <field name="description"/>
  24. </group>
  25. <footer>
  26. <button name="action_ping"
  27. string="Ping the API (no authentication)"
  28. type="object"
  29. class="oe_highlight"/>
  30. </footer>
  31. </sheet>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="emc_backend_view_tree" model="ir.ui.view">
  36. <field name="name">emc_backend_view_tree</field>
  37. <field name="model">emc.backend</field>
  38. <field name="arch" type="xml">
  39. <tree string="emc_backend_tree">
  40. <field name="location"/>
  41. <field name="api_key"/>
  42. </tree>
  43. </field>
  44. </record>
  45. </odoo>