Extension of the Hartree method to strongly interacting systems