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.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Agreement Sub Type List View-->
  4. <record model="ir.ui.view" id="partner_agreement_subtype_list_view">
  5. <field name="name">Agreement Subtype List</field>
  6. <field name="model">agreement.subtype</field>
  7. <field name="arch" type="xml">
  8. <tree default_order='name'>
  9. <field name="name" string="Sub-Type Name"/>
  10. <field name="agreement_type_id" string="Agreement Type"/>
  11. </tree>
  12. </field>
  13. </record>
  14. <!-- Agreement Sub Type Form View -->
  15. <record model="ir.ui.view" id="partner_agreement_subtype_form_view">
  16. <field name="name">Agreement Sub Type Form</field>
  17. <field name="model">agreement.subtype</field>
  18. <field name="arch" type="xml">
  19. <form string="Agreement Sub-Types">
  20. <sheet>
  21. <div class="oe_title">
  22. <label for="name" class="oe_edit_only"/>
  23. <h1><field name="name"/></h1>
  24. </div>
  25. <group>
  26. <group>
  27. <field name="agreement_type_id"/>
  28. </group>
  29. <group></group>
  30. </group>
  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_subtype">
  37. <field name="name">Agreement Sub-Types</field>
  38. <field name="res_model">agreement.subtype</field>
  39. <field name="view_mode">tree,form</field>
  40. </record>
  41. </odoo>