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
3989 Widoki

I am trying to do this:

env['stock.move'].search([('picking_id','==',current_stock_picking)])
-current_stock_pikcing holds a given id value (in this test is 3)-.


But I get:

Invalid leaf ('picking_id', '==', 3)", "name": "exceptions.ValueError", "arguments": ["Invalid leaf ('picking_id', '==', 3)"]}}

How should I specify the search/subset condition? Thanks
Awatar
Odrzuć
Najlepsza odpowiedź

Hi E.M.

You have an error in the operator '==', you should use only '=', like:

env['stock.move'].search([('picking_id','=',current_stock_picking)])
Awatar
Odrzuć
Autor

Brilliant, thanks.

Powiązane posty Odpowiedzi Widoki Czynność
6
lut 16
8046
2
lut 16
3876
2
lut 16
9067
2
lut 22
5924
2
wrz 15
5050