specie.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="view_specie_tree">
  5. <field name="name">specie.tree</field>
  6. <field name="model">farm.specie</field>
  7. <field name="type">tree</field>
  8. <field name="arch" type="xml">
  9. <tree string="Specie">
  10. <field name="name"/>
  11. <field name="male_enabled"/>
  12. <field name="female_enabled"/>
  13. <field name="individual_enabled"/>
  14. <field name="group_enabled"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <record model="ir.ui.view" id="view_specie_form">
  19. <field name="name">specie.form</field>
  20. <field name="model">farm.specie</field>
  21. <field name="type">form</field>
  22. <field name="arch" type="xml">
  23. <form string="Specie">
  24. <header>
  25. <group >
  26. <field name="name"/>
  27. </group>
  28. </header>
  29. <sheet>
  30. <group col="4" colspan="2">
  31. <field name="male_enabled"/>
  32. <field name="male_product"
  33. attrs="{'invisible':[('male_enabled','=',False)],'required':[('male_enabled','=',True)]}"/>
  34. <field name="female_enabled"/>
  35. <field name="female_product"
  36. attrs="{'invisible':[('female_enabled','=',False)],'required':[('female_enabled','=',True)]}"/>
  37. <field name="individual_enabled"/>
  38. <field name="individual_product"
  39. attrs="{'invisible':[('individual_enabled','=',False)],'required':[('individual_enabled','=',True)]}"/>
  40. <field name="group_enabled"/>
  41. <field name="group_product"
  42. attrs="{'invisible':[('group_enabled','=',False)],'required':[('group_enabled','=',True)]}"/>
  43. </group>
  44. <group>
  45. <field name="semen_product"/>
  46. <field name="sale_product"/>
  47. </group>
  48. <group col="4" colspan="2">
  49. <field name="breeds"/>
  50. <field name="farm_lines"/>
  51. </group>
  52. <group>
  53. <field name="removed_location"/>
  54. <field name="foster_location"/>
  55. <field name="lost_found_location"/>
  56. <field name="future_maders_location"/>
  57. <field name="feed_lost_found_location"/>
  58. <field name="consumed_feed_location"/>
  59. </group>
  60. </sheet>
  61. </form>
  62. </field>
  63. </record>
  64. <record model="ir.ui.view" id="view_farm_line_tree">
  65. <field name="name">farm.line.tree</field>
  66. <field name="model">farm.specie.farm_line</field>
  67. <field name="type">tree</field>
  68. <field name="arch" type="xml">
  69. <tree string="Farm Line">
  70. <field name="specie"/>
  71. <field name="farm"/>
  72. </tree>
  73. </field>
  74. </record>
  75. <record model="ir.ui.view" id="view_farm_line_form">
  76. <field name="name">farm.line.form</field>
  77. <field name="model">farm.specie.farm_line</field>
  78. <field name="type">form</field>
  79. <field name="arch" type="xml">
  80. <form string="Farm Line">
  81. <sheet>
  82. <group>
  83. <field name="specie"/>
  84. <field name="farm"/>
  85. <field name="event_order_sequence"/>
  86. </group>
  87. </sheet>
  88. </form>
  89. </field>
  90. </record>
  91. </data>
  92. </openerp>