[FIX] account_tax_balance: prevent multicompany glitch in tests
Prevent selecting a journal from another company, resulting in UserError(_("Cannot create moves for different companies."))pull/790/head
parent
d89b071435
commit
852c0e467b
|
@ -168,7 +168,8 @@ class TestAccountTaxBalance(HttpCase):
|
|||
self.env['account.move'].create({
|
||||
'date': Date.context_today(self.env.user),
|
||||
'journal_id': self.env['account.journal'].search(
|
||||
[('type', '=', 'bank')], limit=1).id,
|
||||
[('type', '=', 'bank'),
|
||||
('company_id', '=', self.env.user.company_id.id)], limit=1).id,
|
||||
'name': 'Test move',
|
||||
'line_ids': [(0, 0, {
|
||||
'account_id': liquidity_account_id,
|
||||
|
|
Loading…
Reference in New Issue