class si(osv.osv):
_name='si'
_columns ={
'street':fields.char('Street',size=100,required=True),
}
def btnSet(self,cr,uid,ids,values,context=None):
self.pool.get('res.partner').write(cr,uid,ids,{'street2':street},context=context)
return True
si()
why i got this error?
self.pool.get('res.partner').write(cr,uid,ids,{'street2':street},context=context) NameError: global name 'street' is not defined
I just want to transfer the value from my 'street' field to the res_partner's street2 field.