Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7662 มุมมอง

In Odoo V13 enterprise.


I have an invoice and I want to find the relevant payment record but the invoices ID is in the 'reconciled_invoice_ids' many2many field.


If I do env['account.payment'].search([('reconciled_invoice_ids','=',invoice.id)]) it returns quite a few payments without the relevant ID in the reconciled field.


If I try .search([(invoice.id,'in','reconciled_invoice_ids')]) it gives me an invalid leaf error.


I am not really sure what the correct way to do this is.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Jonah,

Did you tried for this 

 search ([('reconciled_invoice_ids', 'in', invoice.id)])


or 


search ([('reconciled_invoice_ids', 'in', invoice.ids)])

Regards,




Email:    odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ย. 23
2360
7
มิ.ย. 20
6743
7
ก.ค. 18
20788
2
ก.ค. 17
3387
0
พ.ย. 22
80