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

I am working on a project that consists of a web platform that is responsible for listing receipts and scanning the products of the receptions using the product barcode, the products in the receptions have the expected quantity of units and the quantity of units received, when I create a reception from a purchase order the quantity of units received is initialized with the same number as the expected quantity, but this is not useful for my project since it appears that I have already scanned all the units of the products, I am using the jsonrpc api with Odoo 18 CE. In Odoo 14, I use the 'qty_done' field to increase the quantity of units received. This is the code that i use to update the quantity in Odoo 14:


resultado = await odoo_api_call(

user_id=user_id,

model="stock.move.line",

method="write",

args=[[move_line_id], {'qty_done': cantidad}],

kwargs={}

)

아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
515
2
6월 25
2420
1
6월 25
887
3
5월 25
2409
2
7월 25
1402