[FIX] hr_timesheet_invoice: fully qualify grouped fields in SQL view

Avoids name collisions when custom columns are involved.

Closes #11743
This commit is contained in:
oihane 2016-04-19 15:36:50 +02:00 committed by Olivier Dony
parent b112631bef
commit 630f3d566f
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class report_account_analytic_line_to_invoice(osv.osv):
WHERE
(invoice_id IS NULL) and (to_invoice IS NOT NULL)
GROUP BY
to_char(l.date, 'YYYY'), to_char(l.date,'MM'), product_id, product_uom_id, account_id
to_char(l.date, 'YYYY'), to_char(l.date,'MM'), l.product_id, l.product_uom_id, l.account_id
)
""")