Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
7598 Представления

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
2295
7
июн. 20
6669
7
июл. 18
20705
2
июл. 17
3330
0
нояб. 22
80