Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
4805 Prikazi


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
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
feb. 25
1497
3
jul. 20
13037
0
sep. 19
98
1
jul. 17
4343
4
avg. 16
8521