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

I have been experiencing erros of consistency in the stock_quant table. Is there a possibility to regenerate the table, from the stock_move_line table? Is there a python script or a call to some model that do this?

Ảnh đại diện
Huỷ bỏ

Hi,

Have you found something ?

Tác giả

Hi, we have generated a custom script, that installs as a custom module that runs once a month. If you are interested I can give you the script.

Regards.


On 22/2/21 4:59, Aïmane wrote:

Hi,

Have you found something ?

Envoyé par Odoo S.A. utilisant Odoo.

Hi, thank you for your quick reply.

That would be great! Can I ask you why you need to run it every month? Have you found what messes with stock.quants ?

Regards

Hi, we have the same case, just one question, after the script do you have faced the same problem ?


Tác giả Câu trả lời hay nhất

Here is the script, Sorry for the late response:

It is good to know that someone has the same problem as me, because odoo support, did not solve this case.

Here is the main script: https://github.com/hydrosIII/odoo12-stock-correction

The script installss as a module and adds a cronjob in odoo. You can configure this job to run when you want. The script in my database takes all night to run, so we have another module that just checks quicky and depends on this script. This other one runs daily. The difference is that the first one checks all the database and all the dates. The second just checks the new bad recent entries.

https://github.com/hydrosIII/odoo12-stock-correct-short

Ảnh đại diện
Huỷ bỏ

THANK YOU VERY MUCH

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

Hi there, we're experiencing the same problem, did u find the root cause of the issue?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 24
1146
2
thg 8 24
4931
3
thg 9 19
3802
2
thg 3 25
756
2
thg 10 24
1343