Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9776 Lượt xem

Hello,

I have 1 custom models that is lot.lot

When I purchased product, create lot in under lot.lot model

Now I want to transfer lot into the different products.

So for that, I created 2 move that is, 1 out move(lot.lot product) and 1 in move(product.product)

But when I transfer, it shown be below warning.

Warning :- It is not possible to unreserve more products of Lot than you have in stock.(stock -> models -> stock_quant.py -> line no 266)

Example :-
I purchased Test1 product with 20 qty. So there is creates 1 lot for that in that lot product will be Test1 and qty, remaining qty will be 20 as well.

There is wizard for transfer. I select Test2 with 5 qty and Test3 with 5 qty. When I transfer, usererror occurs for Test1 product.

What I have to achieve is that :-
when it is done, Test1 product have left 10 qty while Test2 and Test3 both have left 5 qty each.

It can be happened in Odoo10.0 but It can't be work with Odoo12.0 

Is there any relation between stock.move and stock.quant? If Yes, How can I connect to each other.

In Odoo10.0, there is method called "_quant_create_from_move" in quant, so easily update the value but In Odoo12.0, I can't see any relation between stock.move and stock.quant

How can I solve this ?

Any help or answer is appreciable.
Thanks,

Ảnh đại diện
Huỷ bỏ
Tác giả

Hello, Any update regarding this will be valuable for me. Thanks,

If it is solved what is the solution please ?

solution please!

Câu trả lời hay nhất

Hi,

Enable debug mode and navigate to server action menu under settings and see if there is a server action named:  Correct inconsistencies for reservation

If found, click on Run button, which will solve the issue, if server action is not found, pull the latest source code of corresponding odoo version and upgrade the stock module.


More info:  https://github.com/odoo/odoo/commit/e0e63be484b0ebddc7d498a4a13b2ba7a7f1a1f4#diff-c0d27a4adc8bbd305125f4e2729e30fe444fdd4e5ca0f96f2dd7f1fab19fe80eR17


Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Thomas,

For my case, below link solved the issue.

https://www.odoo.com/forum/help-1/question/it-is-not-possible-to-unreserve-more-products-of-than-you-have-in-stock-138783

Update: Sorry, I read the Question wrongly. That link fixed Unable to unreserve error, not OP mentioned issue.


Update

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 22
3862
0
thg 7 18
4636
2
thg 2 24
4142
0
thg 2 19
2697
2
thg 7 17
5976