[FIX] account: build_ctx_period must always return a list of ids

bzr revid: qdp-launchpad@openerp.com-20120319095227-1d7k2zq4ats038em
This commit is contained in:
Quentin (OpenERP) 2012-03-19 10:52:27 +01:00
parent 14399475b5
commit 99a12a9216
1 changed files with 1 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ class account_period(osv.osv):
def build_ctx_periods(self, cr, uid, period_from_id, period_to_id):
if period_from_id == period_to_id:
return period_from_id
return [period_from_id]
period_from = self.browse(cr, uid, period_from_id)
period_date_start = period_from.date_start
company1_id = period_from.company_id.id