Skip to content

Commit

Permalink
[FIX] account_payment_order_layout: generate lines without new line
Browse files Browse the repository at this point in the history
  • Loading branch information
alan196 committed Oct 25, 2023
1 parent a116a9d commit b82591d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ def generate_payment_file(self, order):
for payment in order.payment_ids:
for line in self.line_ids:
result = line._process_line(order, payment)
payment_line += separator.join(result["result"]) + "\n"
payment_line += separator.join(result["result"])
if result["error"]:
errors.add(result["error"])
payment_line += "\n"
if errors:
raise UserError("\n".join(errors))
payment_line += (
Expand Down

0 comments on commit b82591d

Please sign in to comment.