diff --git a/easy_my_coop_export_xlsx/wizard/export_global_wizard.py b/easy_my_coop_export_xlsx/wizard/export_global_wizard.py index 986d799..16558cc 100644 --- a/easy_my_coop_export_xlsx/wizard/export_global_wizard.py +++ b/easy_my_coop_export_xlsx/wizard/export_global_wizard.py @@ -124,8 +124,8 @@ class export_global_report(models.TransientModel): i += 1 worksheet1.write(j, i, line.price_subtotal) i += 1 - if invoice.payment_ids: - worksheet1.write(j, i, invoice.payment_ids[0].payment_date) + if invoice.payment_move_line_ids: + worksheet1.write(j, i, invoice.payment_move_line_ids[0].date) i += 1 if invoice.subscription_request: ind = len(invoice.subscription_request)-1