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

Hello everyone, I have a problem about importing warehouses from an xls file. When I create warehouse manually, it will also create stock.locations that have correct parent_left and parent_right fields value, but when importing, parent_left and parent_right are both null, so I can't do inventory or scrap on that warehouse. Does anyone know how to recompute those fields when importing?

Thanks!

Awatar
Odrzuć
Najlepsza odpowiedź

hope this may help: \https://gist.github.com/paulius-sladkevicius/60a84c97e8446f5e152415e874923d66

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 24
1298
1
lis 22
2531
2
sie 22
6813
1
sty 25
8395
1
wrz 21
5777