Ir al contenido
Menú
Se marcó esta pregunta
1652 Vistas

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
may 24
2579
3
nov 23
2179
0
feb 23
2307
8
feb 21
26194
0
may 19
3515