Merge pull request #24687 from atm-lena/NEW_Workstation_MoFromBom

Create Mo From Bom : workstation
This commit is contained in:
Laurent Destailleur 2023-05-05 01:16:23 +02:00 committed by GitHub
commit f39efbf274
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -736,6 +736,7 @@ class Mo extends CommonObject
$moline->position = $line->position;
$moline->qty_frozen = $line->qty_frozen;
$moline->disable_stock_change = $line->disable_stock_change;
if (!empty($line->fk_default_workstation)) $moline->fk_default_workstation = $line->fk_default_workstation;
$resultline = $moline->create($user, false); // Never use triggers here
if ($resultline <= 0) {