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