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:
commit
89dfb9baf8
@ -1002,6 +1002,10 @@ class MouvementStock extends CommonObject
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/mrp/class/mo.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/mrp/class/mo.class.php';
|
||||||
$origin = new Mo($this->db);
|
$origin = new Mo($this->db);
|
||||||
break;
|
break;
|
||||||
|
case 'user':
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
|
||||||
|
$origin = new User($this->db);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if ($origintype)
|
if ($origintype)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user