diff --git a/addons/pos_restaurant/tests/test_frontend.py b/addons/pos_restaurant/tests/test_frontend.py index 9ad26b2b440..f65150e647b 100644 --- a/addons/pos_restaurant/tests/test_frontend.py +++ b/addons/pos_restaurant/tests/test_frontend.py @@ -3,9 +3,8 @@ import odoo.tests - +@odoo.tests.tagged('post_install', '-at_install') class TestFrontend(odoo.tests.HttpCase): - def test_01_pos_restaurant(self): env = self.env(user=self.env.ref('base.user_admin')) account_obj = env['account.account'] @@ -57,13 +56,6 @@ class TestFrontend(odoo.tests.HttpCase): pos_config.open_session_cb() - # needed because tests are run before the module is marked as - # installed. In js web will only load qweb coming from modules - # that are returned by the backend in module_boot. Without - # this you end up with js, css but no qweb. - env['ir.module.module'].search([('name', '=', 'pos_restaurant')], limit=1).state = 'installed' - - self.start_tour("/pos/web?config_id=%d" % pos_config.id, 'pos_restaurant_sync', login="admin") self.assertEqual(1, env['pos.order'].search_count([('amount_total', '=', 4.4), ('state', '=', 'draft')]))