Merge pull request #15069 from ATM-Consulting/fix/9.0_linked_object_on_supplier_proposal_events

FIX 9.0 - when users create an event from a supplier proposal, the "linked objects" section says "Deleted"
This commit is contained in:
Laurent Destailleur 2020-10-22 16:10:49 +02:00 committed by GitHub
commit 8ce929d509
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1872,6 +1872,12 @@ function dolGetElementUrl($objectid,$objecttype,$withpicto=0,$option='')
$classpath = 'fourn/class';
$module='fournisseur';
}
elseif ($objecttype == 'supplier_proposal') {
$classfile = 'supplier_proposal';
$classname = 'SupplierProposal';
$classpath = 'supplier_proposal/class';
$module = 'supplier_proposal';
}
elseif ($objecttype == 'stock') {
$classpath = 'product/stock/class';
$classfile='entrepot';