Here are some pictures of before and after the modification, which consisted to remove the old cord lamp and replace it with a AC/IEC socket. The ground is not connected inside but the ground wire of the cable is still helpful for some technical reasons I don't remember... It works, all is good