conv_bal
watcha.h@almacom.co.th 2015-01-09 17:39:33 +07:00
parent c9c104908a
commit 039c884bf6
9 changed files with 54 additions and 58 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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">

View File

@ -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>

View File

@ -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"/>

View File

@ -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>

View File

@ -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={

View File

@ -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