[FIX] account_analytic_analysis: integer out of range
When reading the view `account_analytic_analysis_summary_user`, through the function fields using `_analysis_all`, it could lead to an `integer out of range` if you have a bunch of `res.users` and or `account.account`. Casting the multiplication of the integers to a double solves the issue. opw-652152
This commit is contained in:
parent
fa48e6f485
commit
fc1f3b3424
|
@ -841,7 +841,7 @@ class account_analytic_account_summary_user(osv.osv):
|
|||
WHERE (j.type = 'general' ) and (j.id=l.journal_id)
|
||||
GROUP BY l.account_id, l.user_id
|
||||
)
|
||||
select (lu.account_id * mu.max_user) + lu.user_id as id,
|
||||
select (lu.account_id::bigint * mu.max_user) + lu.user_id as id,
|
||||
lu.account_id as account_id,
|
||||
lu.user_id as "user",
|
||||
unit_amount
|
||||
|
|
Loading…
Reference in New Issue