콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
6698 화면

Hello Odooers,

I found this error : " Validation Error The quantity to produce must be positive! "

 


It happened using the Odoo 2 step manufacturing routes. After partial production the liberation to stock from a pos-production location is given me this error.With or Without the backorder creation. 


[UPDATE]: It is a bug in the code, a legion of code jedi are looking into it.

아바타
취소
베스트 답변

i got same error with my odoo 14. 

I tested on \odoo runbot 14 , it seems fixed on latest build, so you can test on latest source code of v14.


Tony.

아바타
취소
작성자

I forgot to give feedback to the forum. Yes, some time later they fixed the code.

Thank you for your answer

I'm migrating to v14. And it seems still having this bug for multi or 3 steps routing. The error pops up because of _sql_contraints in the code:

_sql_constraints = [

('name_uniq', 'unique(name, company_id)', 'Reference must be unique per Company!'),

('qty_positive', 'check (product_qty >= 0)', 'The quantity to produce must be positive!'),

]

Anyone can give further guidances on how to resolve this?

베스트 답변

Also having this issue when creating our own MOs but it does not appear when I create a MO directly. Any ideas how to resolve? What on change method are we supposed to trigger for it to work?

아바타
취소
베스트 답변

Basically, there is an issue with the finished stock move, it's either the state value is wrong or the move is not there. To fix this, you first have to check if the destination location is not set to scrap location, if not; then check if that manufacturing order has a finished move if not you can trigger _on_change method to generate the finished move otherwise it has something to do with the state of the finished move. 

But this is generally a bug and our team will investigate the source of the problem in order to fix it permanently.

-- NEA

아바타
취소
관련 게시물 답글 화면 활동
2
8월 22
3605
2
5월 25
791
2
8월 22
4680
1
3월 22
2499
1
2월 22
2301