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.

62 lines
2.5 KiB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <!-- Agreement Service Profile List View-->
  4. <record model="ir.ui.view" id="agreement_serviceprofile_tree">
  5. <field name="name">Agreement Service Profile Tree</field>
  6. <field name="model">agreement.serviceprofile</field>
  7. <field name="arch" type="xml">
  8. <tree string="Service Profiles" default_order='agreement_id'>
  9. <field name="name"/>
  10. <field name="agreement_id"/>
  11. <field name="active" invisible="1"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <!-- Agreement Service Profile Form View -->
  16. <record model="ir.ui.view" id="agreement_serviceprofile_form">
  17. <field name="name">Agreement Service Profile Form</field>
  18. <field name="model">agreement.serviceprofile</field>
  19. <field name="arch" type="xml">
  20. <form string="Service Profile">
  21. <sheet>
  22. <div class="oe_button_box" name="button_box">
  23. <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
  24. <field name="active" widget="boolean_button" options="{&quot;terminology&quot;: &quot;archive&quot;}"/>
  25. </button>
  26. </div>
  27. <div class="oe_title">
  28. <label for="name" class="oe_edit_only"/>
  29. <h1><field name="name"/></h1>
  30. </div>
  31. <group>
  32. <group>
  33. <field name="agreement_id"/>
  34. </group>
  35. <group></group>
  36. </group>
  37. </sheet>
  38. </form>
  39. </field>
  40. </record>
  41. <!-- Agreement Service Profile Search View -->
  42. <record model="ir.ui.view" id="agreement_serviceprofile_search">
  43. <field name="name">Agreement Service Profile Search</field>
  44. <field name="model">agreement.serviceprofile</field>
  45. <field name="arch" type="xml">
  46. <search>
  47. <filter name="group_agreement" icon="terp-partner" context="{'group_by':'agreement_id'}"/>
  48. </search>
  49. </field>
  50. </record>
  51. <!-- Actions opening views on models -->
  52. <record model="ir.actions.act_window" id="agreement_serviceprofile_action">
  53. <field name="name">Service Profiles</field>
  54. <field name="res_model">agreement.serviceprofile</field>
  55. <field name="view_mode">tree,form</field>
  56. </record>
  57. </odoo>