Fix if we insert a product already the product to produce
This commit is contained in:
parent
fe815ed432
commit
eb69538d17
@ -146,6 +146,11 @@ if (empty($reshook))
|
|||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($object->fk_product == $idprod) {
|
||||||
|
setEventMessages($langs->trans('TheProductXIsAlreadyTheProductToProduce'), null, 'errors');
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
|
||||||
if (!$error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
$bomline = new BOMLine($db);
|
$bomline = new BOMLine($db);
|
||||||
|
|||||||
@ -52,3 +52,4 @@ WarehouseForProduction=Warehouse for production
|
|||||||
CreateMO=Create MO
|
CreateMO=Create MO
|
||||||
ToConsume=A consommer
|
ToConsume=A consommer
|
||||||
Manufactured=Fabriqué
|
Manufactured=Fabriqué
|
||||||
|
TheProductXIsAlreadyTheProductToProduce=The product to add is already the product to produce.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user