Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1656 Prikazi

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 24
2579
3
nov. 23
2180
0
feb. 23
2308
8
feb. 21
26194
0
maj 19
3515