[14.0][fix] ambiguous error due to missing column prefix
X-original-commit: 8ad018ca6050435247ae284444108def3828572f Part-of: odoo/odoo#89157
This commit is contained in:
committed by
Florian(flg)
parent
afecca5e48
commit
7e85404a4f
@@ -142,8 +142,8 @@ class AccountPayment(models.Model):
|
||||
FROM account_payment payment
|
||||
JOIN account_move move ON movE.id = payment.move_id
|
||||
WHERE journal_id = %(journal_id)s
|
||||
AND check_number IS NOT NULL
|
||||
ORDER BY check_number::INTEGER DESC
|
||||
AND payment.check_number IS NOT NULL
|
||||
ORDER BY payment.check_number::INTEGER DESC
|
||||
LIMIT 1
|
||||
""", {
|
||||
'journal_id': self.journal_id.id,
|
||||
|
||||
Reference in New Issue
Block a user