1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <record id="view_weaning_event_tree" model="ir.ui.view">
- <field name="name">weaning_event.tree</field>
- <field name="model">farm.weaning.event</field>
- <field name="mode">primary</field>
- <field name="inherit_id" ref="view_abstract_event_import_mixin_tree" />
- <field name="arch" type="xml">
- <field name="lot" position="after">
- <field name="farrowing_group" />
- </field>
- </field>
- </record>
- <record id="view_weaning_event_form" model="ir.ui.view">
- <field name="name">weaning_event.form</field>
- <field name="model">farm.weaning.event</field>
- <field name="mode">primary</field>
- <field name="inherit_id" ref="view_abstract_event_import_mixin_form" />
- <field name="arch" type="xml">
- <field name="state" position="after">
- <h1>Weaning Event</h1>
- </field>
- <field name="lot" position="after">
- <field name="quantity"/>
- <field name="female_to_location" domain="[('location_id.location_id', '=', farm)]"/>
- <field name="weared_group" domain="[('state', '!=', 'fatten'), ('state', '!=', 'sold')]"/>
- <field name="weaned_to_location"/>
- <field name="farrowing_group" attrs="{'readonly': True}"/>
- <field name="female_cycle" attrs="{'readonly': True}"/>
- <field name="female_move" attrs="{'readonly': True}"/>
- <field name="weared_move" attrs="{'readonly': True}"/>
- <field name="transformation_event" attrs="{'readonly': True}"/>
- </field>
- </field>
- </record>
- <record id="view_weaning_event_female_cycle_form" model="ir.ui.view">
- <field name="name">weaning_event_female_cycle.form</field>
- <field name="model">farm.weaning.event_female_cycle</field>
- <field name="type">form</field>
- <field name="arch" type="xml">
- <form string="Wearing Event-female cycle">
- <group>
- <field name="event"/>
- </group>
- </form>
- </field>
-
- </record>
- <record id="view_weaning_event_female_cycle_tree" model="ir.ui.view">
- <field name="name">weaning_event_female_cycle.tree</field>
- <field name="model">farm.weaning.event_female_cycle</field>
- <field name="type">tree</field>
- <field name="arch" type="xml">
- <tree>
- <field name="event"/>
- </tree>
- </field>
-
- </record>
- </data>
- </openerp>
|