diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 70ba7568007..7e673adbca4 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -3765,7 +3765,7 @@ class AccountMoveLine(models.Model): return # get the where clause - query = self._where_calc(self.env.context.get('domain_cumulated_balance')) + query = self._where_calc(list(self.env.context.get('domain_cumulated_balance') or [])) order_string = ", ".join(self._generate_order_by_inner(self._table, self.env.context.get('order_cumulated_balance'), query, reverse_direction=True)) from_clause, where_clause, where_clause_params = query.get_sql() sql = """