weaning_event.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_weaning_event_tree" model="ir.ui.view">
  5. <field name="name">weaning_event.tree</field>
  6. <field name="model">farm.weaning.event</field>
  7. <field name="mode">primary</field>
  8. <field name="inherit_id" ref="view_abstract_event_import_mixin_tree" />
  9. <field name="arch" type="xml">
  10. <field name="lot" position="after">
  11. <field name="farrowing_group" />
  12. </field>
  13. </field>
  14. </record>
  15. <record id="view_weaning_event_form" model="ir.ui.view">
  16. <field name="name">weaning_event.form</field>
  17. <field name="model">farm.weaning.event</field>
  18. <field name="mode">primary</field>
  19. <field name="inherit_id" ref="view_abstract_event_import_mixin_form" />
  20. <field name="arch" type="xml">
  21. <field name="state" position="after">
  22. <h1>Weaning Event</h1>
  23. </field>
  24. <field name="lot" position="after">
  25. <field name="quantity"/>
  26. <field name="female_to_location" domain="[('location_id.location_id', '=', farm)]"/>
  27. <field name="weared_group" domain="[('state', '!=', 'fatten'), ('state', '!=', 'sold')]"/>
  28. <field name="weaned_to_location"/>
  29. <field name="farrowing_group" attrs="{'readonly': True}"/>
  30. <field name="female_cycle" attrs="{'readonly': True}"/>
  31. <field name="female_move" attrs="{'readonly': True}"/>
  32. <field name="weared_move" attrs="{'readonly': True}"/>
  33. <field name="transformation_event" attrs="{'readonly': True}"/>
  34. </field>
  35. </field>
  36. </record>
  37. <record id="view_weaning_event_female_cycle_form" model="ir.ui.view">
  38. <field name="name">weaning_event_female_cycle.form</field>
  39. <field name="model">farm.weaning.event_female_cycle</field>
  40. <field name="type">form</field>
  41. <field name="arch" type="xml">
  42. <form string="Wearing Event-female cycle">
  43. <group>
  44. <field name="event"/>
  45. </group>
  46. </form>
  47. </field>
  48. </record>
  49. <record id="view_weaning_event_female_cycle_tree" model="ir.ui.view">
  50. <field name="name">weaning_event_female_cycle.tree</field>
  51. <field name="model">farm.weaning.event_female_cycle</field>
  52. <field name="type">tree</field>
  53. <field name="arch" type="xml">
  54. <tree>
  55. <field name="event"/>
  56. </tree>
  57. </field>
  58. </record>
  59. </data>
  60. </openerp>