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