xxx
							parent
							
								
									1ae0f40d5c
								
							
						
					
					
						commit
						fc5b1a2d9a
					
				| 
						 | 
					@ -1,19 +1,12 @@
 | 
				
			||||||
<list model="clinic.patient" colors='{"#cfc":[["state","=","confirmed"]],"#dbdbdb":[["state","=","dispose"]]}'>
 | 
					<list model="clinic.patient" colors='{"#cfc":[["state","=","confirmed"]],"#dbdbdb":[["state","=","dispose"]]}'>
 | 
				
			||||||
    <!--
 | 
					 | 
				
			||||||
    <head>
 | 
					 | 
				
			||||||
        <button string="Generate Visit" action="clinic_gen_visit" type="success"/>
 | 
					 | 
				
			||||||
    </head>
 | 
					 | 
				
			||||||
    -->
 | 
					 | 
				
			||||||
    <field name="reg_date"/>
 | 
					    <field name="reg_date"/>
 | 
				
			||||||
    <field name="hn_no"/>
 | 
					    <field name="hn_no"/>
 | 
				
			||||||
    <field name="trt_no"/>
 | 
					    <field name="trt_no"/>
 | 
				
			||||||
    <field name="card_no"/>
 | 
					    <field name="card_no"/>
 | 
				
			||||||
    <field name="name"/>
 | 
					    <field name="name"/>
 | 
				
			||||||
    <field name="type_id"/>
 | 
					    <field name="type_id"/>
 | 
				
			||||||
    <field name="walkin"/>
 | 
					 | 
				
			||||||
    <!--<field name="department_names"/>-->
 | 
					 | 
				
			||||||
    <field name="department_id"/>
 | 
					 | 
				
			||||||
    <field name="doctor_id"/>
 | 
					    <field name="doctor_id"/>
 | 
				
			||||||
 | 
					    <field name="department_id"/>
 | 
				
			||||||
 | 
					    <field name="walkin"/>
 | 
				
			||||||
    <field name="dispose"/>
 | 
					    <field name="dispose"/>
 | 
				
			||||||
    <!--<field name="image" preview='1'/>-->
 | 
					 | 
				
			||||||
</list>
 | 
					</list>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -155,7 +155,7 @@ class Patient(Model):
 | 
				
			||||||
        'cycles': fields.One2Many("clinic.patient.cycle","patient_id", "Cycles"),
 | 
					        'cycles': fields.One2Many("clinic.patient.cycle","patient_id", "Cycles"),
 | 
				
			||||||
        "vascular_acc": fields.Many2One("clinic.vascular.access","Vascular Ac."),
 | 
					        "vascular_acc": fields.Many2One("clinic.vascular.access","Vascular Ac."),
 | 
				
			||||||
        'state': fields.Selection([['admit','Admit'],['dispose','Dispose']],'State'),
 | 
					        'state': fields.Selection([['admit','Admit'],['dispose','Dispose']],'State'),
 | 
				
			||||||
        'walkin': fields.Selection([['yes','Yes'],['no','No']],"Walk In"),
 | 
					        'walkin': fields.Selection([['yes','Yes'],['no','No']],"Walkin"),
 | 
				
			||||||
        'departments': fields.Many2Many("clinic.department","Departments"),
 | 
					        'departments': fields.Many2Many("clinic.department","Departments"),
 | 
				
			||||||
        'department_names': fields.Text("Departments",function="_get_department_names"),
 | 
					        'department_names': fields.Text("Departments",function="_get_department_names"),
 | 
				
			||||||
        'location': fields.Char("Location",function="_get_location",store=True), #to filter
 | 
					        'location': fields.Char("Location",function="_get_location",store=True), #to filter
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue