Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
775 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
giu 25
1754
1
giu 25
425
3
mag 25
1944
2
mag 25
1105
2
mag 25
1954