Skip to Content
Menu
This question has been flagged
2 Replies
4274 Views


import odoorpc
odoo.env['account.invoice'].search(['partner_id', '=', 1])

Raises this exception;

odoorpc.error.RPCError: Invalid leaf partner_id

Expected:

returns a resultset of all invoices for that account

Avatar
Discard
Best Answer

Search take as param a list of tuple ! So search([('partner_id','=', 1)])

Avatar
Discard
Related Posts Replies Views Activity
3
Jul 20
10970
0
Sep 19
98
1
Jul 17
2965
4
Aug 16
6621
1
May 16
3607