Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3758 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

Brilliant, thanks.

Publicaciones relacionadas Respuestas Vistas Actividad
6
feb 16
7532
2
feb 16
3408
2
feb 16
8646
2
feb 22
5484
2
sept 15
4565