Skip to content

Commit b58e9d2

Browse files
committed
[FIX] server_action_mass_edit: delete inactive views in tests
1 parent 507aef5 commit b58e9d2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

server_action_mass_edit/tests/test_mass_editing.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55

66
from ast import literal_eval
77

8+
from odoo.addons.base.models.ir_actions import IrActionsServer
89
from odoo.exceptions import ValidationError
910
from odoo.tests import Form, common, new_test_user
1011

11-
from odoo.addons.base.models.ir_actions import IrActionsServer
12-
1312

1413
def fake_onchange_model_id(self):
1514
result = {
@@ -155,7 +154,7 @@ def test_wiz_fields_view_get(self):
155154
)
156155

157156
# test the code path where we extract an embedded tree for o2m fields
158-
self.env["ir.ui.view"].search(
157+
self.env["ir.ui.view"].with_context(active_test=False).search(
159158
[
160159
("model", "in", ("res.partner.bank", "res.partner", "res.users")),
161160
("id", "!=", self.env.ref("base.res_partner_view_form_private").id),

0 commit comments

Comments
 (0)