Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4818 Zobrazení


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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 25
1498
3
čvc 20
13040
0
zář 19
98
1
čvc 17
4345
4
srp 16
8524