Skip to Content
Menu
This question has been flagged
818 Views

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
Discard
Related Posts Replies Views Activity
2
Jun 25
1865
1
Jun 25
468
3
May 25
2039
2
Jul 25
1145
2
May 25
1999