summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorApa (Open ERP) <apa@tinyerp.com>2009-01-13 16:44:22 +0530
committerApa (Open ERP) <apa@tinyerp.com>2009-01-13 16:44:22 +0530
commit2d2e26a4e92e32b2f5256a5efd879467ce6b07e1 (patch)
tree2390d04bc36105894d230e6682b3611d3c6cbaec /addons
parent58a9b0ba35377edf4447c85beb38adb01b5fc663 (diff)
Fixed : Bug #316334:
bzr revid: apa@tinyerp.com-20090113111422-rfefr0i71cgt8emt
Diffstat (limited to 'addons')
-rw-r--r--addons/account/report/tax_report.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/addons/account/report/tax_report.py b/addons/account/report/tax_report.py
index d5bb18b49ee..e2b83b44f37 100644
--- a/addons/account/report/tax_report.py
+++ b/addons/account/report/tax_report.py
@@ -59,7 +59,17 @@ class tax_report(rml_parse.rml_parse):
return self.comma_me(new)
def _get_lines(self, based_on,period_list,company_id=False, parent=False, level=0):
res = self._get_codes(based_on,parent,level,period_list)
- res = self._add_codes(based_on,res,period_list)
+
+ if period_list[0][2] :
+ res = self._add_codes(based_on,res,period_list)
+ else :
+ self.cr.execute ("select id from account_fiscalyear")
+ fy = self.cr.fetchall()
+ self.cr.execute ("select id from account_period where fiscalyear_id = %d"%(fy[0][0]))
+ periods = self.cr.fetchall()
+ for p in periods :
+ period_list[0][2].append(p[0])
+ res = self._add_codes(based_on,res,period_list)
i = 0
top_result = []