Skip to Content
Menu
This question has been flagged
1 Reply
1965 Views

Hi all,

I have a workflow with an external partner for my sale's delivery.

So I'm sending him delivery orders (php/ftp process) and he send me back (Php / Ftp process too) all quantity sent to customers.

My actual problem is to import in Odoo 13 the quantity delivered with XmRpc2.

I don't find the way to update the qty_done as I don't find the way to dialog with move_id_without_packaging !

I'm sure I'm not the first guy who need to do this, but I didn't found a related topic...
Someone did it before and could help me ?

Thanks a lot !


Avatar
Discard
Author Best Answer

Hi !

No answer at all, I guess it's because of my approximative english or may be my question is too basic :-)

Fair enough, I found a solution, maybe it could help someone :

- First write the qty :
move_lkp = move_model.search_read([('id','=',< id to find>),('product_id','ilike',var_upc)],['reference','product_id','quantity_done','origin','product_uom_qty','state'])
for move_line in move_lkp: 
move_qty = move_model.write([move_line['id']], {'quantity_done': < Quantity done value>)}) 

- Second I validate the Sale :
Test_button=stock_model.button_validate([<id here>])

Regards


Avatar
Discard