Hii All,
I have applied copy function for "duplicate" button. But after applying this function my record is not saved. Here "create" and "new" are states selection field. But when i save "duplicate" record then state is not changed from "create" to "new". It consist only "create". Can anyone check it. Here is my python code for copy function.
def copy(self, cr, uid, id, default=None, context=None):
if default is None:
default = {}
print "default", default
default['create'] = ['new']
return super(sun_helpdesk, self).copy(cr, uid, id, default, context)