stock.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.actions.act_window" id="location_open_animal_moves">
  5. <field name="domain">['|',('from_location', '=', active_ids), ('to_location', '=', active_ids)]</field>
  6. <field name="name">Animal Moves</field>
  7. <field name="res_model">farm.move.event</field>
  8. </record>
  9. <record id="stock_production_lot_form_farm_view" model="ir.ui.view">
  10. <field name="name">stock.production.lot.farm.form</field>
  11. <field name="model">stock.production.lot</field>
  12. <field name="inherit_id" ref="stock.view_production_lot_form"/>
  13. <field name="arch" type="xml">
  14. <field name="ref" position="after">
  15. <field name="animal_type"/>
  16. <field name="semen_breed"/>
  17. <field name="unit_cost"/>
  18. </field>
  19. </field>
  20. </record>
  21. <record model="ir.ui.view" id="view_stock_lot_animal_group_form">
  22. <field name="name">stockLotAnimalGroup.form</field>
  23. <field name="model">stock.lot_farm.animal.group</field>
  24. <field name="type">form</field>
  25. <field name="arch" type="xml">
  26. <form string="Animal Group Tag">
  27. <sheet>
  28. <group>
  29. <field name="lot" domain="[('animal_type','=','group')]"/>
  30. </group>
  31. </sheet>
  32. </form>
  33. </field>
  34. </record>
  35. <record model="ir.ui.view" id="view_stock_lot_animal_form">
  36. <field name="name">stockLot_animal.form</field>
  37. <field name="model">stock.lot_farm.animal</field>
  38. <field name="type">form</field>
  39. <field name="arch" type="xml">
  40. <form string="Animal Group Tag">
  41. <sheet>
  42. <group>
  43. <field name="lot"/>
  44. </group>
  45. </sheet>
  46. </form>
  47. </field>
  48. </record>
  49. <record id="stock_location_form_farm_view" model="ir.ui.view">
  50. <field name="name">stock.location.farm.form</field>
  51. <field name="model">stock.location</field>
  52. <field name="inherit_id" ref="stock.view_location_form"/>
  53. <field name="arch" type="xml">
  54. <div name="buttons" position="inside">
  55. <button string="Animal Moves"
  56. class="oe_stat_button"
  57. icon="fa-building-o" name="%(location_open_animal_moves)d" type="action"
  58. />
  59. </div>
  60. <field name="scrap_location" position="after">
  61. <field name="farm_yard"/>
  62. <field name="animal_max"
  63. attrs="{'invisible': [('farm_yard', '=', False)]}"/>
  64. <field name="factory"
  65. attrs="{'invisible': [('usage', '!=', 'view')]}"/>
  66. <field name="transport"
  67. attrs="{'invisible': [('usage', '!=', 'view')]}"/>
  68. <field name="silo"/>
  69. <field name="locations_to_fed"
  70. attrs="{'invisible':[('silo','!=', True)]}"/>
  71. </field>
  72. </field>
  73. </record>
  74. <record model="ir.actions.act_window" id="location_open_animal_moves">
  75. <field name="domain">['|',('from_location', '=', active_ids), ('to_location', '=', active_ids)]</field>
  76. <field name="name">Animal Moves</field>
  77. <field name="res_model">farm.move.event</field>
  78. </record>
  79. <record id="stock_warehouse_form_farm_view" model="ir.ui.view">
  80. <field name="name">stock.warehouse.farm.form</field>
  81. <field name="model">stock.warehouse</field>
  82. <field name="inherit_id" ref="stock.view_warehouse"/>
  83. <field name="arch" type="xml">
  84. <field name="code" position="after">
  85. <field name="external"/>
  86. <field name="holding_number"/>
  87. <field name="radius"/>
  88. <field name='animal_max'/>
  89. </field>
  90. </field>
  91. </record>
  92. <record model="ir.ui.view" id="view_foster_location_tree">
  93. <field name="name">forser_location.tree</field>
  94. <field name="model">farm.foster.locations</field>
  95. <field name="type">tree</field>
  96. <field name="arch" type="xml">
  97. <tree>
  98. <field name="location"/>
  99. </tree>
  100. </field>
  101. </record>
  102. <record model="ir.ui.view" id="view_foster_location_form">
  103. <field name="name">foster_location.form</field>
  104. <field name="model">farm.foster.locations</field>
  105. <field name="type">form</field>
  106. <field name="arch" type="xml">
  107. <form string="Foste Location">
  108. <sheet>
  109. <field name="location"/>
  110. </sheet>
  111. </form>
  112. </field>
  113. </record>
  114. <record model="ir.ui.view" id="view_transit_location_tree">
  115. <field name="name">transit_location.tree</field>
  116. <field name="model">farm.transit.locations</field>
  117. <field name="type">tree</field>
  118. <field name="arch" type="xml">
  119. <tree>
  120. <field name="location"/>
  121. </tree>
  122. </field>
  123. </record>
  124. <record model="ir.ui.view" id="view_transit_location_form">
  125. <field name="name">transit_location.form</field>
  126. <field name="model">farm.transit.locations</field>
  127. <field name="type">form</field>
  128. <field name="arch" type="xml">
  129. <form string="Foste Location">
  130. <sheet>
  131. <field name="location"/>
  132. </sheet>
  133. </form>
  134. </field>
  135. </record>
  136. <record model="ir.ui.view" id="view_future_location_tree">
  137. <field name="name">future_location.tree</field>
  138. <field name="model">farm.future_maders.locations</field>
  139. <field name="type">tree</field>
  140. <field name="arch" type="xml">
  141. <tree>
  142. <field name="location"/>
  143. </tree>
  144. </field>
  145. </record>
  146. <record model="ir.ui.view" id="view_future_location_form">
  147. <field name="name">future_location.form</field>
  148. <field name="model">farm.future_maders.locations</field>
  149. <field name="type">form</field>
  150. <field name="arch" type="xml">
  151. <form string="Foste Location">
  152. <sheet>
  153. <field name="location"/>
  154. </sheet>
  155. </form>
  156. </field>
  157. </record>
  158. <record model="ir.ui.view" id="view_silo_location_tree">
  159. <field name="name">silo_location.tree</field>
  160. <field name="model">stock.location.silo_stock.location</field>
  161. <field name="type">tree</field>
  162. <field name="arch" type="xml">
  163. <tree>
  164. <field name="location"/>
  165. </tree>
  166. </field>
  167. </record>
  168. <record model="ir.ui.view" id="view_silo_location_form">
  169. <field name="name">silo_location.form</field>
  170. <field name="model">stock.location.silo_stock.location</field>
  171. <field name="type">form</field>
  172. <field name="arch" type="xml">
  173. <form string="Location to Feed">
  174. <group>
  175. <field name="location"/>
  176. </group>
  177. </form>
  178. </field>
  179. </record>
  180. <record id="stock_inventory_form_farm_view" model="ir.ui.view">
  181. <field name="name">stock.inventory.farm.form</field>
  182. <field name="model">stock.inventory</field>
  183. <field name="inherit_id" ref="stock.view_inventory_form"/>
  184. <field name="arch" type="xml">
  185. <field name="filter" position="after">
  186. <field name="feed_analitic"/>
  187. </field>
  188. </field>
  189. </record>
  190. </data>
  191. </openerp>