123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record model="ir.actions.act_window" id="location_open_animal_moves">
- <field name="domain">['|',('from_location', '=', active_ids), ('to_location', '=', active_ids)]</field>
- <field name="name">Animal Moves</field>
- <field name="res_model">farm.move.event</field>
- </record>
- <record id="stock_production_lot_form_farm_view" model="ir.ui.view">
- <field name="name">stock.production.lot.farm.form</field>
- <field name="model">stock.production.lot</field>
- <field name="inherit_id" ref="stock.view_production_lot_form"/>
- <field name="arch" type="xml">
- <field name="ref" position="after">
- <field name="animal_type"/>
- <field name="semen_breed"/>
- <field name="unit_cost"/>
- </field>
- </field>
- </record>
- <record model="ir.ui.view" id="view_stock_lot_animal_group_form">
- <field name="name">stockLotAnimalGroup.form</field>
- <field name="model">stock.lot_farm.animal.group</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Animal Group Tag">
- <sheet>
- <group>
- <field name="lot" domain="[('animal_type','=','group')]"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_stock_lot_animal_form">
- <field name="name">stockLot_animal.form</field>
- <field name="model">stock.lot_farm.animal</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Animal Group Tag">
- <sheet>
- <group>
- <field name="lot"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record id="stock_location_form_farm_view" model="ir.ui.view">
- <field name="name">stock.location.farm.form</field>
- <field name="model">stock.location</field>
- <field name="inherit_id" ref="stock.view_location_form"/>
- <field name="arch" type="xml">
- <div name="buttons" position="inside">
- <button string="Animal Moves"
- class="oe_stat_button"
- icon="fa-building-o" name="%(location_open_animal_moves)d" type="action"
- />
-
- </div>
- <field name="scrap_location" position="after">
- <field name="farm_yard"/>
- <field name="animal_max"
- attrs="{'invisible': [('farm_yard', '=', False)]}"/>
- <field name="factory"
- attrs="{'invisible': [('usage', '!=', 'view')]}"/>
- <field name="transport"
- attrs="{'invisible': [('usage', '!=', 'view')]}"/>
- <field name="silo"/>
- <field name="locations_to_fed"
- attrs="{'invisible':[('silo','!=', True)]}"/>
- </field>
- </field>
- </record>
- <record model="ir.actions.act_window" id="location_open_animal_moves">
- <field name="domain">['|',('from_location', '=', active_ids), ('to_location', '=', active_ids)]</field>
- <field name="name">Animal Moves</field>
- <field name="res_model">farm.move.event</field>
- </record>
- <record id="stock_warehouse_form_farm_view" model="ir.ui.view">
- <field name="name">stock.warehouse.farm.form</field>
- <field name="model">stock.warehouse</field>
- <field name="inherit_id" ref="stock.view_warehouse"/>
- <field name="arch" type="xml">
- <field name="code" position="after">
- <field name="external"/>
- <field name="holding_number"/>
- <field name="radius"/>
- <field name='animal_max'/>
- </field>
- </field>
- </record>
- <record model="ir.ui.view" id="view_foster_location_tree">
- <field name="name">forser_location.tree</field>
- <field name="model">farm.foster.locations</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree>
- <field name="location"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_foster_location_form">
- <field name="name">foster_location.form</field>
- <field name="model">farm.foster.locations</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Foste Location">
- <sheet>
- <field name="location"/>
-
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_transit_location_tree">
- <field name="name">transit_location.tree</field>
- <field name="model">farm.transit.locations</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree>
- <field name="location"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_transit_location_form">
- <field name="name">transit_location.form</field>
- <field name="model">farm.transit.locations</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Foste Location">
- <sheet>
- <field name="location"/>
-
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_future_location_tree">
- <field name="name">future_location.tree</field>
- <field name="model">farm.future_maders.locations</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree>
- <field name="location"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_future_location_form">
- <field name="name">future_location.form</field>
- <field name="model">farm.future_maders.locations</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Foste Location">
- <sheet>
- <field name="location"/>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_silo_location_tree">
- <field name="name">silo_location.tree</field>
- <field name="model">stock.location.silo_stock.location</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree>
- <field name="location"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_silo_location_form">
- <field name="name">silo_location.form</field>
- <field name="model">stock.location.silo_stock.location</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Location to Feed">
- <group>
-
- <field name="location"/>
- </group>
- </form>
- </field>
- </record>
- <record id="stock_inventory_form_farm_view" model="ir.ui.view">
- <field name="name">stock.inventory.farm.form</field>
- <field name="model">stock.inventory</field>
- <field name="inherit_id" ref="stock.view_inventory_form"/>
- <field name="arch" type="xml">
- <field name="filter" position="after">
- <field name="feed_analitic"/>
- </field>
- </field>
- </record>
- </data>
- </openerp>
|