From 3349389850381b2f1dde99e510d7fb4491387bb7 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Sun, 17 Dec 2023 22:45:13 +0100 Subject: [PATCH] [IMP] account_einvoice_generate: payment ref Return by default the invoice payment reference --- account_einvoice_generate/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_einvoice_generate/models/account_move.py b/account_einvoice_generate/models/account_move.py index 0cc2a968d6..28f971290a 100644 --- a/account_einvoice_generate/models/account_move.py +++ b/account_einvoice_generate/models/account_move.py @@ -11,7 +11,7 @@ class AccountMove(models.Model): def get_payment_identifier(self): """This method is designed to be inherited in localization modules""" self.ensure_one() - return None + return self.payment_reference @api.model def _get_invoice_report_names(self):