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.

57 lines
2.5 KiB

7 years ago
  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" decoration-danger="invalid_message">
  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. <sheet>
  24. <group col="6" colspan="6">
  25. <field name="name" colspan="2"/>
  26. <field name="company_id" groups="base.group_multi_company" colspan="2"/>
  27. <newline/>
  28. <separator string="Ranges" colspan="6"/>
  29. <newline/>
  30. <field name="range_ids" nolabel="1" colspan="6"/>
  31. <newline/>
  32. <separator string="KPIs" colspan="6"/>
  33. <newline/>
  34. <field name="kpi_ids" nolabel="1" colspan="6"/>
  35. <newline/>
  36. <separator string="Errors" attrs="{'invisible' : [('invalid_message', '=', False)]}" colspan="4"/>
  37. <field name="invalid_message" nolabel="1" attrs="{'invisible' : [('invalid_message', '=', False)]}" colspan="4"/>
  38. <newline/>
  39. </group>
  40. </sheet>
  41. </form>
  42. </field>
  43. </record>
  44. <record model="ir.actions.act_window" id="open_threshold_list">
  45. <field name="name">Thresholds</field>
  46. <field name="res_model">kpi.threshold</field>
  47. <field name="view_type">form</field>
  48. <field name="view_mode">tree,form</field>
  49. <field name="view_id" ref="view_kpi_threshold_tree"/>
  50. </record>
  51. </data>
  52. </odoo>