[FIX] account_reconcile_oca: Fix account_account_reconcile id to avoid big int

This commit is contained in:
Florian da Costa
2023-04-03 20:39:59 +02:00
committed by Enric Tobella
parent 813a9c107e
commit 5a7220116f

View File

@@ -36,13 +36,7 @@ class AccountAccountReconcile(models.Model):
def _select(self):
return """
SELECT
CAST(
(
coalesce(aml.partner_id, 0) + a.id
)*(
COALESCE(aml.partner_id, 0)+a.id - 1
)/2 + COALESCE(aml.partner_id, 0) AS INTEGER
) as id,
min(aml.id) as id,
MAX(a.name) as name,
aml.partner_id,
a.id as account_id,