farrowing_event.xml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_farrowing_event_tree" model="ir.ui.view">
  5. <field name="name">farrowing_event.tree</field>
  6. <field name="model">farm.farrowing.event</field>
  7. <field name="inherit_id" ref="view_abstract_event_import_mixin_tree" />
  8. <field name="mode">primary</field>
  9. <field name="arch" type="xml">
  10. <field name="lot" position="after">
  11. <field name="produced_group" />
  12. </field>
  13. </field>
  14. </record>
  15. <record id="view_farrowing_event_form" model="ir.ui.view">
  16. <field name="name">farrowing_event.form</field>
  17. <field name="model">farm.farrowing.event</field>
  18. <field name="mode">primary</field>
  19. <field name="inherit_id" ref="view_abstract_event_import_mixin_form" />
  20. <field name="arch" type="xml">
  21. <field name="state" position="after">
  22. <h1>Farrowing Event</h1>
  23. </field>
  24. <field name="farm" position="after">
  25. <field name="live"/>
  26. <field name="stillborn"/>
  27. <field name="mummified"/>
  28. <field name="dead" />
  29. <field name="produced_group" attrs="{'readonly': True}"/>
  30. <field name="female_cycle"/>
  31. <field name="move"/>
  32. <field name="problem"/>
  33. </field>
  34. </field>
  35. </record>
  36. <record id="view_farrowing_event_female_cycle_tree" model="ir.ui.view">
  37. <field name="name">farrowing_event_female_cycle.tree</field>
  38. <field name="model">farm.farrowing.event_female_cycle</field>
  39. <field name="type">tree</field>
  40. <field name="arch" type="xml">
  41. <tree>
  42. <field name="event" />
  43. </tree>
  44. </field>
  45. </record>
  46. <record id="view_farrowing_event_female_cycle_form" model="ir.ui.view">
  47. <field name="name">farrowing_event_female_cycle.form</field>
  48. <field name="model">farm.farrowing.event_female_cycle</field>
  49. <field name="type">form</field>
  50. <field name="arch" type="xml">
  51. <form string="Farrowing Event - Female Cycle">
  52. <group>
  53. <field name="event" />
  54. </group>
  55. </form>
  56. </field>
  57. </record>
  58. <record id="view_farrowing_event_animal_group_form" model="ir.ui.view">
  59. <field name="name">farrowing_event_animal_group.form</field>
  60. <field name="model">farm.farrowing.event_group</field>
  61. <field name="type">form</field>
  62. <field name="arch" type="xml">
  63. <field name="animal_group" />
  64. </field>
  65. </record>
  66. </data>
  67. </openerp>