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