OCA reporting engine fork for dev and update.
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.

53 lines
2.3 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. <!-- Thresholds -->
  6. <record id="view_kpi_threshold_tree" model="ir.ui.view">
  7. <field name="name">kpi.threshold.tree</field>
  8. <field name="model">kpi.threshold</field>
  9. <field name="arch" type="xml">
  10. <tree string="Thresholds" decoration-danger="invalid_message">
  11. <field name="name"/>
  12. <field name="invalid_message"/>
  13. <field name="company_id" groups="base.group_multi_company"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="view_kpi_threshold_form" model="ir.ui.view">
  18. <field name="name">kpi.threshold.form</field>
  19. <field name="model">kpi.threshold</field>
  20. <field name="arch" type="xml">
  21. <form string="Threshold">
  22. <sheet>
  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. <separator string="Errors" attrs="{'invisible' : [('invalid_message', '=', False)]}" colspan="4"/>
  36. <field name="invalid_message" nolabel="1" attrs="{'invisible' : [('invalid_message', '=', False)]}" colspan="4"/>
  37. <newline/>
  38. </group>
  39. </sheet>
  40. </form>
  41. </field>
  42. </record>
  43. <record model="ir.actions.act_window" id="open_threshold_list">
  44. <field name="name">Thresholds</field>
  45. <field name="res_model">kpi.threshold</field>
  46. <field name="view_type">form</field>
  47. <field name="view_mode">tree,form</field>
  48. <field name="view_id" ref="view_kpi_threshold_tree"/>
  49. </record>
  50. </odoo>