Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

res_partner.xml 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record model="ir.ui.view" id="ms_dokter_tree_view">
  5. <field name="name">ms.dokter.tree</field>
  6. <field name="model">res.partner</field>
  7. <field name="arch" type="xml">
  8. <tree string="Dokter">
  9. <field name="kode"/>
  10. <field name="name"/>
  11. <field name="mobile" string="No HP/Telp"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <record id="view_ms_dokter_search" model="ir.ui.view">
  16. <field name="name">ms.dokter.search</field>
  17. <field name="model">res.partner</field>
  18. <field name="arch" type="xml">
  19. <search string="Search Dokter">
  20. <field name="kode"/>
  21. <field name="name"/>
  22. <field name="mobile" string="No HP/Telp"/>
  23. <filter name="group_nama" string="Nama" domain="[]" context="{'group_by':'name'}"/>
  24. </search>
  25. </field>
  26. </record>
  27. <record model="ir.ui.view" id="ms_dokter_form_view">
  28. <field name="name">ms.dokter.form</field>
  29. <field name="model">res.partner</field>
  30. <field name="arch" type="xml">
  31. <form string="Dokter">
  32. <sheet>
  33. <group col="4">
  34. <field name="kode" string="Kode Dokter" required="1"/>
  35. <field name="name" string="Nama" required="1"/>
  36. <field name="street" string="Alamat" required="1"/>
  37. <field name="mobile" string="No HP/Telp"/>
  38. <field name="dokter" invisible="1"/>
  39. </group>
  40. <notebook>
  41. <page string="History Dokter">
  42. <field name="history_dokter" readonly="1" attrs="{'invisible': [('dokter','!=',True)]}"/>
  43. </page>
  44. <page string="Note">
  45. <group>
  46. <field name="comment" nolabel="1" class="oe_inline" placeholder="Note"/>
  47. </group>
  48. </page>
  49. </notebook>
  50. </sheet>
  51. </form>
  52. </field>
  53. </record>
  54. <record model="ir.actions.act_window" id="ms_dokter_action">
  55. <field name="name">Dokter</field>
  56. <field name="res_model">res.partner</field>
  57. <field name="view_type">form</field>
  58. <field name="view_mode">tree,form</field>
  59. <field name="context">{'default_dokter':True}</field>
  60. <field name="domain">[('dokter','=',True)]</field>
  61. <field name="search_view_id" ref="view_ms_dokter_search"/>
  62. </record>
  63. <record id="ms_dokter_action_tree" model="ir.actions.act_window.view">
  64. <field eval="1" name="sequence"/>
  65. <field name="view_mode">tree</field>
  66. <field name="view_id" ref="ms_dokter_tree_view"/>
  67. <field name="act_window_id" ref="ms_dokter_action"/>
  68. </record>
  69. <record id="ms_dokter_action_form" model="ir.actions.act_window.view">
  70. <field eval="2" name="sequence"/>
  71. <field name="view_mode">form</field>
  72. <field name="view_id" ref="ms_dokter_form_view"/>
  73. <field name="act_window_id" ref="ms_dokter_action"/>
  74. </record>
  75. <menuitem action="ms_dokter_action" id="ms_dokter_menu" parent="ms_base.ms_data_master_submenu" sequence="10"/>
  76. <!-- Form Pasien -->
  77. <record model="ir.ui.view" id="ms_pasien_tree_view">
  78. <field name="name">ms.pasien.tree</field>
  79. <field name="model">res.partner</field>
  80. <field name="arch" type="xml">
  81. <tree string="Pasien">
  82. <field name="kode"/>
  83. <field name="name"/>
  84. <field name="pekerjaan"/>
  85. <field name="jenis_kelamin"/>
  86. <field name="gol_darah"/>
  87. </tree>
  88. </field>
  89. </record>
  90. <record id="view_ms_pasien_search" model="ir.ui.view">
  91. <field name="name">ms.pasien.search</field>
  92. <field name="model">res.partner</field>
  93. <field name="arch" type="xml">
  94. <search string="Search Pasien">
  95. <field name="kode"/>
  96. <field name="name"/>
  97. <field name="pekerjaan"/>
  98. <field name="jenis_kelamin"/>
  99. <field name="gol_darah"/>
  100. <filter name="group_pekerjaan" string="Pekerjaan" domain="[]" context="{'group_by':'pekerjaan'}"/>
  101. <filter name="group_jenis_kelamin" string="Jenis Kelamin" domain="[]" context="{'group_by':'jenis_kelamin'}"/>
  102. <filter name="group_gol_darah" string="Golongan Darah" domain="[]" context="{'group_by':'gol_darah'}"/>
  103. </search>
  104. </field>
  105. </record>
  106. <record model="ir.ui.view" id="ms_pasien_form_view">
  107. <field name="name">ms.pasien.form</field>
  108. <field name="model">res.partner</field>
  109. <field name="arch" type="xml">
  110. <form string="Pasien">
  111. <sheet>
  112. <div class="oe_title">
  113. <h1>
  114. <field name="kode" class="oe_inline" readonly="1"/>
  115. </h1>
  116. </div>
  117. <group col="4">
  118. <field name="name" string="Nama" required="1"/>
  119. <field name="jenis_kelamin" required="1"/>
  120. <field name="tgl_lahir" required="1"/>
  121. <field name="status" required="1"/>
  122. <field name="gol_darah"/>
  123. <field name="mobile" string="No HP/Telp"/>
  124. <field name="street" string="Alamat" required="1"/>
  125. <field name="pekerjaan" required="1"/>
  126. <field name="nama_pekerjaan" attrs="{'required': [('pekerjaan','=','lain')], 'invisible': [('pekerjaan','!=','lain')]}"/>
  127. <field name="pasien" invisible="1"/>
  128. </group>
  129. <notebook>
  130. <page string="History Pasien">
  131. <field name="history_pasien" readonly="1" attrs="{'invisible': [('pasien','!=',True)]}"/>
  132. </page>
  133. <page name="note" string="Note">
  134. <group>
  135. <field name="comment" nolabel="1" class="oe_inline" placeholder="Note"/>
  136. </group>
  137. </page>
  138. </notebook>
  139. </sheet>
  140. </form>
  141. </field>
  142. </record>
  143. <record model="ir.actions.act_window" id="ms_pasien_action">
  144. <field name="name">Pasien</field>
  145. <field name="res_model">res.partner</field>
  146. <field name="view_type">form</field>
  147. <field name="view_mode">tree,form</field>
  148. <field name="context">{'default_pasien':True}</field>
  149. <field name="domain">[('pasien','=',True)]</field>
  150. <field name="search_view_id" ref="view_ms_pasien_search"/>
  151. </record>
  152. <record id="ms_pasien_action_tree" model="ir.actions.act_window.view">
  153. <field eval="1" name="sequence"/>
  154. <field name="view_mode">tree</field>
  155. <field name="view_id" ref="ms_pasien_tree_view"/>
  156. <field name="act_window_id" ref="ms_pasien_action"/>
  157. </record>
  158. <record id="ms_pasien_action_form" model="ir.actions.act_window.view">
  159. <field eval="2" name="sequence"/>
  160. <field name="view_mode">form</field>
  161. <field name="view_id" ref="ms_pasien_form_view"/>
  162. <field name="act_window_id" ref="ms_pasien_action"/>
  163. </record>
  164. <menuitem action="ms_pasien_action" id="ms_pasien_menu" parent="ms_base.ms_data_master_submenu" sequence="20"/>
  165. </data>
  166. </odoo>