From 0a3fe10446941df61f1d8b498b0858fb1e2171c1 Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 4 Jun 2019 13:09:29 +0200 Subject: [PATCH] [FIX] invoice payment information have been moved to another field --- easy_my_coop_export_xlsx/wizard/export_global_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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