mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[MIG] account_bank_statement_import_move_line: Fix tests + URL
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
'author': 'Tecnativa, '
|
||||
'Odoo Community Association (OCA)',
|
||||
'maintainers': ['pedrobaeza'],
|
||||
'website': 'https://www.tecnativa.com',
|
||||
'website': 'https://github.com/OCA/bank-statement-import',
|
||||
'depends': [
|
||||
'account',
|
||||
],
|
||||
|
||||
@@ -60,12 +60,8 @@ class TestAccountBankStatementImportMoveLine(common.SavepointCase):
|
||||
'invoice': False,
|
||||
})
|
||||
wizard.populate()
|
||||
self.assertTrue(len(wizard.move_line_ids), 2)
|
||||
wizard.invoice = True
|
||||
wizard.move_line_filters_change()
|
||||
wizard.populate()
|
||||
self.assertTrue(len(wizard.move_line_ids), 1)
|
||||
line = wizard.move_line_ids[0]
|
||||
self.assertEqual(len(wizard.move_line_ids), 1)
|
||||
line = wizard.move_line_ids
|
||||
self.assertEqual(line.debit, self.invoice.amount_total)
|
||||
wizard.create_statement_lines()
|
||||
line = self.statement.line_ids[0]
|
||||
|
||||
@@ -89,6 +89,7 @@ class AccountStatementLineCreate(models.TransientModel):
|
||||
def populate(self):
|
||||
domain = self._prepare_move_line_domain()
|
||||
lines = self.env['account.move.line'].search(domain)
|
||||
self.move_line_ids = False
|
||||
self.move_line_ids = lines
|
||||
action = {
|
||||
'name': _('Select Move Lines to Create Statement'),
|
||||
|
||||
Reference in New Issue
Block a user