Merge pull request #13134 from atm-ph/fix_11.0_object_linked_from_supplier_order

Fix create supplier invoice from supplier order don't keep source object as linked obkect
This commit is contained in:
Laurent Destailleur 2020-02-18 22:18:16 +01:00 committed by GitHub
commit e73b57e969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);