Hello everyone,
I created a form with a button,then I created the function in python file.but when I click the button,nothing happens.
This is my function:
def getrecord_treeview(self, cr, uid, ids, context=None):
#print "welcome"
mod_obj = self.pool.get('ir.model.data')
res = mod_obj.get_object_reference(cr, uid, 'kegenmail','view_kmail_form')
res_id = res and res[1] or False
return{
'name':_('kegenmail'),
'res_model':'kegenmail',
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'view_id': [res_id],
'context':{},
'target':'new'
}
return true
please help me to solve these problems