improve
parent
642f5c8c10
commit
39ff9d56a0
|
@ -8,4 +8,5 @@
|
|||
<field name="department_id" span="2"/>
|
||||
<field name="branch_id" span="2"/>
|
||||
<button string='Confirm Visits' method="confirm" type="success" icon="arrow-right"/>
|
||||
<separator string="Note: Please Click 'Run Report' Before Confirm Visits"/>
|
||||
</form>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
<field name="cycle_id"/>
|
||||
<field name="patient_id"/>
|
||||
<field name="department_id"/>
|
||||
<field name="visit_id" invisible="1"/>
|
||||
<!--<field name="visit_id" invisible="1"/>-->
|
||||
</list>
|
||||
</field>
|
||||
<foot>
|
||||
<button string="Confirm" type="success" method="confirm"/>
|
||||
<button string="Confirm" type="success" method="confirm" confirm="Are your sure?"/>
|
||||
</foot>
|
||||
</form>
|
||||
|
|
|
@ -79,7 +79,7 @@ class Staff(Model):
|
|||
"expiry_card" : fields.Date("Expired Card"),
|
||||
"birthday": fields.Date("Birthday",search=True),
|
||||
"age": fields.Integer("Age", function="_get_age"),
|
||||
"state": fields.Selection([["temporary","Temporary"],["permanent","Permanent"]],"Status",search=True),
|
||||
"state": fields.Selection([["part_time","Part Time"],["full_time","Full Time"]],"Status",search=True),
|
||||
"type": fields.Selection([['staff','Staff'],["doctor","Doctor"],["nurse","Nurse"]],"Type"),
|
||||
"gender": fields.Selection([["male","Male"],["female","Female"]],"Gender"),
|
||||
"nation_id": fields.Many2One("clinic.nation","Nationality"),
|
||||
|
@ -142,7 +142,7 @@ class Staff(Model):
|
|||
|
||||
_defaults={
|
||||
'active': True,
|
||||
"state": "temporary",
|
||||
"state": "part_time",
|
||||
"type": lambda self,ctx: ctx.get("type") or "staff",
|
||||
"date": lambda *a: time.strftime("%Y-%m-%d"),
|
||||
"number": _get_number,
|
||||
|
|
Loading…
Reference in New Issue