123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record model="ir.ui.view" id="view_animal_tree">
- <field name="name">animal.tree</field>
- <field name="model">farm.animal</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Animal">
- <field name="type" />
- <field name="specie" />
- <field name="breed" />
- <field name="current_cycle" attrs="{'invisible':[('type','!=','female')]}"/>
- <field name="number" />
- <field name="weight"/>
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_animal_animal_weigth_tree">
- <field name="name">animal_animal_weigth.tree</field>
- <field name="model">farm.animal.weight</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Animal Weigth">
- <field name="timestamp" />
- <field name="weight" />
- </tree>
- </field>
- </record>
- <record model="ir.ui.view" id="view_animal_form">
- <field name="name">animal.form</field>
- <field name="model">farm.animal</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Animal">
- <header>
- <field name="state" widget="statusbar"
- attrs="{'invisible':[('type','!=','female')]}" />
- <button string="Feed events"
- class="oe_stat_button"
- icon="fa-building-o" name="%(animal_open_feed_events)d" type="action"
- />
- <button string="Medication events"
- class="oe_stat_button"
- icon="fa-building-o" name="%(animal_open_medication_events)d" type="action"
- />
- </header>
- <sheet>
- <group>
- <field name="type" />
- </group>
- <group col="4" colspam="2">
- <field name="specie" />
- <field name="breed" domain="[('specie', '=', specie)]" />
- </group>
- <group>
- <field name="lot" attrs="{'required': True}"/>
- <field name="number" />
- </group>
- <group col="4" colspam="2">
- <field name="active" />
- </group>
- <group col="4" colspan="2">
- <field name="farm" attrs="{'required': True}" />
- <field name="initial_location" domain="['|',('location_id', '=', farm),('location_id.location_id', '=', farm)]" />
- <field name="location" attrs="{'readonly': True}" />
- <field name="origin" />
- </group>
- <group col="4" colspam="2">
- <field name="arrival_date" />
- <field name="birthdate" />
- </group>
- <group col="4" colspam="2">
- <field name="removal_date" />
- <field name="removal_reason" />
- </group>
- <group>
- <field name="weight"/>
- </group>
- <group col="4" colspam="2">
- <field name="current_weight" />
- <field name="consumed_feed" />
- </group>
- <group col="4" colspam="2">
- <field name="sex" />
- <field name="purpose" />
- </group>
- <group>
- <field name="notes" />
- </group>
- <group attrs="{'invisible':[('type','!=','male')]}">
- <field name="extractions" />
- <field name="last_extraction" />
- </group>
- <group attrs="{'invisible':[('type','!=','female')]}">
- <field name="cycles" attrs="{'readonly': True}"/>
- <field name="current_cycle" />
- <field name="first_mating" />
- <field name="days_from_insemination" />
- <field name="last_produced_group" />
- <field name="days_from_farrowing" />
- </group>
- <group>
- <field name="account" attrs="{'readonly': True}"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_animal_weight_form">
- <field name="name">animalWeight.form</field>
- <field name="model">farm.animal.weight</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Weight">
- <sheet>
- <group>
- <field name="timestamp" />
- <field name="uom" />
- <field name="weight" />
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="view_cycle_form">
- <field name="name">cycle.form</field>
- <field name="model">farm.animal.female_cycle</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Female Cycle">
- <header>
- <field name="state" widget="statusbar" />
- </header>
- <sheet>
- <group col="4" colspan="2">
- <field name="animal" />
- <field name="sequence" attrs="{'readonly': True}" />
- <field name="ordination_date" />
- </group>
- <group col="4" colspan="2">
- <field name="insemination_events" />
- <field name="days_between_wearing_and_insemination" />
- <field name="diagnosis_events" />
- <field name="pregnant" />
- <field name="farrowing_event" />
- <field name="abort_event" />
- <field name="live"/>
- <field name="dead"/>
- <field name="fostered" />
- <field name="foster_events" />
- <field name="weaning_event" />
- <field name="weared" />
- <field name="days_between_farrowing_weaning"/>
- <field name="removed" />
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record model="ir.ui.view" id="animal_search_view">
- <field name="name">animal.search</field>
- <field name="model">farm.animal</field>
- <field name="arch" type="xml">
- <search string="Search Animal">
- <group>
- <field name="type" />
- <field name="specie" />
- <field name="breed" />
- <field name="current_cycle" attrs="{'invisible':[('type','!=','female')]}"/>
- <field name="number" />
- </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_cycle_tree">
- <field name="name">cycle.tree</field>
- <field name="model">farm.animal.female_cycle</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree string="Female Cycle">
- <field name="state" widget="statusbar" />
- <field name="sequence" attrs="{'readonly': True}" />
- <field name="pregnant" />
- <field name="fostered" />
- <field name="weared" />
- </tree>
- </field>
- </record>
- </data>
- </openerp>
|