handle fk_origin for stock movement for users the core way

This commit is contained in:
Christian Foellmann 2020-10-01 12:31:00 +02:00
parent f442dac2c9
commit a890b2d7ad

View File

@ -1002,6 +1002,10 @@ class MouvementStock extends CommonObject
require_once DOL_DOCUMENT_ROOT.'/mrp/class/mo.class.php';
$origin = new Mo($this->db);
break;
case 'user':
require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
$origin = new User($this->db);
break;
default:
if ($origintype)