Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3990 Weergaven

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
Avatar
Annuleer
Beste antwoord

Hi E.M.

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

env['stock.move'].search([('picking_id','=',current_stock_picking)])
Avatar
Annuleer
Auteur

Brilliant, thanks.

Gerelateerde posts Antwoorden Weergaven Activiteit
6
feb. 16
8046
2
feb. 16
3876
2
feb. 16
9067
2
feb. 22
5924
2
sep. 15
5050