hi,
     I tried to access the old registration table for storing the entered 
data in the new registration form(field charity). Error throws such 
as"InternalError: cannot execute INSERT in a read-only transaction" 

how to resolve this problem?














*def on_change_charity(self):        OldRegistration= 
Pool().get('outpatient.old.patient.registration')        #tests = 
OldRegistration.browse(Transaction().context.get('active_ids'))        
print "saved"        lis=[]        registration={}        
#registration['pmrn']=self.pmrn        #registration['opid']=self.opid    
    registration['charity']=self.charity        lis.append(registration)    
    OldRegistration.create(lis)        return {}        *

Reply via email to