conv_bal
watcha.h@almacom.co.th 2015-01-21 16:53:56 +07:00
parent 642f5c8c10
commit 39ff9d56a0
3 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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,