eiru_study_feature.xml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- tree view -->
  5. <record id="study_feature_tree" model="ir.ui.view">
  6. <field name="name">study.feature.tree</field>
  7. <field name="model">study.feature</field>
  8. <field name="arch" type="xml">
  9. <tree string="study Feature">
  10. <field name="name" string="Numero"/>
  11. <field name="order_date" string="Fecha"/>
  12. <field name="partner_id" string="Paciente"/>
  13. <field name="product_id" string="Estudio"/>
  14. <field name="user_id" string="Responsable"/>
  15. </tree>
  16. </field>
  17. </record>
  18. <!-- form view -->
  19. <record id="study_feature_form" model="ir.ui.view">
  20. <field name="name">study.feature.form</field>
  21. <field name="model">study.feature</field>
  22. <field name="arch" type="xml">
  23. <form string="study Feature">
  24. <sheet>
  25. <div class="oe_title">
  26. <h1>
  27. <label string="Numero de Estudio "/>
  28. <field name="name" class="oe_inline" readonly="1"/>
  29. </h1>
  30. </div>
  31. <group>
  32. <group>
  33. <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' string="Cliente" required="1"/>
  34. <field name="product_id" required="1" string="Estudio Realizado"/>
  35. </group>
  36. <group>
  37. <field string="Fecha de estudio" name="order_date" required="1"/>
  38. <field name="user_id" required="1"/>
  39. </group>
  40. </group>
  41. <notebook>
  42. <page string="Información">
  43. <group>
  44. <group string="Diagnóstico">
  45. <field name="diagnostic" nolabel="1"/>
  46. </group>
  47. <group string="Causas">
  48. <field name="causes" nolabel="1"/>
  49. </group>
  50. </group>
  51. <group>
  52. <group string="Acciones">
  53. <field name="actions" nolabel="1"/>
  54. </group>
  55. <group string="Recomendaciones">
  56. <field name="recommendations" nolabel="1"/>
  57. </group>
  58. </group>
  59. </page>
  60. </notebook>
  61. </sheet>
  62. </form>
  63. </field>
  64. </record>
  65. <record id="action_study_feature" model="ir.actions.act_window">
  66. <field name="name">Estudios</field>
  67. <field name="type">ir.actions.act_window</field>
  68. <field name="res_model">study.feature</field>
  69. <field name="view_type">form</field>
  70. <field name="view_mode">tree,form</field>
  71. </record>
  72. <menuitem id="study_feature" parent="base.menu_sales" action="action_study_feature" name="Estudios" sequence="20"/>
  73. </data>
  74. </openerp>