From c0d97da2617219d048d970433129191f880633a0 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 12 Oct 2017 11:34:30 +0200 Subject: [PATCH] [ADD] better progress --- .../tests/test_base_import_odoo.py | 2 ++ .../views/import_odoo_database.xml | 24 +++++++++---------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/base_import_odoo/tests/test_base_import_odoo.py b/base_import_odoo/tests/test_base_import_odoo.py index 7951840c5..8b3128306 100644 --- a/base_import_odoo/tests/test_base_import_odoo.py +++ b/base_import_odoo/tests/test_base_import_odoo.py @@ -73,6 +73,8 @@ class TestBaseImportOdoo(TransactionCase): # TODO: test much more run += 1 demodb = self.env.ref('base_import_odoo.demodb') + for line in demodb.import_line_ids: + self.assertIn(line.model_id.model, demodb.status_html) demodb.action_import() self.assertTrue(demodb.cronjob_id) demodb.cronjob_id.write({'active': False}) diff --git a/base_import_odoo/views/import_odoo_database.xml b/base_import_odoo/views/import_odoo_database.xml index e31548d93..c919798c9 100644 --- a/base_import_odoo/views/import_odoo_database.xml +++ b/base_import_odoo/views/import_odoo_database.xml @@ -20,13 +20,13 @@ + - @@ -64,17 +64,17 @@ }); } -
- - -
-
- - / done - -
-
-
+

Import progress

+
+
+ + +

+ + / done + +

+