Dolibarr/dolibarr — pull request #2189 by marcosgdf (2014-12-25 22:08:59+00:00)
Title: Fixed [ bug #1766 ] PHP Warning when adding a service to a supplier invoice

Bug introduced in 132ddf65d6451fc8dd2035981087e5c21c88fb92

Comment to @eldy: When there is no defined model, the default one is used! Check generateDocument function in every class