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.

54 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2012 - Now Savoir-faire Linux <https://www.savoirfairelinux.com/>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <data>
  6. <!-- Thresholds -->
  7. <record id="view_kpi_threshold_tree" model="ir.ui.view">
  8. <field name="name">kpi.threshold.tree</field>
  9. <field name="model">kpi.threshold</field>
  10. <field name="arch" type="xml">
  11. <tree string="Thresholds">
  12. <field name="name"/>
  13. <field name="invalid_message"/>
  14. <field name="company_id" groups="base.group_multi_company"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record id="view_kpi_threshold_form" model="ir.ui.view">
  19. <field name="name">kpi.threshold.form</field>
  20. <field name="model">kpi.threshold</field>
  21. <field name="arch" type="xml">
  22. <form string="Threshold">
  23. <group col="6" colspan="6">
  24. <field name="name" colspan="2"/>
  25. <field name="company_id" groups="base.group_multi_company" colspan="2"/>
  26. <newline/>
  27. <separator string="Ranges" colspan="6"/>
  28. <newline/>
  29. <field name="range_ids" nolabel="1" colspan="6"/>
  30. <newline/>
  31. <separator string="KPIs" colspan="6"/>
  32. <newline/>
  33. <field name="kpi_ids" nolabel="1" colspan="6"/>
  34. <newline/>
  35. <field name="invalid_message" nolabel="1" attrs="{'invisible' : [('invalid_message', '=', '')]}" colspan="2"/>
  36. <newline/>
  37. </group>
  38. </form>
  39. </field>
  40. </record>
  41. <record model="ir.actions.act_window" id="open_threshold_list">
  42. <field name="name">Thresholds</field>
  43. <field name="res_model">kpi.threshold</field>
  44. <field name="view_type">form</field>
  45. <field name="view_mode">tree,form</field>
  46. <field name="view_id" ref="view_kpi_threshold_tree"/>
  47. </record>
  48. </data>
  49. </odoo>