FIX: Massaction Create Bills from expedition (#36958)

Co-authored-by: Noé <noe@scopen.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
noec764
2026-01-23 18:29:12 +01:00
committed by GitHub
parent 36b681153e
commit c19e4e33cb

View File

@@ -299,7 +299,7 @@ if (empty($reshook)) {
}
if ($objecttmp->id > 0) {
$res = $objecttmp->add_object_linked($objecttmp->origin, $id_sending);
$res = $objecttmp->add_object_linked($objecttmp->origin_type, $id_sending);
if ($res == 0) {
$errors[] = $expd->ref.' : '.$langs->trans($objecttmp->errors[0]);