Add fields Nurse
parent
694abcf75b
commit
c1d7e1d3ca
|
@ -2,21 +2,30 @@
|
||||||
<head>
|
<head>
|
||||||
<field name="state"/>
|
<field name="state"/>
|
||||||
<button string="Options" dropdown="1">
|
<button string="Options" dropdown="1">
|
||||||
<item string="Item1"/>
|
<item string="Item1"/>
|
||||||
</button>
|
</button>
|
||||||
</head>
|
</head>
|
||||||
<tabs>
|
<separator string="Nurse Information"/>
|
||||||
<tab string="Nurse general">
|
<group span="12" colunm="2">
|
||||||
<separator string="Nurse Info"/>
|
<field name="number"/>
|
||||||
<field name="number"/>
|
<field name="date"/>
|
||||||
<field name="name"/>
|
</group>
|
||||||
<field name="date"/>
|
<group span="12" colunm="2">
|
||||||
<field name="birthday"/>
|
<field name="name"/>
|
||||||
<field name="department"/>
|
<field name="lname"/>
|
||||||
<field name="telephone"/>
|
</group>
|
||||||
<field name="mobile"/>
|
<group span="12" colunm="2">
|
||||||
</tab>
|
<field name="card_id"/>
|
||||||
</tabs>
|
<field name="card_expire"/>
|
||||||
|
</group>
|
||||||
|
<field name="number2"/>
|
||||||
|
<field name="licen_issued"/>
|
||||||
|
<field name="birthday" span="12"/>
|
||||||
|
<group span="12" colunm="2">
|
||||||
|
<field name="telephone"/>
|
||||||
|
<field name="mobile"/>
|
||||||
|
</group>
|
||||||
|
<field name="department"/>
|
||||||
<related>
|
<related>
|
||||||
<field name="addresses"/>
|
<field name="addresses"/>
|
||||||
</related>
|
</related>
|
||||||
|
|
|
@ -11,13 +11,19 @@ class Nurse(Model):
|
||||||
_name_field="name"
|
_name_field="name"
|
||||||
_multi_company=True
|
_multi_company=True
|
||||||
_fields={
|
_fields={
|
||||||
"number": fields.Char("Number",required=True,search=True),
|
"number": fields.Char("Nurse No.",required=True,search=True),
|
||||||
"name": fields.Char("Name",required=True,search=True),
|
"name": fields.Char("First name",required=True,search=True),
|
||||||
|
#"last_name" : fields.char("Last name"),
|
||||||
|
"lname" : fields.Char("Last name"),
|
||||||
"date": fields.Date("Create Date",required=True,search=True),
|
"date": fields.Date("Create Date",required=True,search=True),
|
||||||
"birthday": fields.Date("BirthDay",required=True,search=True),
|
"card_id" : fields.Char("Identity ID"),
|
||||||
"telephone": fields.Char("Telephone",required=True,search=True),
|
"card_expire" : fields.Date("Expire Date"),
|
||||||
"department": fields.Char("Department",required=True,search=True),
|
"birthday": fields.Date("Date of Birth",required=False,search=True),
|
||||||
"mobile": fields.Char("Mobile",required=True,search=True),
|
"telephone": fields.Char("Telephone",required=False,search=True),
|
||||||
|
"department": fields.Selection([("temporary","Temporary"),("permanent","Permanent")],"Department"),
|
||||||
|
"mobile": fields.Char("Mobile",required=False,search=True),
|
||||||
|
"number2" : fields.Char("Certificate No."),
|
||||||
|
"licen_issued" : fields.Date("Issued on"),
|
||||||
"state": fields.Selection([("draft","Draft"),("active","Active"),("deactive","Deactive")],"Status",required=True),
|
"state": fields.Selection([("draft","Draft"),("active","Active"),("deactive","Deactive")],"Status",required=True),
|
||||||
"addresses": fields.One2Many("address","related_id","Addresses"),
|
"addresses": fields.One2Many("address","related_id","Addresses"),
|
||||||
"comments": fields.One2Many("message","related_id","Comments"),
|
"comments": fields.One2Many("message","related_id","Comments"),
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Patient(Model):
|
||||||
"first_name": fields.Char("First Name",required=True,search=True),
|
"first_name": fields.Char("First Name",required=True,search=True),
|
||||||
"last_name": fields.Char("Last Name",required=False,search=True),
|
"last_name": fields.Char("Last Name",required=False,search=True),
|
||||||
"date": fields.Date("Create Date",required=False,search=True),
|
"date": fields.Date("Create Date",required=False,search=True),
|
||||||
"birthday": fields.Date("BirthDay",required=False,search=True),
|
"birthday": fields.Date("Date of birth",required=False,search=True),
|
||||||
"telephone": fields.Char("Telephone",required=False,search=True),
|
"telephone": fields.Char("Telephone",required=False,search=True),
|
||||||
"mobile": fields.Char("Mobile",required=False,search=True),
|
"mobile": fields.Char("Mobile",required=False,search=True),
|
||||||
"job": fields.Char("Job"),
|
"job": fields.Char("Job"),
|
||||||
|
|
Loading…
Reference in New Issue