insemination_event.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_insemination_event_tree" model="ir.ui.view">
  5. <field name="name">insemination_event.tree</field>
  6. <field name="model">farm.insemination.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="dose_product" />
  12. <field name="female_cycle" />
  13. </field>
  14. </field>
  15. </record>
  16. <record id="view_insemination_event_form" model="ir.ui.view">
  17. <field name="name">insemination_event.form</field>
  18. <field name="model">farm.insemination.event</field>
  19. <field name="mode">primary</field>
  20. <field name="inherit_id" ref="view_abstract_event_import_mixin_form" />
  21. <field name="arch" type="xml">
  22. <field name="state" position="after">
  23. <h1>Insemination Event</h1>
  24. </field>
  25. <field name="lot" position="after">
  26. <field name="female_cycle" attrs="{'readonly': True}"/>
  27. <field name="dose_bom" />
  28. <field name="dose_product" />
  29. <field name="dose_lot" domain="[('product_id', '=', dose_product)]"/>
  30. <field name="move" attrs="{'readonly': True, }"/>
  31. </field>
  32. </field>
  33. </record>
  34. </data>
  35. </openerp>