We show that a lattice of phase oscillators with random natural frequencies, described by generalization the nearest-neighbor Kuramoto model an additional cosine coupling term, undergoes transition from desynchronized to synchronized state. This may be derived complex Ginzburg-Landau equations describing disordered driven-dissipative Bose-Einstein condensates exciton polaritons. derive diagrams...