refactor
parent
1cd49dab69
commit
d1e01e048a
|
@ -33,15 +33,17 @@
|
|||
<tab string="Professional Information">
|
||||
<field name="prof_license"/>
|
||||
<field name="prof_license_date"/>
|
||||
<field name="base"/>
|
||||
</tab>
|
||||
<tab string="Note">
|
||||
<field name="note" nolabel="1"/>
|
||||
</tab>
|
||||
</tabs>
|
||||
<related>
|
||||
<field name="visits"/>
|
||||
<field name="patients" attrs='{"invisible":[["type","in",["nurse","other"]]]}'/>
|
||||
<field name="nurse_visits" attrs='{"invisible":[["type","in",["doctor","other"]]]}'/>
|
||||
<field name="doctor_visits" attrs='{"invisible":[["type","in",["nurse","other"]]]}'/>
|
||||
<field name="hd_cases"/>
|
||||
<field name="patients"/>
|
||||
<field name="comments"/>
|
||||
</related>
|
||||
</form>
|
||||
|
|
|
@ -36,10 +36,11 @@ class Personal(Model):
|
|||
"prof_license_date" : fields.Date("License Date"),
|
||||
"birthday": fields.Date("BirthDay",search=True),
|
||||
"department_id": fields.Many2One("clinic.department", "Department",search=True),
|
||||
"patients": fields.Many2Many("clinic.patient","Patients"),
|
||||
"patients": fields.One2Many("clinic.patient","doctor_id","Patients"),
|
||||
"addresses": fields.One2Many("address","personal_id","Addresses"),
|
||||
"comments": fields.One2Many("message","related_id","Comments"),
|
||||
"visits": fields.One2Many("clinic.visit","nurse_id","Visits"),
|
||||
"nurse_visits": fields.One2Many("clinic.visit","nurse_id","Visits"),
|
||||
"doctor_visits": fields.One2Many("clinic.visit","doctor_id","Visits"),
|
||||
"hd_cases": fields.One2Many("clinic.hd.case","nurse_id","HD Cases"),
|
||||
"company_id": fields.Many2One("company","Company"),
|
||||
"user_id": fields.Many2One("base.user","User"),
|
||||
|
@ -49,6 +50,7 @@ class Personal(Model):
|
|||
'level_id': fields.Many2One("clinic.personal.level", "Level"),
|
||||
'active': fields.Boolean("Active"),
|
||||
'date': fields.Date("Register Date"),
|
||||
'base': fields.Float("Base Amount"),
|
||||
}
|
||||
|
||||
def _get_number(self,context={}):
|
||||
|
|
|
@ -3,6 +3,7 @@ missing:
|
|||
- color calendar
|
||||
- can not move calendar's schedule
|
||||
- order's visit report dialy
|
||||
- same model & mode (list) but use diffent target
|
||||
dashboard
|
||||
: hd summary report -> click and go direct
|
||||
cycle item:
|
||||
|
|
Loading…
Reference in New Issue