handle fk_origin for stock movement for users the core way
This commit is contained in:
parent
f442dac2c9
commit
a890b2d7ad
@ -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