No Description
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.

ms_pendaftaran.xml 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <odoo>
  2. <data>
  3. <record model="ir.ui.view" id="ms_pendaftaran_tree_view">
  4. <field name="name">ms.pendaftaran.tree</field>
  5. <field name="model">ms.pendaftaran</field>
  6. <field name="arch" type="xml">
  7. <tree string="Pendaftaran">
  8. <field name="name"/>
  9. <field name="tanggal"/>
  10. <field name="pasien_id"/>
  11. <field name="poli_id"/>
  12. <field name="state"/>
  13. </tree>
  14. </field>
  15. </record>
  16. <record id="view_ms_pendaftaran_search" model="ir.ui.view">
  17. <field name="name">ms.pendaftaran.search</field>
  18. <field name="model">ms.pendaftaran</field>
  19. <field name="arch" type="xml">
  20. <search string="Search Pendaftaran">
  21. <field name="name"/>
  22. <field name="pasien_id"/>
  23. <field name="poli_id"/>
  24. <field name="state"/>
  25. <filter string="Draft" name="draft" domain="[('state','=','draft')]"/>
  26. <filter string="Confirm" name="confirm" domain="[('state','=','confirm')]"/>
  27. <group expand="0">
  28. <filter name="group_pasien" string="Pasien" domain="[]" context="{'group_by':'pasien_id'}"/>
  29. <filter name="group_poli" string="Poli" domain="[]" context="{'group_by':'poli_id'}"/>
  30. </group>
  31. </search>
  32. </field>
  33. </record>
  34. <record model="ir.ui.view" id="ms_pendaftaran_form_view">
  35. <field name="name">ms.pendaftaran.form</field>
  36. <field name="model">ms.pendaftaran</field>
  37. <field name="arch" type="xml">
  38. <form string="Pendaftaran">
  39. <header>
  40. <button name="action_confirm" string="Confirm" type="object" class="oe_highlight" attrs="{'invisible': [('state','!=','draft')]}"/>
  41. <button name="action_cancel" string="Cancel" type="object" attrs="{'invisible': [('state','=','cancel')]}"/>
  42. <field name="state" widget="statusbar" statusbar_visible="draft,confirm"/>
  43. </header>
  44. <sheet>
  45. <div class="oe_title">
  46. <h1>
  47. <field name="name" class="oe_inline" readonly="1"/>
  48. </h1>
  49. </div>
  50. <group col="4">
  51. <field name="pasien_id" attrs="{'readonly': [('state','!=','draft')]}" required="1" options="{'no_open': True, 'no_create': True}"/>
  52. <field name="poli_id" attrs="{'readonly': [('state','!=','draft')]}" required="1" options="{'no_open': True, 'no_create': True}"/>
  53. <field name="tanggal" attrs="{'readonly': [('state','!=','draft')]}" required="1"/>
  54. </group>
  55. <notebook>
  56. <page string="Note">
  57. <group>
  58. <field name="note" nolabel="1" class="oe_inline" placeholder="Note"/>
  59. </group>
  60. </page>
  61. <page string="Audit Trail">
  62. <group>
  63. <group>
  64. <field name="create_uid" readonly="1"/>
  65. <field name="create_date" readonly="1"/>
  66. </group>
  67. <group>
  68. <field name="write_uid" readonly="1"/>
  69. <field name="write_date" readonly="1"/>
  70. </group>
  71. </group>
  72. </page>
  73. </notebook>
  74. </sheet>
  75. </form>
  76. </field>
  77. </record>
  78. <record model="ir.actions.act_window" id="ms_pendaftaran_action">
  79. <field name="name">Pendaftaran</field>
  80. <field name="res_model">ms.pendaftaran</field>
  81. <field name="view_type">form</field>
  82. <field name="view_mode">tree,form</field>
  83. <field name="context">{}</field>
  84. <field name="domain">[]</field>
  85. </record>
  86. <record id="ms_pendaftaran_action_tree" model="ir.actions.act_window.view">
  87. <field eval="1" name="sequence"/>
  88. <field name="view_mode">tree</field>
  89. <field name="view_id" ref="ms_pendaftaran_tree_view"/>
  90. <field name="act_window_id" ref="ms_pendaftaran_action"/>
  91. </record>
  92. <record id="ms_pendaftaran_action_form" model="ir.actions.act_window.view">
  93. <field eval="2" name="sequence"/>
  94. <field name="view_mode">form</field>
  95. <field name="view_id" ref="ms_pendaftaran_form_view"/>
  96. <field name="act_window_id" ref="ms_pendaftaran_action"/>
  97. </record>
  98. <menuitem action="ms_pendaftaran_action" id="ms_pendaftaran_menu" parent="ms_base.ms_transaksi_submenu" sequence="10"/>
  99. </data>
  100. </odoo>