# Checking supplier shipment is well "stored" before to be Done

**URL:** <https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769>\
**Category:** Developer\
**Tags:** stock\
**Created:** [May 25, 2020, 3:19pm UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769 "2020-05-25T15:19:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)\
**Post date:** [May 25, 2020, 3:19pm UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769/1 "2020-05-25T15:19:25Z")

</div>

Hi, need some advices about storage management…  
We have a warehouse with multiple physical storage zones… Each storage zone has multiple locations.  
Small example:

Warehouse

- Input Zone
- Storage Zone
  - storage\_area\_1

  - storage\_area\_2

- Output Zone

storage\_area\_1, storage\_area\_2 are storage zones with flat children. All our products are stored in locations s1-…, s2- which are the lower level of storage location.

When doing a supplier shipment, after doing “receive”, in the inventory moves, the default “To Location” is “Storage Zone”. In our case, nothing could be stored in this zone (it’s just a “virtual zone”) it’s the same for storage\_area\_1, storage\_area\_2…  
But sometimes the user, forget to update to “To Location” to the correct storage location…

Questions:

- Could the “Storage Zone” converted into a “view” as location type instead of storage to prevent to do moves into this location ? Would this location still by default as “To Location” for the inventory moves (supplier shipment)
- Would it be better (through a custom dev) to check before doing the supplier shipment if all the “To Location” are different from the default warehouse storage location ?
- Should i convert all the locations where i don’t want products to be stored into “views” ? ( storage\_area\_1, storage\_area\_2…

Any suggestions ? Better way of doing ?  
Thanks ! 🙂

---

<div class="post-metadata">

**Author:** ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)\
**Post date:** [May 25, 2020, 4:54pm UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769/2 "2020-05-25T16:54:08Z")

</div>

> [@maxx](#):
>
> Could the “Storage Zone” converted into a “view” as location type instead of storage to prevent to do moves into this location ? Would this location still by default as “To Location” for the inventory moves (supplier shipment)

I think this is the way to go. If you do not plan to storage any product on the Storage location you can set it a view. Tryton will use it as default value for the shipments but will prevent to finish the shipment (as it is not possible to move a product to a view location). This will force the user to specify a children location for each move, where he indicates the real location where the product is stored.

> [@maxx](#):
>
> Should i convert all the locations where i don’t want products to be stored into “views” ? ( storage\_area\_1, storage\_area\_2…

Yes, as far as you only have this locations to sum the products of children locations they should all be views.

---

<div class="post-metadata">

**Author:** ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)\
**Post date:** [May 26, 2020, 6:57am UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769/3 "2020-05-26T06:57:24Z")

</div>

Thanks for your explanations! 🙂  
Is there any way to apply this on a database with existing moves implying locations i wish to convert in views?

---

<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:** [May 26, 2020, 7:10am UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769/4 "2020-05-26T07:10:59Z")

</div>

Only if there was never any move created on the location that is changed (except staging and draft).  
Otherwise you have to correct those moves if possible to not use the location.

---

<div class="post-metadata">

**Author:** ![maxx](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/maxx/32/2320_2.png) [@maxx](https://discuss.tryton.org/u/maxx)\
**Post date:** [May 26, 2020, 7:27am UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769/5 "2020-05-26T07:27:18Z")

</div>

Hum, ok. But until we notice this problem, there’s already more than 400 moves using this location!  
There’s some tip in Tryton, we should really know before to use it because they are very important concerning the process and after some weeks of use/misuse ( 🙂 ) , it’s difficult to change the behaviour… But we don’t think all the practical aspects until noticing some errors made by final users.

---

<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:** [May 26, 2020, 7:30am UTC](https://discuss.tryton.org/t/checking-supplier-shipment-is-well-stored-before-to-be-done/2769/6 "2020-05-26T07:30:34Z")

</div>

Now if you are sure that no quantities is left on the location, you may perform an update with SQL.
