[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
This commit is contained in:
vra 2010-08-31 15:18:53 +05:30
parent 71e4669a43
commit dbfec32302
1 changed files with 2 additions and 1 deletions

View File

@ -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):
"""