[FIX] ir.module.module: create module xml id also when auto-discovered

It was only being created during database initialization