Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
585 Widoki

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={}

)

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
maj 25
1286
2
maj 25
727
2
maj 25
1496
1
maj 25
484
1
kwi 25
1159