Skip to content
Snippets Groups Projects
Commit fd2b5152 authored by Don Kendall's avatar Don Kendall
Browse files

[14.0][fix] ambiguous error due to missing column prefix

Part-of: odoo/odoo#81259
parent a3e541b1
No related branches found
No related tags found
No related merge requests found
......@@ -135,8 +135,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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment