[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:
parent
14399475b5
commit
99a12a9216
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue