visit
parent
2617a06228
commit
5ec01dc64a
|
@ -60,7 +60,7 @@
|
||||||
<item string="Valcular Access" action="clinic_vascular_access"/>
|
<item string="Valcular Access" action="clinic_vascular_access"/>
|
||||||
<item string="Clinic Settings" action="clinic_setting"/>
|
<item string="Clinic Settings" action="clinic_setting"/>
|
||||||
<divider/>
|
<divider/>
|
||||||
<header string="IMPORTING"/>
|
<header string="IMPORTS"/>
|
||||||
<item string="Import Product" action="import_clinic_product"/>
|
<item string="Import Product" action="import_clinic_product"/>
|
||||||
<item string="Import Patient" action="import_clinic_patient"/>
|
<item string="Import Patient" action="import_clinic_patient"/>
|
||||||
<item string="Import Visit" action="import_clinic_visit"/>
|
<item string="Import Visit" action="import_clinic_visit"/>
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from netforce.model import Model, fields
|
from netforce.model import Model, fields
|
||||||
|
from netforce.access import get_active_company
|
||||||
|
|
||||||
class HDCaseExpense(Model):
|
class HDCaseExpense(Model):
|
||||||
_name="clinic.hd.case.expense"
|
_name="clinic.hd.case.expense"
|
||||||
_string="Expense"
|
_string="Expense"
|
||||||
_name_field="date"
|
_name_field="date"
|
||||||
|
_multi_company=True
|
||||||
|
|
||||||
def _get_patient_conflict(self,ids,context={}):
|
def _get_patient_conflict(self,ids,context={}):
|
||||||
res={}
|
res={}
|
||||||
|
@ -28,11 +30,13 @@ class HDCaseExpense(Model):
|
||||||
'state': fields.Selection([['draft','Draft'],['waiting_matching','Waiting Matching'],['match','Match'],['unmatch','Unmatch'],['approved','Approved']],'State'),
|
'state': fields.Selection([['draft','Draft'],['waiting_matching','Waiting Matching'],['match','Match'],['unmatch','Unmatch'],['approved','Approved']],'State'),
|
||||||
'note': fields.Text("Note"),
|
'note': fields.Text("Note"),
|
||||||
'pt_conflict': fields.Boolean("Patient Conclict",function="_get_patient_conflict"),
|
'pt_conflict': fields.Boolean("Patient Conclict",function="_get_patient_conflict"),
|
||||||
|
'company_id': fields.Many2One("company","Company"),
|
||||||
}
|
}
|
||||||
|
|
||||||
_defaults={
|
_defaults={
|
||||||
'state': 'draft',
|
'state': 'draft',
|
||||||
'date': time.strftime("%Y-%m-%d"),
|
'date': time.strftime("%Y-%m-%d"),
|
||||||
|
"company_id": lambda *a: get_active_company(),
|
||||||
}
|
}
|
||||||
|
|
||||||
_order="date desc"
|
_order="date desc"
|
||||||
|
|
|
@ -280,8 +280,10 @@ class Visit(Model):
|
||||||
'doctor_id': doctor.id,
|
'doctor_id': doctor.id,
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
data['doctor_id']=None
|
doctor=patient.doctor_id
|
||||||
data['department_id']=None
|
department=patient.department_id
|
||||||
|
data['doctor_id']=doctor.id
|
||||||
|
data['department_id']=department.id
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
-- tonight -
|
||||||
|
- matching
|
||||||
|
- report expense
|
||||||
|
-- cost nurse / doctor
|
||||||
|
|
||||||
|
|
||||||
- missing
|
- missing
|
||||||
- import schedule -> wait K. Ekk
|
- import schedule -> wait K. Ekk
|
||||||
- missing hd case in staff (nurse, doctor)
|
- missing hd case in staff (nurse, doctor)
|
||||||
|
|
Loading…
Reference in New Issue