Continuation and ending of1f848bf. Before this commit, the bank statement reconciliation still sometimes crashed. Each step of the tour waits 10 secs before timeout and in this case, changing URL may take more time since this commitb0a29c9bbecause we added 'debug=assets'. It was probably a mistake. So, removing this from the URL would probably solve the error but the second step would always be dependent on the first. It's why we decided to load the tour with the correct URL defined in Python. Co-authored-by: Adrien Dieudonné <adr@odoo.com>
20 lines
813 B
Python
20 lines
813 B
Python
import logging
|
|
import odoo.tests
|
|
|
|
_logger = logging.getLogger(__name__)
|
|
|
|
|
|
@odoo.tests.tagged('post_install', '-at_install')
|
|
@odoo.tests.common.at_install(False)
|
|
@odoo.tests.common.post_install(True)
|
|
class TestUi(odoo.tests.HttpCase):
|
|
|
|
def test_01_admin_bank_statement_reconciliation(self):
|
|
bank_stmt = self.env['account.bank.statement'].search([('name', '=', 'BNK/2014/001')])
|
|
if not bank_stmt:
|
|
_logger.exception('Could not find bank statement BNK/2014/001')
|
|
|
|
self.phantom_js("/web#statement_ids=" + str(bank_stmt.id) + "&action=bank_statement_reconciliation_view",
|
|
"odoo.__DEBUG__.services['web_tour.tour'].run('bank_statement_reconciliation')",
|
|
"odoo.__DEBUG__.services['web_tour.tour'].tours.bank_statement_reconciliation.ready", login="admin")
|