mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-10 11:02:56 +01:00
Fix create supplier invoice from supplier order don't keep source object as linked obkect
This commit is contained in:
@@ -917,6 +917,10 @@ if (empty($reshook))
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif (!empty($object->origin) && !empty($object->origin_id))
|
||||
{
|
||||
$object->linkedObjectsIds[$object->origin] = $object->origin_id;
|
||||
}
|
||||
|
||||
$id = $object->create($user);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user