# Stock quantity is empty

**URL:** https://discuss.tryton.org/t/stock-quantity-is-empty/6346
**Category:** User
**Created:** [July 15, 2023, 12:06pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346 "2023-07-15T12:06:03Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 15, 2023, 12:06pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/1 "2023-07-15T12:06:03Z")

</div>

👋 hello, i just find out that all my stock location quantity under the location tab is empty, i dont know what may cause this but on my stock moves i can see the quantity and description. I try to check from product page and using the relate button to view the quantity. All i got is an empty page

Note i had stock before today

---

<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: [July 17, 2023, 8:43am UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/2 "2023-07-17T08:43:35Z")

</div>

Maybe your user is not in the right company.  
Or check if there are no error on the client or server side.

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 17, 2023, 8:49am UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/3 "2023-07-17T08:49:16Z")

</div>

I dont get any error from the server or client side has the tabel open just that it show empty stock, i would have a look at the company information and see what may casue it, but i noticed that when i try to puchase, after clicking the last button which should move the puchase product to shipment, it is not moving it to shipment. I then try to use internal shipment and found out that the moment i click on done the product quantity move back to zero

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [July 17, 2023, 9:24pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/4 "2023-07-17T21:24:42Z")

</div>

> [@adeseg99](#):
>
> Note i had stock before today

What exactly changes after?  
Do you have any stock moves?  
Is the actual company of your login user correct?

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 19, 2023, 3:54pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/5 "2023-07-19T15:54:22Z")

</div>

I cant say what changed maybe someone chnaged a permission but i have gine over the permission and all are same.

Yes i have stock moves eg the stock moves table show that their are stick moves.  
Now i check the user details and find out its still on same company.

Right now i cant point to anything.

I try to disable the modules and reenable still same.

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 19, 2023, 3:55pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/6 "2023-07-19T15:55:19Z")

</div>

I even had to look at the database of stock moves and find out that its all in the database, but i cant get it to display on stock location quantity

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [July 19, 2023, 7:52pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/7 "2023-07-19T19:52:23Z")

</div>

When you have stock moves, then there must be quantities some where in some of the locations at some date.  
Maybe play with the _At Date_ and remove it?  
Another idea could be that you use Lots or serial numbers for your products.  
When you open one of the products relate actions with stock, is there shown anything?  
E.g. Stock moves by warehouse, to determine if the product is moved. If there are results, have a look at locations list quantity, locations tree quantity or lots by warehouse.

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 20, 2023, 12:00pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/8 "2023-07-20T12:00:52Z")

</div>

When i relate from the relate button nothing show but on moves i can see the product name and details from and to in the stock location

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 20, 2023, 12:15pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/9 "2023-07-20T12:15:26Z")

</div>

I just noticed this if i try to do a purchase after completing the puchase which is to create an invoice and also a shipment, its not creating the shipment at all

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [July 20, 2023, 12:25pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/10 "2023-07-20T12:25:34Z")

</div>

> [@adeseg99](#):
>
> but on moves i can see the product name and details from to to in the stock location

so what is shown when you pick a move with product and date (fill At Date in the relate) and show the products relate action locations list quantity, locations tree quantity or lots by warehouse?  
Vice versa on a stock location you also can show the products and quantities at a date.

Adding a screenshot from the list of stock moves showing state, from and to location, product, quantity, planned and effective date could be helpful …

> [@adeseg99](#):
>
> its not creating the shipment at all

This is Ok. You create the shipment-in manually when the parcel arrives. Add a shipment, choose the supplier, in the Incoming Moves you use the [+] and [-] buttons, which show the expected product and quantities.

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 20, 2023, 1:16pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/11 "2023-07-20T13:16:43Z")

</div>

When i do internal shipment the product stock move to 0 when i click done

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 20, 2023, 1:20pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/12 "2023-07-20T13:20:06Z")

</div>

What do i need to do now i dont understand again

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [July 20, 2023, 1:39pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/13 "2023-07-20T13:39:22Z")

</div>

> [@adeseg99](#):
>
> What do i need to do now i dont understand again

AFAIU we are searching where your products are. In stock products are shown when they have a stock quantity unequal to zero. The calculation of the stock quantity in Tryton is the sum of all stock moves in a location minus the sum of all stock moves out of the location, for moves lesser equal then a specific date.

When you have stock moves of products with quantities \> 0, then there must be a quantity of the product in some location at a time.

> [@udono](#):
>
> so what is shown when you pick a move with product and date (fill At Date in the relate) and show the products relate action locations list quantity, locations tree quantity or lots by warehouse?

- Select a product which is used in a stock move
- Open relate “Locations tree Quantity”
- fill the effective date from stock move in the field “At Date” of the result, refresh
- play with a day before, after this date always refresh.

The result shows the locations and quantities of the product at this date.

> [@udono](#):
>
> Vice versa on a stock location you also can show the products and quantities at a date.

- Open inventory & stock / locations / locations
- Select all locations
- Click relate “Products by Locations”

The result shows the quantity of each Product in any location.

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 20, 2023, 2:01pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/14 "2023-07-20T14:01:25Z")

</div>

I went to product and search for product then i select it, then select realate to locations list quantity and location tree quantity all gave nothing on the tab of the stock.

Then i went to try the inventory and stock/locations/locations and i highlighted all and then relate to product by locations all still same i am still on version 5.0.34 server

---

<div class="post-metadata">

### Author: ![adeseg99](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/a/977dab/32.png) [@adeseg99](https://discuss.tryton.org/u/adeseg99)
#### Post date: [July 20, 2023, 2:18pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/15 "2023-07-20T14:18:19Z")

</div>

I have done the at date stuff and its nothing to display, the only issue i ahve is on the moves i see the quantity move from one location to another, to view the total by location its not showing i may have tampered with a permission i dont know

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [July 20, 2023, 5:32pm UTC](https://discuss.tryton.org/t/stock-quantity-is-empty/6346/16 "2023-07-20T17:32:21Z")

</div>

> [@adeseg99](#):
>
> i may have tampered with a permission i dont know

go to your user preferences and add all groups, re-login and look if it works.

> [@adeseg99](#):
>
> Note i had stock before today

Here it would be good if you think and ask you colleagues what changed in between. And is it possible that your stock is simply empty?

Anyway I am running out of ideas.
