Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1643 Widoki

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 24
2569
3
lis 23
2142
0
lut 23
2297
8
lut 21
26162
0
maj 19
3507