Merge pull request #14887 from cfoellmann/fix-origin-user

handle fk_origin for stock movement for users the core way
This commit is contained in:
Laurent Destailleur 2020-10-01 19:15:01 +02:00 committed by GitHub
commit 89dfb9baf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)