refactor
parent
c9c104908a
commit
039c884bf6
|
@ -0,0 +1,9 @@
|
|||
<record model="action">
|
||||
<field name="name">clinic_account_setting</field>
|
||||
<field name="view">form_view</field>
|
||||
<field name="model">clinic.setting</field>
|
||||
<field name="active_id">1</field>
|
||||
<field name="view_xml">clinic_account_setting</field>
|
||||
<field name="menu">account_menu</field>
|
||||
</record>
|
||||
|
|
@ -1,10 +1,9 @@
|
|||
<record model="action">
|
||||
<field name="name">clinic_setting</field>
|
||||
<field name="string">Settings</field>
|
||||
<field name="view_cls">form_view</field>
|
||||
<field name="view">form_view</field>
|
||||
<field name="model">clinic.setting</field>
|
||||
<field name="modes">form</field>
|
||||
<field name="active_id">1</field>
|
||||
<field name="view_xml">clinic_setting</field>
|
||||
<field name="menu">clinic_menu</field>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<form model="clinic.setting" title="Clinic Settings">
|
||||
<tabs>
|
||||
<tab string="Labor Cost">
|
||||
<separator string="Nurse"/>
|
||||
<field name="var_k"/>
|
||||
<field name="levels" nolabel="1">
|
||||
<list>
|
||||
<field name="level_id"/>
|
||||
<field name="var_a" onchange="onchange_line"/>
|
||||
<field name="op" onchange="onchange_line"/>
|
||||
<field name="var_b" onchange="onchange_line"/>
|
||||
<field name="formular"/>
|
||||
</list>
|
||||
<form>
|
||||
<field name="level_id"/>
|
||||
<field name="var_a"/>
|
||||
<field name="op"/>
|
||||
<field name="var_b"/>
|
||||
<field name="formular"/>
|
||||
</form>
|
||||
</field>
|
||||
<separator string="Doctor"/>
|
||||
<field name="cost_per_case"/>
|
||||
</tab>
|
||||
<tab string="Importing">
|
||||
<field name="patient_type_id"/>
|
||||
<field name="imp_patient_type_id"/>
|
||||
</tab>
|
||||
</tabs>
|
||||
</form>
|
|
@ -11,8 +11,8 @@
|
|||
<item string="Staff Fee Summary" action="clinic_report_staff_fee_sum"/>
|
||||
<item string="Staff Fee Detail" action="clinic_report_staff_fee_detail"/>
|
||||
<divider/>
|
||||
<header string="SETTINGS"/>
|
||||
<item string="Labor Cost Setting" action="clinic_report_staff_fee_sum"/>
|
||||
<header string="OTHERS"/>
|
||||
<item string="Clinic Settings" action="clinic_account_setting"/>
|
||||
</item>
|
||||
</item>
|
||||
<item string="Conversion Balances" position="after">
|
||||
|
|
|
@ -23,48 +23,7 @@
|
|||
<field name="amount"/>
|
||||
</list>
|
||||
</field>
|
||||
<!--
|
||||
<separator string="Invoice Policy"/>
|
||||
<field name="invoice_policies" nolabel="1">
|
||||
<list>
|
||||
<field name="patient_type_id"/>
|
||||
<field name="invoice_policy"/>
|
||||
<field name="invoice_option"/>
|
||||
</list>
|
||||
<form>
|
||||
<field name="patient_type_id"/>
|
||||
<field name="invoice_policy"/>
|
||||
<field name="invoice_option"/>
|
||||
</form>
|
||||
</field>
|
||||
-->
|
||||
</group>
|
||||
</tab>
|
||||
<tab string="Labor Cost">
|
||||
<separator string="Nurse"/>
|
||||
<field name="var_k"/>
|
||||
<field name="levels" nolabel="1">
|
||||
<list>
|
||||
<field name="level_id"/>
|
||||
<field name="var_a" onchange="onchange_line"/>
|
||||
<field name="op" onchange="onchange_line"/>
|
||||
<field name="var_b" onchange="onchange_line"/>
|
||||
<field name="formular"/>
|
||||
</list>
|
||||
<form>
|
||||
<field name="level_id"/>
|
||||
<field name="var_a"/>
|
||||
<field name="op"/>
|
||||
<field name="var_b"/>
|
||||
<field name="formular"/>
|
||||
</form>
|
||||
</field>
|
||||
<separator string="Doctor"/>
|
||||
<field name="cost_per_case"/>
|
||||
</tab>
|
||||
<tab string="Importing">
|
||||
<field name="patient_type_id"/>
|
||||
<field name="imp_patient_type_id"/>
|
||||
</group>
|
||||
</tab>
|
||||
<tab string="Dialyzer">
|
||||
<field name="stock_journal_id"/>
|
||||
|
@ -73,12 +32,14 @@
|
|||
<separator string='Transfer nurses to cycle item'/>
|
||||
<field name="schd_from"/>
|
||||
<field name="schd_to"/>
|
||||
<button string="Confirm" type="success" method="schd_confirm"/>
|
||||
<button string="Transfer" type="primary" icon="arrow-right" method="schd_confirm"/>
|
||||
</tab>
|
||||
<!--
|
||||
<tab string="Testing">
|
||||
<button string="Dummy" type="default" method="run_script"/>
|
||||
<button string="Reset Import" icon="repeat" type="default" method="reset_last_import"/>
|
||||
</tab>
|
||||
-->
|
||||
</tabs>
|
||||
<foot>
|
||||
</foot>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<field name="name"/>
|
||||
<field name="available" readonly="1"/>
|
||||
<field name="sequence"/>
|
||||
<field name="note"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<related>
|
||||
<field name="hd_cases"/>
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
<field name="level_id"/>
|
||||
<field name="categ_id"/>
|
||||
<field name="type"/>
|
||||
<field name="image"/>
|
||||
<field name="image" preview="1"/>
|
||||
<field name="state"/>
|
||||
</list>
|
||||
|
|
|
@ -34,6 +34,7 @@ class SickBed(Model):
|
|||
'date': fields.Date("Date",function="_get_all",function_multi=True),
|
||||
"state": fields.Selection([("available","Available"),("not_available","Not Available")],"Status"),
|
||||
'sequence': fields.Integer("Sequence"),
|
||||
'note': fields.Text("Note"),
|
||||
}
|
||||
|
||||
_defaults={
|
||||
|
|
|
@ -1,13 +1,8 @@
|
|||
=====
|
||||
-bug
|
||||
- generate schedule
|
||||
- copy nurse
|
||||
- create duplicate
|
||||
- access right
|
||||
- fix bug
|
||||
- schedule
|
||||
- import
|
||||
- check name
|
||||
- get account id by product -> ok
|
||||
- access right control
|
||||
|
||||
=====
|
||||
create button reset at setting
|
||||
- backup master data
|
||||
|
|
Loading…
Reference in New Issue