跳至內容
選單
此問題已被標幟
2 回覆
4825 瀏覽次數


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)])

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
2月 25
1499
3
7月 20
13044
0
9月 19
98
1
7月 17
4346
4
8月 16
8525