# Do not allow to assign consumable products without lot when it is required

**URL:** https://discuss.tryton.org/t/do-not-allow-to-assign-consumable-products-without-lot-when-it-is-required/2072
**Category:** Developer
**Tags:** stock
**Created:** [December 11, 2019, 10:19am UTC](https://discuss.tryton.org/t/do-not-allow-to-assign-consumable-products-without-lot-when-it-is-required/2072 "2019-12-11T10:19:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![oscarQ](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/oscarq/32/413_2.png) [@oscarQ](https://discuss.tryton.org/u/oscarQ)
#### Post date: [December 11, 2019, 10:19am UTC](https://discuss.tryton.org/t/do-not-allow-to-assign-consumable-products-without-lot-when-it-is-required/2072/1 "2019-12-11T10:19:46Z")

</div>

Currently, if you try to assign a consumable product with lot required, it allows you to assign the move without lot. It’s true that Tryton do not permit to mark the move as done, but then I think that does not make any sense to allow to assign it.  
Am I missing something?

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [December 11, 2019, 10:59am UTC](https://discuss.tryton.org/t/do-not-allow-to-assign-consumable-products-without-lot-when-it-is-required/2072/2 "2019-12-11T10:59:56Z")

</div>

> [@oscarQ](#):
>
> assign a consumable

For me, it is not related to consumable or not.

> [@oscarQ](#):
>
> Am I missing something?

Lot are there to record what happened. It is wrong to force employee to pick a specific lot using the assignation process. So by default, the assignation does not care about the lot, but this can be activated by extending the `grouping` parameter of `Move.assign_try` to include lot. But in this case the lot would need to be filled before the assignation.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [January 10, 2020, 10:59am UTC](https://discuss.tryton.org/t/do-not-allow-to-assign-consumable-products-without-lot-when-it-is-required/2072/3 "2020-01-10T10:59:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
