search nurse
parent
e79317fa95
commit
66bbddaa40
|
@ -15,7 +15,7 @@
|
||||||
<tab string="Nurses">
|
<tab string="Nurses">
|
||||||
<field name="nurses" nolabel="1">
|
<field name="nurses" nolabel="1">
|
||||||
<list>
|
<list>
|
||||||
<field name="nurse_id" onchange="onchange_nurse"/>
|
<field name="nurse_id" domain="[['type','=','nurse']]" onchange="onchange_nurse"/>
|
||||||
<field name="level_id"/>
|
<field name="level_id"/>
|
||||||
</list>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<item string="HD Case Expense" action="clinic_hd_case_expense"/>
|
<item string="HD Case Expense" action="clinic_hd_case_expense"/>
|
||||||
<divider/>
|
<divider/>
|
||||||
<header string="REPORTS"/>
|
<header string="REPORTS"/>
|
||||||
<item string="Cost By Period" action="clinic_labor_cost"/>
|
<item string="Payment Matching" action="clinic_payment_matching"/>
|
||||||
<item string="Staff Fee Summary" action="clinic_report_staff_fee_sum"/>
|
<item string="Staff Fee Summary" action="clinic_report_staff_fee_sum"/>
|
||||||
<item string="Staff Fee Detail" action="clinic_report_staff_fee_detail"/>
|
<item string="Staff Fee Detail" action="clinic_report_staff_fee_detail"/>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -175,7 +175,10 @@ class Staff(Model):
|
||||||
vals=[]
|
vals=[]
|
||||||
for obj in self.browse(ids):
|
for obj in self.browse(ids):
|
||||||
level=obj.level_id
|
level=obj.level_id
|
||||||
name="%s (%s)"%(obj.name,level.name)
|
lname=""
|
||||||
|
if level:
|
||||||
|
lname=level.name
|
||||||
|
name="%s (%s)"%(obj.name,lname)
|
||||||
vals.append((obj.id,name))
|
vals.append((obj.id,name))
|
||||||
return vals
|
return vals
|
||||||
|
|
||||||
|
@ -184,11 +187,11 @@ class Staff(Model):
|
||||||
if domain:
|
if domain:
|
||||||
dom=[dom,domain]
|
dom=[dom,domain]
|
||||||
ids1=self.search(dom)
|
ids1=self.search(dom)
|
||||||
# XXX need to store db
|
|
||||||
dom=[["level_id.name","ilike","%"+name+"%"]]
|
dom=[["name","ilike","%"+name+"%"]]
|
||||||
if domain:
|
level_ids=get_model('clinic.staff.level').search(dom)
|
||||||
dom=[dom,domain]
|
ids2=[x['id'] for x in self.search_read([domain],['level_id']) if x['level_id'][0] in level_ids]
|
||||||
ids2=self.search_read(dom)
|
|
||||||
ids=list(set(ids1+ids2))
|
ids=list(set(ids1+ids2))
|
||||||
return self.name_get(ids,context=context)
|
return self.name_get(ids,context=context)
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
============
|
||||||
|
urgent
|
||||||
|
- report Matching Payment
|
||||||
|
- special cost
|
||||||
|
-
|
||||||
|
============
|
||||||
-- tonight -
|
-- tonight -
|
||||||
- matching
|
- matching
|
||||||
- report expense
|
- report expense
|
||||||
|
|
Loading…
Reference in New Issue