Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0
This commit is contained in:
commit
af7570a2cd
@ -120,7 +120,7 @@ if (empty($reshook)) {
|
||||
}
|
||||
|
||||
// Close inventory by recording the stock movements
|
||||
if ($action == 'update' && !empty($user->rights->stock->mouvement->creer)) {
|
||||
if ($action == 'update' && !empty($user->rights->stock->mouvement->creer) && $object->status == $object::STATUS_VALIDATED) {
|
||||
$stockmovment = new MouvementStock($db);
|
||||
$stockmovment->setOrigin($object->element, $object->id);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user