[FIX] account_followup: account_followup_stat_by_partner view have to use bigint id for databases with a lot of partners
bzr revid: chs@openerp.com-20131008170840-ws1hi84z540gzwy6
This commit is contained in:
parent
5fa03ad26c
commit
a1d7575022
|
@ -50,9 +50,9 @@ class account_followup_stat_by_partner(osv.osv):
|
|||
# to send him follow-ups separately . An assumption that the number of companies will not
|
||||
# reach 10 000 records is made, what should be enough for a time.
|
||||
cr.execute("""
|
||||
create or replace view account_followup_stat_by_partner as (
|
||||
create view account_followup_stat_by_partner as (
|
||||
SELECT
|
||||
l.partner_id * 10000 + l.company_id as id,
|
||||
l.partner_id * 10000::bigint + l.company_id as id,
|
||||
l.partner_id AS partner_id,
|
||||
min(l.date) AS date_move,
|
||||
max(l.date) AS date_move_last,
|
||||
|
|
Loading…
Reference in New Issue