diff --git a/account_statement_import_move_line/models/account_move_line.py b/account_statement_import_move_line/models/account_move_line.py index af88721c..a268ddf6 100644 --- a/account_statement_import_move_line/models/account_move_line.py +++ b/account_statement_import_move_line/models/account_move_line.py @@ -19,7 +19,7 @@ class AccountMoveLine(models.Model): "amount": amount, "partner_id": self.partner_id.id, "statement_id": statement.id, - "payment_ref": self.ref, + "payment_ref": self.ref or self.name, "date": self.date_maturity, "currency_id": self.currency_id.id, }