Update form action for work admingenerator with new object where id is not null

valerio8787