Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ms_pemeriksaan.xml 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <odoo>
  2. <data>
  3. <record model="ir.ui.view" id="ms_pemeriksaan_tree_view">
  4. <field name="name">ms.pemeriksaan.tree</field>
  5. <field name="model">ms.pemeriksaan</field>
  6. <field name="arch" type="xml">
  7. <tree string="Pemeriksaan">
  8. <field name="name"/>
  9. <field name="pendaftaran_id"/>
  10. <field name="pasien_id"/>
  11. <field name="jenis_kelamin"/>
  12. <field name="usia"/>
  13. <field name="poli_id"/>
  14. <field name="dokter_id"/>
  15. <field name="state"/>
  16. </tree>
  17. </field>
  18. </record>
  19. <record id="view_ms_pemeriksaan_search" model="ir.ui.view">
  20. <field name="name">ms.pemeriksaan.search</field>
  21. <field name="model">ms.pemeriksaan</field>
  22. <field name="arch" type="xml">
  23. <search string="Search Pemeriksaan">
  24. <field name="name"/>
  25. <field name="pendaftaran_id"/>
  26. <field name="pasien_id"/>
  27. <field name="jenis_kelamin"/>
  28. <field name="usia"/>
  29. <field name="poli_id"/>
  30. <field name="dokter_id"/>
  31. <field name="state"/>
  32. <filter string="Draft" name="draft" domain="[('state','=','draft')]"/>
  33. <filter string="Confirm" name="confirm" domain="[('state','=','confirm')]"/>
  34. <group expand="0" string="Group By">
  35. <filter name="group_pasien" string="Pasien" domain="[]" context="{'group_by':'pasien_id'}"/>
  36. <filter name="group_jenis_kelamin" string="Jenis" domain="[]" context="{'group_by':'jenis_kelamin'}"/>
  37. <filter name="group_poli" string="Poli" domain="[]" context="{'group_by':'poli_id'}"/>
  38. <filter name="group_dokter" string="Poli" domain="[]" context="{'group_by':'dokter_id'}"/>
  39. </group>
  40. </search>
  41. </field>
  42. </record>
  43. <record model="ir.ui.view" id="ms_pemeriksaan_form_view">
  44. <field name="name">ms.pemeriksaan.form</field>
  45. <field name="model">ms.pemeriksaan</field>
  46. <field name="arch" type="xml">
  47. <form string="Pemeriksaan">
  48. <header>
  49. <button name="action_confirm" string="Confirm" type="object" class="oe_highlight" attrs="{'invisible': [('state','!=','draft')]}"/>
  50. <button name="action_cancel" string="Cancel" type="object" attrs="{'invisible': [('state','=','cancel')]}"/>
  51. <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
  52. </header>
  53. <sheet>
  54. <div class="oe_title">
  55. <h1>
  56. <field name="name" class="oe_inline" readonly="1"/>
  57. </h1>
  58. </div>
  59. <group col="4">
  60. <field name="pendaftaran_id" domain="[('state','in',['confirm'])]" attrs="{'readonly': [('state','!=','draft')]}" required="1" options="{'no_open': True, 'no_create': True}"/>
  61. <field name="tanggal" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  62. <field name="pasien_id" domain="[('pasien','=',True)]" attrs="{'readonly': [('state','!=','draft')]}" required="1" options="{'no_open': True, 'no_create': True}"/>
  63. <field name="jenis_kelamin" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  64. <field name="usia" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  65. <field name="poli_id" attrs="{'readonly': [('state','!=','draft')]}" required="1" options="{'no_open': True, 'no_create': True}"/>
  66. <field name="dokter_id" domain="[('dokter','=',True)]" attrs="{'readonly': [('state','!=','draft')]}" required="1" options="{'no_open': True, 'no_create': True}"/>
  67. <field name="keluhan" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  68. <field name="hasil" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  69. <field name="tindakan" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  70. </group>
  71. <notebook>
  72. <page string="Resep Obat">
  73. <field name="resep_line" attrs="{'readonly': [('state','!=','draft')]}">
  74. <tree string="Resep Obat" editable="bottom">
  75. <field name="product_id" options="{'no_open': True, 'no_create': True}"/>
  76. <field name="aturan_minum"/>
  77. <field name="waktu_minum"/>
  78. <field name="qty"/>
  79. <field name="satuan_id" options="{'no_open': True, 'no_create': True}"/>
  80. </tree>
  81. </field>
  82. </page>
  83. <page string="Audit Trail">
  84. <group>
  85. <group>
  86. <field name="create_uid" readonly="1"/>
  87. <field name="create_date" readonly="1"/>
  88. </group>
  89. <group>
  90. <field name="write_uid" readonly="1"/>
  91. <field name="write_date" readonly="1"/>
  92. </group>
  93. </group>
  94. </page>
  95. </notebook>
  96. </sheet>
  97. </form>
  98. </field>
  99. </record>
  100. <record model="ir.actions.act_window" id="ms_pemeriksaan_action">
  101. <field name="name">Pemeriksaan</field>
  102. <field name="res_model">ms.pemeriksaan</field>
  103. <field name="view_type">form</field>
  104. <field name="view_mode">tree,form</field>
  105. <field name="context">{}</field>
  106. <field name="domain">[]</field>
  107. </record>
  108. <record id="ms_pemeriksaan_action_tree" model="ir.actions.act_window.view">
  109. <field eval="1" name="sequence"/>
  110. <field name="view_mode">tree</field>
  111. <field name="view_id" ref="ms_pemeriksaan_tree_view"/>
  112. <field name="act_window_id" ref="ms_pemeriksaan_action"/>
  113. </record>
  114. <record id="ms_pemeriksaan_action_form" model="ir.actions.act_window.view">
  115. <field eval="2" name="sequence"/>
  116. <field name="view_mode">form</field>
  117. <field name="view_id" ref="ms_pemeriksaan_form_view"/>
  118. <field name="act_window_id" ref="ms_pemeriksaan_action"/>
  119. </record>
  120. <menuitem action="ms_pemeriksaan_action" id="ms_pemeriksaan_menu" parent="ms_base.ms_transaksi_submenu" sequence="20"/>
  121. </data>
  122. </odoo>