跳至内容
菜单
此问题已终结
1 回复
3578 查看

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
形象
丢弃
最佳答案

Hi E.M.

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

env['stock.move'].search([('picking_id','=',current_stock_picking)])
形象
丢弃
编写者

Brilliant, thanks.

相关帖文 回复 查看 活动
6
2月 16
7198
2
2月 16
3161
2
2月 16
8422
2
2月 22
5267
2
9月 15
4244