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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Search take as param a list of tuple ! So search([('partner_id','=', 1)])
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
1
feb 25
|
1497 | ||
|
3
júl 20
|
13037 | ||
|
0
sep 19
|
98 | ||
|
1
júl 17
|
4343 | ||
|
4
aug 16
|
8521 |