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