diff --git a/l10n_it_ricevute_bancarie/models/riba.py b/l10n_it_ricevute_bancarie/models/riba.py index 15d5d1ad4b4f..c45a12f349db 100644 --- a/l10n_it_ricevute_bancarie/models/riba.py +++ b/l10n_it_ricevute_bancarie/models/riba.py @@ -237,7 +237,7 @@ def _compute_line_values(self): ) if not line.invoice_number: line.invoice_number = str( - move_line.move_line_id.move_id.move_id.name + move_line.move_line_id.move_id.name if move_line.move_line_id.move_id.display_name == "/" else move_line.move_line_id.move_id.display_name ) @@ -245,7 +245,7 @@ def _compute_line_values(self): line.invoice_number = "{}, {}".format( line.invoice_number, str( - move_line.move_line_id.move_id.move_id.name + move_line.move_line_id.move_id.name if move_line.move_line_id.move_id.display_name == "/" else move_line.move_line_id.move_id.display_name ),