diff --git a/account_banking_ach_base/i18n/account_banking_ach_base.pot b/account_banking_ach_base/i18n/account_banking_ach_base.pot index 14be2fed..6b316a33 100644 --- a/account_banking_ach_base/i18n/account_banking_ach_base.pot +++ b/account_banking_ach_base/i18n/account_banking_ach_base.pot @@ -121,7 +121,7 @@ msgstr "" #: code:addons/account_banking_ach_base/models/account_payment_order.py:0 #, python-format msgid "" -"Missing ACH Direct Debit mandate on the bank payment line with partner " +"Missing ACH Direct Debit mandate on the bank line with partner " "'%(partner)s' (reference '%(ref)s')." msgstr "" diff --git a/account_banking_ach_base/models/account_payment_order.py b/account_banking_ach_base/models/account_payment_order.py index 0ae85f22..cfc8374a 100644 --- a/account_banking_ach_base/models/account_payment_order.py +++ b/account_banking_ach_base/models/account_payment_order.py @@ -77,7 +77,7 @@ def validate_mandates(self, line): raise UserError( _( "Missing ACH Direct Debit mandate on the " - "bank payment line with partner '%(partner)s' " + "payment line with partner '%(partner)s' " "(reference '%(ref)s')." ) % {"partner": line.partner_id.name, "ref": line.name} @@ -135,7 +135,7 @@ def generate_ach_file(self): file_mod=file_mod, ) entries = [] - for line in self.bank_line_ids: + for line in self.payment_line_ids: if inbound_payment: self.validate_mandates(line) self.validate_banking(line)