# How to create an inventory on several locations

**URL:** <https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163>\
**Category:** User\
**Created:** [August 31, 2020, 12:57pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163 "2020-08-31T12:57:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylviegar](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sylviegar](https://discuss.tryton.org/u/sylviegar)\
**Post date:** [August 31, 2020, 12:57pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/1 "2020-08-31T12:57:09Z")

</div>

I would like to make an inventory that contains several locations (example 2-A1, 2-A2,2-A3, etc), is it possible in Tryton ?

---

<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:** [August 31, 2020, 1:32pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/2 "2020-08-31T13:32:06Z")

</div>

You should create on inventory for each location.

There is the [stock\_inventory\_location](https://docs.tryton.org/projects/modules-stock-inventory-location/en/latest/) module which can be used to select a list of locations and create an inventory for one of them.

---

<div class="post-metadata">

**Author:** ![sylviegar](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sylviegar](https://discuss.tryton.org/u/sylviegar)\
**Post date:** [August 31, 2020, 1:39pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/3 "2020-08-31T13:39:31Z")

</div>

I have 552 locations, so I have to create 552 inventories and print 552 pages, it’s a bit tedious.

---

<div class="post-metadata">

**Author:** ![tbruyere](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/tbruyere/32/37_2.png) [@tbruyere](https://discuss.tryton.org/u/tbruyere)\
**Post date:** [August 31, 2020, 1:44pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/4 "2020-08-31T13:44:15Z")

</div>

We have the same concerns with 1600 “locations”.  
We have tried to create a “SUPER” inventory that includes all the child locations.  
This is to be able to carry out the inventory at the higher level.  
But unfortunately this module is not fully operational.  
I think there is an idea for improvement to think about for the standard inventory system in Tryton.

---

<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:** [August 31, 2020, 1:45pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/5 "2020-08-31T13:45:05Z")

</div>

Well you have to set the content of all your 552 locations, no matter what design is used.

---

<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:** [August 31, 2020, 1:54pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/6 "2020-08-31T13:54:32Z")

</div>

If you do not create 552 inventories how do you prefer to inclue the quantities of all locations?  
Creating 552 inventories ensures that there is no missing location.

---

<div class="post-metadata">

**Author:** ![sylviegar](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/s/b77776/32.png) [@sylviegar](https://discuss.tryton.org/u/sylviegar)\
**Post date:** [August 31, 2020, 2:06pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/7 "2020-08-31T14:06:15Z")

</div>

If I create a location structure like the one :  
 ![image](https://discuss-cdn.tryton.org/uploads/default/optimized/2X/7/7add236745b43a139130373139d17455bdeccb99_2_690x40.png)  
With the inventory creation wizard, if I select location “2” of the view type, all the locations under “2” should be brought back into the inventory.  
In the inventory, the location should be put in the line and not in the header.  
It’s just an idea

---

<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:** [August 31, 2020, 2:09pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/8 "2020-08-31T14:09:03Z")

</div>

> [@sylviegar](#):
>
> In the inventory, the location should be put in the line and not in the header.

But this will just make think more complex as you will not know the location each inventory belongs to.

Furthemore, you will need to enter the same amount of lines, so no reduction of the task.

> [@sylviegar](#):
>
> With the inventory creation wizard, if I select location “2” of the view type, all the locations under “2” should be brought back into the inventory.

You can just search for all the locations that are child of 2 and include on the wizard.  
An inventory will be created for all of them.

---

<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:** [September 1, 2020, 12:22pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/9 "2020-09-01T12:22:25Z")

</div>

I think we are missing the confirm button on the list view so it is possible to confirm all the inventories at once.  
Also the wizard should give the option to complete or not the created inventories and to set the value for “empty quantity”.

For the encoding, I do not think we need to change because when doing an inventory we count products per location. So it seems logical and easier to get the inventory for the current location and fill lines.

---

<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:** [September 1, 2020, 1:08pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/10 "2020-09-01T13:08:22Z")

</div>

I filled [Improve inventories creation wizard (#9563) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue9563) which:

- adds relate to open inventory lines so it is possible to search inventory lines from multiple inventories. It should simplify the encoding.
- adds empty quantity and complete lines options so the created inventories have the proper setup.

---

<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:** [September 1, 2020, 4:35pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/11 "2020-09-01T16:35:06Z")

</div>

I see you did not implement:

> [@ced](#):
>
> the confirm button on the list view

but I agree this will be a good adition.

---

<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:** [September 1, 2020, 4:37pm UTC](https://discuss.tryton.org/t/how-to-create-an-inventory-on-several-locations/3163/12 "2020-09-01T16:37:03Z")

</div>

I added it to the `stock_inventory_location`. I think it is the proper place because this feature is needed when you have a lot of locations and in such case you have probably this module activated.
