[FIX] base: fix o2m testsuite following change of default currency data, in relation with bug 1111298
lp bug: https://launchpad.net/bugs/1111298 fixed bzr revid: odo@openerp.com-20130606090410-4t6o6se18ejbgqmj
This commit is contained in:
parent
760fea7831
commit
1509011229
|
@ -375,6 +375,11 @@
|
|||
currency_ids3 = self.pool.get('res.currency').search(cr, uid, [('id', 'not in', [])])
|
||||
assert currency_ids1 == currency_ids2 == currency_ids3, 'All 3 results should have be the same: all currencies'
|
||||
default_company = self.browse(cr, uid, 1)
|
||||
|
||||
# Due to currency data definition change (in relation with bug 1111298), this test now needs
|
||||
# a manual setup where all currencies are assigned to the default company.
|
||||
self.pool['res.currency'].write(cr, uid, currency_ids1, {'company_id': default_company.id})
|
||||
|
||||
# one2many towards same model
|
||||
res_1 = self.search(cr, uid, [('child_ids', 'in', [x.id for x in company.child_ids])]) # any company having a child of company3 as child
|
||||
res_2 = self.search(cr, uid, [('child_ids', 'in', [company.child_ids[0].id])]) # any company having the first child of company3 as child
|
||||
|
|
Loading…
Reference in New Issue