semen_extraction_event.xml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_semen_extraction_event_tree" model="ir.ui.view">
  5. <field name="name">semen_extraction_event.tree</field>
  6. <field name="model">farm.semen_extraction.event</field>
  7. <field name="mode">primary</field>
  8. <field name="inherit_id" ref="view_abstract_event_tree"/>
  9. <field name="arch" type="xml">
  10. <field name="lot" position="after">
  11. <field name="semen_lot"/>
  12. <field name="semen_qty"/>
  13. <field name="dose_bom"/>
  14. </field>
  15. </field>
  16. </record>
  17. <record id="view_semen_extraction_event_form" model="ir.ui.view">
  18. <field name="name">semen_extraction_event.form</field>
  19. <field name="model">farm.semen_extraction.event</field>
  20. <field name="mode">primary</field>
  21. <field name="inherit_id" ref="view_abstract_event_form"/>
  22. <field name="arch" type="xml">
  23. <field name="state" position="after">
  24. <button name="calculate_doses" state="draft"
  25. string="Calc. Doses" id="calc_doses"
  26. type="object" />
  27. <button name="confirm" state="draft"
  28. string="Confirm Order" id="draft_confirm"
  29. type="object" />
  30. <h1>Semen Extraction Event</h1>
  31. </field>
  32. <field name="lot" position="after">
  33. <group>
  34. <field name="semen_product"/>
  35. <field name="untreated_semen_qty"/>
  36. <field name="formula_result"/>
  37. <field name="solvent_calculated_qty"/>
  38. <field name="semen_calculated_qty"/>
  39. <field name="semen_qty"/>
  40. <field name="semen_lot"
  41. attrs="{'readonly': True}"/>
  42. <field name="semen_move"
  43. attrs="{'readonly': True}"/>
  44. <field name="dose_location"/>
  45. <field name="dose_bom"/>
  46. <field name='dose_calculated_units'/>
  47. <field name="doses" attrs="{'readonly': True}"/>
  48. <field name="doses_semen_qty"/>
  49. <field name="semen_remaining_qty"/>
  50. </group>
  51. </field>
  52. </field>
  53. </record>
  54. <record model="ir.ui.view" id="view_dose_tree">
  55. <field name="name">dose.tree</field>
  56. <field name="model">farm.semen_extraction.dose</field>
  57. <field name="type">tree</field>
  58. <field name="arch" type="xml">
  59. <tree string="Dose">
  60. <field name="sequence" />
  61. <field name="lot" />
  62. </tree>
  63. </field>
  64. </record>
  65. <record model="ir.ui.view" id="view_dose_form">
  66. <field name="name">dose.form</field>
  67. <field name="model">farm.semen_extraction.dose</field>
  68. <field name="type">form</field>
  69. <field name="arch" type="xml">
  70. <form string="Dose">
  71. <header>
  72. <field name="state" widget="statusbar"/>
  73. </header>
  74. <sheet>
  75. <group col="4" colspam="2">
  76. <field name="specie" />
  77. <field name="bom" />
  78. <field name="quantity" />
  79. <field name="semen_qty" />
  80. <field name="dose_product" />
  81. </group>
  82. <group col="4" colspam="2">
  83. <field name="production" />
  84. <field name="lot" />
  85. </group>
  86. </sheet>
  87. </form>
  88. </field>
  89. </record>
  90. </data>
  91. </openerp>