[FIX] account: incorrect SQL operator

opw-2075897

closes odoo/odoo#37348

X-original-commit: 2f22b746fdf0315cc0199c547064376eeddf02ac
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Nicolas Martinelli
2019-09-24 09:44:13 +00:00
committed by fw-bot
parent aade5792e1
commit cbea2c5cdb
+1 -1
View File
@@ -242,7 +242,7 @@ class ResPartner(models.Model):
RIGHT JOIN account_account acc ON aml.account_id = acc.id
WHERE acc.internal_type = %s
AND NOT acc.deprecated AND acc.company_id = %s
AND move.state == 'posted'
AND move.state = 'posted'
GROUP BY partner.id
HAVING %s * COALESCE(SUM(aml.amount_residual), 0) ''' + operator + ''' %s''', (account_type, self.env.user.company_id.id, sign, operand))
res = self._cr.fetchall()