Skip to Content
Menu
This question has been flagged
991 Zobrazenia

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

)

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
júl 25
640
2
jún 25
2605
1
jún 25
1006
3
máj 25
2581
2
júl 25
1519