summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorvra <vra@tinyerp.com>2010-08-31 15:18:53 +0530
committervra <vra@tinyerp.com>2010-08-31 15:18:53 +0530
commitdbfec32302dec88c6c3d5d0b3bedf5e1c8e83ee8 (patch)
tree3d595168539cc9a9af4cdb311212a95e778c4032 /addons
parent71e4669a43c43b4f77d0d2dc3c467e3f9e535b59 (diff)
[FIX] account: assigned single id instead of list of ids in default period of account_tax_chart wizard.
bzr revid: vra@tinyerp.com-20100831094853-shqcmgmpzs8a2ag3
Diffstat (limited to 'addons')
-rw-r--r--addons/account/wizard/account_tax_chart.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/account/wizard/account_tax_chart.py b/addons/account/wizard/account_tax_chart.py
index 5b5feaf480c..1595a603dd0 100644
--- a/addons/account/wizard/account_tax_chart.py
+++ b/addons/account/wizard/account_tax_chart.py
@@ -37,7 +37,8 @@ class account_tax_chart(osv.osv_memory):
def _get_period(self, cr, uid, context=None):
"""Return default period value"""
- return self.pool.get('account.period').find(cr, uid)
+ period_ids = self.pool.get('account.period').find(cr, uid)
+ return period_ids and period_ids[0] or False
def account_tax_chart_open_window(self, cr, uid, ids, context=None):
"""