Fix create supplier invoice from supplier order don't keep source object as linked obkect
This commit is contained in:
parent
24bb61b5e4
commit
bb64d2d353
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user