Filter Patient By tab

conv_bal
chayut.s 2014-10-01 18:24:28 +07:00
parent bc40c35d9f
commit 55ed1cc7e3
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
<field name="string">Patients</field>
<field name="view_cls">multi_view</field>
<field name="model">clinic.patient</field>
<field name="tabs">[["All",[]],["Draft",[["state","=","draft"]]],["Active",[["state","=","active"]]],["Deactive",[["state","=","deactive"]]]]</field>
<field name="tabs">[["All",[]],["Medical Goverment",[["type","=","mg"]]],["Social Security",[["type","=","sc"]]],["NHSO(30$)",[["type","=","nhso"]]],["Personal",[["type","=","personal"]]],["Other",[["type","=","other"]]]]</field>
<field name="menu">clinic_menu</field>
</action>

View File

@ -133,7 +133,7 @@ class Patient(Model):
_defaults={
"state": "draft",
"state": "mg",
"date": lambda *a: time.strftime("%Y-%m-%d"),
"number": _get_number,
"company_id": lambda *a: get_active_company(),