diff --git a/account_payment_order/models/account_move_line.py b/account_payment_order/models/account_move_line.py index 1a7870950..d87b57351 100644 --- a/account_payment_order/models/account_move_line.py +++ b/account_payment_order/models/account_move_line.py @@ -34,8 +34,8 @@ class AccountMoveLine(models.Model): ref2comm_type[self.invoice_id.reference_type] else: if ( - self.invoice_id.type in ('in_invoice', 'in_refund') - and self.invoice_id.reference): + self.invoice_id.type in ('in_invoice', 'in_refund') and + self.invoice_id.reference): communication = self.invoice_id.reference if self.currency_id: currency_id = self.currency_id.id