change layout clinic setting
							parent
							
								
									01be234519
								
							
						
					
					
						commit
						2f011dcaa8
					
				| 
						 | 
					@ -1,38 +1,32 @@
 | 
				
			||||||
<form model="clinic.setting" title="Clinic Settings">
 | 
					<form model="clinic.setting" title="Clinic Settings">
 | 
				
			||||||
 | 
					    <separator string="Visit"/>
 | 
				
			||||||
 | 
					    <field name="find_dlz" span="4"/>
 | 
				
			||||||
 | 
					    <field name="auto_gen_visit" span="6"/>
 | 
				
			||||||
 | 
					    <separator string="HD Case"/>
 | 
				
			||||||
 | 
					    <group form_layout="stacked">
 | 
				
			||||||
 | 
					        <field name="waiting_approval" span="3"/>
 | 
				
			||||||
 | 
					        <field name="real_time" span="3"/>
 | 
				
			||||||
 | 
					        <field name="auto_gen" invisible="1" span="3"/>
 | 
				
			||||||
 | 
					        <field name="products" nolabel="1">
 | 
				
			||||||
 | 
					            <list>
 | 
				
			||||||
 | 
					                <field name="patient_type_id" onchange="onchange_ptype"/>
 | 
				
			||||||
 | 
					                <field name="product_categ_id"/>
 | 
				
			||||||
 | 
					                <field name="product_id" domain='[["categ_id.id","=",product_categ_id],["patient_types.id","=",patient_type_id]]' onchange="onchange_product"/>
 | 
				
			||||||
 | 
					                <field name="description"/>
 | 
				
			||||||
 | 
					                <field name="reimbursable"/>
 | 
				
			||||||
 | 
					                <field name="uom_id"/>
 | 
				
			||||||
 | 
					                <field name="price" onchange="onchange_setting_line"/>
 | 
				
			||||||
 | 
					                <field name="qty" onchange="onchange_setting_line"/>
 | 
				
			||||||
 | 
					                <field name="amount"/>
 | 
				
			||||||
 | 
					            </list>
 | 
				
			||||||
 | 
					        </field>
 | 
				
			||||||
 | 
					   </group>
 | 
				
			||||||
 | 
					    <separator string="RD Shop"/>
 | 
				
			||||||
 | 
					    <field name="shop_type_id"/>
 | 
				
			||||||
 | 
					    <field name="signature"/>
 | 
				
			||||||
    <tabs>
 | 
					    <tabs>
 | 
				
			||||||
        <tab string="Visit">
 | 
					 | 
				
			||||||
            <field name="find_dlz"/>
 | 
					 | 
				
			||||||
        </tab>
 | 
					 | 
				
			||||||
        <tab string="HD Case">
 | 
					 | 
				
			||||||
            <group form_layout="stacked">
 | 
					 | 
				
			||||||
                <field name="waiting_approval" span="3"/>
 | 
					 | 
				
			||||||
                <field name="real_time" span="3"/>
 | 
					 | 
				
			||||||
                <field name="auto_gen" invisible="1" span="3"/>
 | 
					 | 
				
			||||||
                <separator string="Expenes"/>
 | 
					 | 
				
			||||||
                <field name="products" nolabel="1">
 | 
					 | 
				
			||||||
                    <list>
 | 
					 | 
				
			||||||
                        <field name="patient_type_id" onchange="onchange_ptype"/>
 | 
					 | 
				
			||||||
                        <field name="product_categ_id"/>
 | 
					 | 
				
			||||||
                        <field name="product_id" domain='[["categ_id.id","=",product_categ_id],["patient_types.id","=",patient_type_id]]' onchange="onchange_product"/>
 | 
					 | 
				
			||||||
                        <field name="description"/>
 | 
					 | 
				
			||||||
                        <field name="reimbursable"/>
 | 
					 | 
				
			||||||
                        <field name="uom_id"/>
 | 
					 | 
				
			||||||
                        <field name="price" onchange="onchange_setting_line"/>
 | 
					 | 
				
			||||||
                        <field name="qty" onchange="onchange_setting_line"/>
 | 
					 | 
				
			||||||
                        <field name="amount"/>
 | 
					 | 
				
			||||||
                    </list>
 | 
					 | 
				
			||||||
                </field>
 | 
					 | 
				
			||||||
           </group>
 | 
					 | 
				
			||||||
        </tab>
 | 
					 | 
				
			||||||
        <tab string="RD Shop">
 | 
					 | 
				
			||||||
            <field name="shop_type_id"/>
 | 
					 | 
				
			||||||
            <field name="signature"/>
 | 
					 | 
				
			||||||
        </tab>
 | 
					 | 
				
			||||||
        <tab string="Development">
 | 
					        <tab string="Development">
 | 
				
			||||||
            <button string="Click Me" type="default" method="run_script" perm="clinic_setting_test"/>
 | 
					            <button string="Click Me" type="default" method="run_script" perm="clinic_setting_test"/>
 | 
				
			||||||
            <!--<button string="Remove Duplicate Visit" type="default" icon="arrow-right" method="remove_douplicate_visit" perm="clinic_setting_rm_dbl_visit"/>-->
 | 
					 | 
				
			||||||
        </tab>
 | 
					        </tab>
 | 
				
			||||||
    </tabs>
 | 
					    </tabs>
 | 
				
			||||||
    <foot>
 | 
					 | 
				
			||||||
    </foot>
 | 
					 | 
				
			||||||
</form>
 | 
					</form>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,6 +37,7 @@ class ClinicSetting(Model):
 | 
				
			||||||
        'patient_type_id': fields.Many2One("clinic.patient.type","Default Type"), # Import payment
 | 
					        'patient_type_id': fields.Many2One("clinic.patient.type","Default Type"), # Import payment
 | 
				
			||||||
        'imp_patient_type_id': fields.Many2One("clinic.patient.type","Import UC Type"), # Import payment
 | 
					        'imp_patient_type_id': fields.Many2One("clinic.patient.type","Import UC Type"), # Import payment
 | 
				
			||||||
        'find_dlz': fields.Boolean("Find Dialyzer After Confirm Visit"), # Visit
 | 
					        'find_dlz': fields.Boolean("Find Dialyzer After Confirm Visit"), # Visit
 | 
				
			||||||
 | 
					        'auto_gen_visit': fields.Boolean("Auto Generate Visit Before Next Month"), # Visit
 | 
				
			||||||
        'stock_journal_id': fields.Many2One("stock.journal","Default Journal"),
 | 
					        'stock_journal_id': fields.Many2One("stock.journal","Default Journal"),
 | 
				
			||||||
        'auto_gen': fields.Boolean("Auto Gen"), # HD Case
 | 
					        'auto_gen': fields.Boolean("Auto Gen"), # HD Case
 | 
				
			||||||
        'schd_from': fields.Date("From"),
 | 
					        'schd_from': fields.Date("From"),
 | 
				
			||||||
| 
						 | 
					@ -950,5 +951,9 @@ class ClinicSetting(Model):
 | 
				
			||||||
            if hn not in res['hns'].keys():
 | 
					            if hn not in res['hns'].keys():
 | 
				
			||||||
                res['hns'][hn]=vals
 | 
					                res['hns'][hn]=vals
 | 
				
			||||||
        return res
 | 
					        return res
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    def generate_visit(self,ids,context={}):
 | 
				
			||||||
 | 
					        obj=self.browse(ids)[0]
 | 
				
			||||||
 | 
					        print(">>>>")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ClinicSetting.register()
 | 
					ClinicSetting.register()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue