A macroscopic model describing elastic-plastic solids is derived in a special case of the internal specific energy taken in separable form: it is the sum of a hydrodynamic part depending only on the density and entropy, and a shear part depending on other invariants of the Finger tensor. In particular, the relaxation terms are constructed compatible with the von Mises yield criteria. In addition, Maxwell-type material behaviour is shown up: the deviatoric part of the stress tensor decays during plastic deformations. Numerical examples show the ability of this model to deal with real physical phenomena.