İçereği Atla
Menü
Bu soru işaretlendi

How can filter out the only due amount paid invoices with for the specific day odoo16


domain = [('payment_type', '=', 'inbound'),
('state', 'in', ['posted']),
('date', '>=', self.date),
('date', '<=', self.date)]

# Search for the paid invoices with due amount based on the search domain
invoices = self.env['account.payment'].sudo().search(domain)
print("invoices",invoices)
result = []
sl_no = 1
journal_bank_total = 0.0
journal_cash_total = 0.0
journal_online_total = 0.0
journal_cheque_total = 0.0
# Iterate over the paid invoices and calculate the total amount of due paid invoices
for
invoice in invoices:
print("invoice",invoice)
if invoice.move_type == 'out_refund':
continue
print
("sfsfs")

if isinstance(invoice.invoice_payments_widget, dict):
payments = invoice.invoice_payments_widget.get('content', [])
print(payments)
# rest of the code
else
:
payments = []

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Oca 24
2061
1
Eki 23
2204
1
Eyl 23
2016
0
Şub 23
2837
3
Nis 24
1866