summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-09-24 07:05:10 +0000
committerfw-bot <otis@odoo.com>2019-09-24 09:44:13 +0000
commitcbea2c5cdb3c5f3a0ffcd5ccf557afdba4eeda72 (patch)
treea8e9b4656b06d2ab1d658e886e9fd5fa08ec3df4 /addons
parentaade5792e1f43d9d131895c503164736b292023d (diff)
[FIX] account: incorrect SQL operator
opw-2075897 closes odoo/odoo#37348 X-original-commit: 2f22b746fdf0315cc0199c547064376eeddf02ac Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/models/partner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py
index e9ca819a224..df3a8b2bc8a 100644
--- a/addons/account/models/partner.py
+++ b/addons/account/models/partner.py
@@ -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()