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.

45 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Agreement Type List View-->
  4. <record model="ir.ui.view" id="partner_agreement_type_list_view">
  5. <field name="name">Agreement Type List</field>
  6. <field name="model">agreement.type</field>
  7. <field name="arch" type="xml">
  8. <tree string="Agreement Types" default_order='name'>
  9. <field name="name" string="Type Name"/>
  10. <field name="agreement_subtypes_ids" string="Sub-Types"/>
  11. </tree>
  12. </field>
  13. </record>
  14. <!-- Agreement Type Form View -->
  15. <record model="ir.ui.view" id="partner_agreement_type_form_view">
  16. <field name="name">Agreement Type Form</field>
  17. <field name="model">agreement.type</field>
  18. <field name="arch" type="xml">
  19. <form string="Agreement Type">
  20. <sheet>
  21. <div class="oe_title">
  22. <label for="name" class="oe_edit_only"/>
  23. <h1><field name="name"/></h1>
  24. </div>
  25. <field name="agreement_subtypes_ids"
  26. nolabel="1">
  27. <tree editable="bottom">
  28. <field name="name"/>
  29. </tree>
  30. </field>
  31. </sheet>
  32. </form>
  33. </field>
  34. </record>
  35. <!-- Actions opening views on models -->
  36. <record model="ir.actions.act_window" id="partner_agreement_action_type">
  37. <field name="name">Agreement Types</field>
  38. <field name="res_model">agreement.type</field>
  39. <field name="view_mode">tree,form</field>
  40. </record>
  41. </odoo>