diff --git a/account.py b/account.py index 91d4620d71..46e871342b 100644 --- a/account.py +++ b/account.py @@ -1762,7 +1762,7 @@ class ThirdPartyBalance(Report): context['fiscalyear'] = datas['form']['fiscalyear'] line_query, _ = move_line_obj.query_get(cursor, user, context=context) if datas['form']['posted']: - posted_clause = "and m.state = 'posted' " + posted_clause = "AND m.state = 'posted' " else: posted_clause = ""