Bugfix on Account_analytic_analysis for month summary

bzr revid: jvo@tinyerp.com-20081006104744-mqgj7yn6moftjfen
This commit is contained in:
Jay Vora 2008-10-06 16:17:44 +05:30
parent bf0d142c97
commit c7b653bd1d
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# -*- encoding: utf-8 -*-
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2004-2008 TINY SPRL. (http://tiny.be) All Rights Reserved.
@ -643,7 +643,7 @@ class account_analytic_account_summary_month(osv.osv):
'(TO_NUMBER(TO_CHAR(d.month, \'YYYYMM\'), \'999999\') + (d.account_id * 1000000))::integer AS id, ' \
'd.account_id AS account_id, ' \
'TO_CHAR(d.month, \'Mon YYYY\') AS month, ' \
'TO_CHAR(d.month, \'YYYYMM\') AS month_id, ' \
'TO_NUMBER(TO_CHAR(d.month, \'YYYYMM\'), \'999999\') AS month_id, ' \
'COALESCE(SUM(l.unit_amount), 0.0) AS unit_amount ' \
'FROM ' \
'(SELECT ' \