change layout clinic setting
parent
01be234519
commit
2f011dcaa8
|
@ -1,14 +1,12 @@
|
|||
<form model="clinic.setting" title="Clinic Settings">
|
||||
<tabs>
|
||||
<tab string="Visit">
|
||||
<field name="find_dlz"/>
|
||||
</tab>
|
||||
<tab string="HD Case">
|
||||
<separator string="Visit"/>
|
||||
<field name="find_dlz" span="4"/>
|
||||
<field name="auto_gen_visit" span="6"/>
|
||||
<separator string="HD Case"/>
|
||||
<group form_layout="stacked">
|
||||
<field name="waiting_approval" span="3"/>
|
||||
<field name="real_time" span="3"/>
|
||||
<field name="auto_gen" invisible="1" span="3"/>
|
||||
<separator string="Expenes"/>
|
||||
<field name="products" nolabel="1">
|
||||
<list>
|
||||
<field name="patient_type_id" onchange="onchange_ptype"/>
|
||||
|
@ -23,16 +21,12 @@
|
|||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</tab>
|
||||
<tab string="RD Shop">
|
||||
<separator string="RD Shop"/>
|
||||
<field name="shop_type_id"/>
|
||||
<field name="signature"/>
|
||||
</tab>
|
||||
<tabs>
|
||||
<tab string="Development">
|
||||
<button string="Click Me" type="default" method="run_script" perm="clinic_setting_test"/>
|
||||
<!--<button string="Remove Duplicate Visit" type="default" icon="arrow-right" method="remove_douplicate_visit" perm="clinic_setting_rm_dbl_visit"/>-->
|
||||
</tab>
|
||||
</tabs>
|
||||
<foot>
|
||||
</foot>
|
||||
</form>
|
||||
|
|
|
@ -37,6 +37,7 @@ class ClinicSetting(Model):
|
|||
'patient_type_id': fields.Many2One("clinic.patient.type","Default Type"), # Import payment
|
||||
'imp_patient_type_id': fields.Many2One("clinic.patient.type","Import UC Type"), # Import payment
|
||||
'find_dlz': fields.Boolean("Find Dialyzer After Confirm Visit"), # Visit
|
||||
'auto_gen_visit': fields.Boolean("Auto Generate Visit Before Next Month"), # Visit
|
||||
'stock_journal_id': fields.Many2One("stock.journal","Default Journal"),
|
||||
'auto_gen': fields.Boolean("Auto Gen"), # HD Case
|
||||
'schd_from': fields.Date("From"),
|
||||
|
@ -951,4 +952,8 @@ class ClinicSetting(Model):
|
|||
res['hns'][hn]=vals
|
||||
return res
|
||||
|
||||
def generate_visit(self,ids,context={}):
|
||||
obj=self.browse(ids)[0]
|
||||
print(">>>>")
|
||||
|
||||
ClinicSetting.register()
|
||||
|
|
Loading…
Reference in New Issue