Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7671 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

   

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
sept. 23
2369
7
iun. 20
6756
7
iul. 18
20794
2
iul. 17
3397
0
nov. 22
80