Skip to Content
Menu
This question has been flagged
1064 Views

Hello,

I am using the rpc to create pickings with a few move lines (approximately 20). I notice that the rpc the calls are extremely slow (sometimes > 10s). Is this normal ? Am I doing anything wrong ?
I create my picking like this :

move_lines = [
{
"product_id": product_variant_id,
"location_id": origin_location_id,
"location_dest_id": destination_location_id,
"lot_id": lot_id,
"qty_done": quantity,
"product_uom_id": uom_unit_id,
}]
 connection.get_model("stock.picking").create(
{
"location_id": origin_location_id,
"location_dest_id": destination_location_id,
"picking_type_id": picking_type_id,
"immediate_transfer": True,
"move_line_ids_without_package": [
(0, 0, move_line) for move_line in move_lines
],
}
)


Thanks

Avatar
Discard
Related Posts Replies Views Activity
2
May 24
1049
3
Nov 23
623
0
Feb 23
1267
8
Feb 21
24291
0
May 19
2319