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

  1. <odoo>
  2. <!-- Animal Tree View -->
  3. <record id="view_animal_owner_tree" model="ir.ui.view">
  4. <field name="name">view.animal.owner.tree</field>
  5. <field name="model">animal</field>
  6. <field name="inherit_id" ref="animal.view_animal_tree" />
  7. <field name="arch" type="xml">
  8. <field name="color_id" position="after">
  9. <field name="partner_id" />
  10. </field>
  11. </field>
  12. </record>
  13. <!-- Animal Form View -->
  14. <record id="view_animal_owner_form" model="ir.ui.view">
  15. <field name="name">view.animal.owner.form</field>
  16. <field name="model">animal</field>
  17. <field name="inherit_id" ref="animal.view_animal_form" />
  18. <field name="arch" type="xml">
  19. <field name="species_id" position="after">
  20. <field name="partner_id" />
  21. </field>
  22. </field>
  23. </record>
  24. <!-- Animal Kanban View -->
  25. <record id="view_animal_owner_kanban" model="ir.ui.view">
  26. <field name="name">view.animal.owner.kanban</field>
  27. <field name="model">animal</field>
  28. <field name="inherit_id" ref="animal.view_animal_kanban" />
  29. <field name="arch" type="xml">
  30. <field name="name" position="after">
  31. <field name="partner_id" />
  32. </field>
  33. <xpath expr="//div[hasclass('oe_kanban_details')]/ul" position="inside">
  34. <li t-if="record.partner_id.raw_value"><field name="partner_id" /></li>
  35. </xpath>
  36. </field>
  37. </record>
  38. <!-- Animal Search View -->
  39. <record id="view_animal_owner_search" model="ir.ui.view">
  40. <field name="name">view.animal.owner.search</field>
  41. <field name="model">animal</field>
  42. <field name="inherit_id" ref="animal.view_animal_search" />
  43. <field name="arch" type="xml">
  44. <field name="name" position="after">
  45. <field name="partner_id" />
  46. </field>
  47. <filter name="gender" position="before">
  48. <filter
  49. name="partner_id"
  50. string="Owner"
  51. domain=""
  52. context="{'group_by': 'partner_id'}"
  53. />
  54. </filter>
  55. </field>
  56. </record>
  57. </odoo>