123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="view_animal_group">
- <field name="name">animal_group.form</field>
- <field name="model">farm.animal.group</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Animal Group">
- <header>
- <field name="state" widget="statusbar" />
- <button string="Feed events"
- class="oe_stat_button"
- icon="fa-building-o" name="%(animal_group2_open_feed_events)d" type="action"
- />
- <button string="Medication events"
- class="oe_stat_button"
- icon="fa-building-o" name="%(animal_group_open_medication_events)d" type="action"
- />
- </header>
- <sheet>
- <group col="4" colspan="2">
- <field name="specie" />
- <field name="breed" domain="[('specie', '=', specie)]" />
- <field name="number" />
- <field name="location" attrs="{'readonly': True}" />
- <field name="farm" />
- <field name="quantity" />
- <field name="origin" />
- <field name="arrival_date" />
- <field name="initial_location" domain="['|',('location_id', '=', farm),('location_id.location_id', '=', farm)]" />
- <field name="initial_quantity" />
- <field name="removal_date" />
- <field name="weights" />
- <field name="current_weight" />
- <field name="active" />
- <field name="consumed_feed" />
- <field name="transition_days"/>
- <field name="fattening_days"/>
- <field name="lot"/>
- </group>
- <group>
- <field name="account" attrs="{'readonly': True}"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_animal_group_tree">
- <field name="name">animal_group.tree</field>
- <field name="model">farm.animal.group</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Animal Group">
- <field name="number" />
- <field name="arrival_date" />
- <field name="weaning_day"/>
- <field name="quantity" />
- <field name="state"/>
- <field name="mother"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="animal_group_search_view">
- <field name="name">animal.group.search</field>
- <field name="model">farm.animal.group</field>
- <field name="arch" type="xml">
- <search string="Search Animal group">
- <group>
- <field name="number" />
- <field name="state" />
- <field name="specie" />
- <field name="breed" />
- </group>
- <newline />
- <group expand="0" string="Group by...">
- <filter string="Farm"
- domain="[]"
- context="{'group_by': 'farm'}" />
- <filter string="Location"
- domain="[]"
- context="{'group_by': 'location'}" />
- <filter string="State"
- domain="[]"
- context="{'group_by': 'state'}" />
- </group>
- </search>
- </field>
- </record>
- <record model="ir.ui.view" id="view_animal_group_weigth_tree">
- <field name="name">animal_group_weigth.tree</field>
- <field name="model">farm.animal.group.weight</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Animal Group Weigth">
- <field name="timestamp" />
- <field name="weight" />
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_animal_group_weigth">
- <field name="name">animal_group_weigth.form</field>
- <field name="model">farm.animal.group.weight</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Animal Group Weigth">
- <sheet>
- <group>
- <field name="timestamp" />
- <field name="quantity" />
- <field name="uom" />
- <field name="weight" />
- </group>
- </sheet>
- </form>
- </field>
- </record>
- </data>
- </openerp>
|