farm_menu.xml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <menuitem name="Farm" id="menu_farm" sequence="51"/>
  5. <menuitem name="Configuration" id="menu_farm_configuration"
  6. parent="menu_farm"/>
  7. <menuitem name="Events" id="menu_farm_events"
  8. parent="menu_farm"/>
  9. <menuitem name="Animals" id="menu_farm_animals" sequence="100"
  10. parent="menu_farm"/>
  11. <menuitem name="Purchases" id="menu_farm_purchases" sequence="120"
  12. parent="menu_farm"/>
  13. <record id="farm_specie_view" model="ir.actions.act_window">
  14. <field name="name">Specie</field>
  15. <field name="type">ir.actions.act_window</field>
  16. <field name="res_model">farm.specie</field>
  17. <field name="view_type">form</field>
  18. <field name="view_mode">tree,form</field>
  19. <field name="view_id" ref="view_specie_tree"/>
  20. </record>
  21. <record id="farm_farm_line_view" model="ir.actions.act_window">
  22. <field name="name">FarmLine</field>
  23. <field name="type">ir.actions.act_window</field>
  24. <field name="res_model">farm.specie.farm_line</field>
  25. <field name="view_type">form</field>
  26. <field name="view_mode">tree,form</field>
  27. <field name="view_id" ref="view_farm_line_tree"/>
  28. </record>
  29. <record id="farm_event_order_view" model="ir.actions.act_window">
  30. <field name="name">EventOrder</field>
  31. <field name="type">ir.actions.act_window</field>
  32. <field name="res_model">farm.event.order</field>
  33. <field name="view_type">form</field>
  34. <field name="view_mode">tree,form</field>
  35. <field name="view_id" ref="view_event_order_tree"/>
  36. </record>
  37. <record id="farm_consume_stock_view" model="ir.actions.act_window">
  38. <field name="name">ConsumeStock</field>
  39. <field name="type">ir.actions.act_window</field>
  40. <field name="res_model">farm.consume.stock</field>
  41. <field name="view_type">form</field>
  42. <field name="view_mode">tree,form</field>
  43. <field name="view_id" ref="view_consume_stock_tree"/>
  44. </record>
  45. <record id="farm_animal_view" model="ir.actions.act_window">
  46. <field name="name">Animals</field>
  47. <field name="type">ir.actions.act_window</field>
  48. <field name="res_model">farm.animal</field>
  49. <field name="view_type">form</field>
  50. <field name="view_mode">tree,form</field>
  51. <field name="view_id" ref="view_animal_tree"/>
  52. </record>
  53. <record id="farm_animal_group_view" model="ir.actions.act_window">
  54. <field name="name">Animal groups</field>
  55. <field name="type">ir.actions.act_window</field>
  56. <field name="res_model">farm.animal.group</field>
  57. <field name="view_type">form</field>
  58. <field name="view_mode">tree,form</field>
  59. <field name="view_id" ref="view_animal_group_tree"/>
  60. </record>
  61. <record id="farm_tag_view" model="ir.actions.act_window">
  62. <field name="name">Tag</field>
  63. <field name="type">ir.actions.act_window</field>
  64. <field name="res_model">farm.tags</field>
  65. <field name="view_type">form</field>
  66. <field name="view_mode">tree,form</field>
  67. <field name="view_id" ref="view_tag_tree"/>
  68. </record>
  69. <record id="farm_semen_extraction_view" model="ir.actions.act_window">
  70. <field name="name">Extraction Event</field>
  71. <field name="type">ir.actions.act_window</field>
  72. <field name="res_model">farm.semen_extraction.event</field>
  73. <field name="view_type">form</field>
  74. <field name="view_mode">tree,form</field>
  75. <field name="view_id" ref="view_semen_extraction_event_tree"/>
  76. </record>
  77. <record id="farm_removal_view" model="ir.actions.act_window">
  78. <field name="name">Removal Event</field>
  79. <field name="type">ir.actions.act_window</field>
  80. <field name="res_model">farm.removal.event</field>
  81. <field name="view_type">form</field>
  82. <field name="view_mode">tree,form</field>
  83. <field name="view_id" ref="view_removal_event_tree"/>
  84. </record>
  85. <record id="farm_purchase_line" model="ir.actions.act_window">
  86. <field name="domain">[('start_date', '!=', False)]</field>
  87. <field name="name">Farm Purchase Line</field>
  88. <field name="type">ir.actions.act_window</field>
  89. <field name="res_model">purchase.order.line</field>
  90. <field name="view_type">form</field>
  91. <field name="view_mode">tree,form</field>
  92. </record>
  93. <menuitem action="farm_specie_view" id="menu_farm_configuration_specie"
  94. name="Specie" parent="menu_farm_configuration" sequence="2"/>
  95. <menuitem action="farm_farm_line_view" id="menu_farm_configuration_farm_line"
  96. name="Farm Line" parent="menu_farm_configuration" sequence="6"/>
  97. <menuitem action="farm_tag_view" id="menu_farm_configuration_tag"
  98. name="Tag" parent="menu_farm_configuration" sequence="3"/>
  99. <menuitem action="farm_event_order_view" id="menu_farm_event_order"
  100. name="Work order" parent="menu_farm_events" sequence="2"/>
  101. <menuitem action="farm_semen_extraction_view" id="menu_farm_extraction_event"
  102. name="Semen Extraction" parent="menu_farm_events" sequence="4"/>
  103. <menuitem action="farm_removal_view" id="menu_farm_removal_event"
  104. name="Removal Event" parent="menu_farm_events" sequence="5"/>
  105. <menuitem action="farm_consume_stock_view" id="menu_farm_consume_stock"
  106. name="Comsume Stock" parent="menu_farm_events" sequence="6"/>
  107. <menuitem action="farm_animal_view" id="menu_farm_animal"
  108. name="Animal" parent="menu_farm_animals" sequence="4"/>
  109. <menuitem action="farm_animal_group_view" id="menu_farm_animal_group"
  110. name="Animal group" parent="menu_farm_animals" sequence="6"/>
  111. <menuitem action="farm_purchase_line" id="menu_farm_purchase_line"
  112. name="General expenses" parent="menu_farm_purchases" sequence="50"/>
  113. </data>
  114. </openerp>