MoLine origin is bomline not bom

This commit is contained in:
Francis Appels 2021-02-26 15:38:02 +01:00
parent 0e89dd7344
commit 3216120f44

View File

@ -656,7 +656,7 @@ class Mo extends CommonObject
$moline->fk_mo = $this->id;
$moline->origin_id = $line->id;
$moline->origin_type = 'bom';
$moline->origin_type = 'bomline';
if ($line->qty_frozen) {
$moline->qty = $line->qty; // Qty to consume does not depends on quantity to produce
} else {