Skip to content

Commit 72940e5

Browse files
committed
[FIX] pos_safe_box: Fixing tests
1 parent db4b8a4 commit 72940e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pos_safe_box/tests/test_pos_safe_box.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ def test_pos_safe_box(self):
100100
session.set_cashbox_pos(0, None)
101101
wizard_context = session.button_show_wizard_pay_out_invoice()["context"]
102102
cash_in = self.env["cash.pay.invoice"].with_context(**wizard_context)
103-
with Form(cash_in) as form:
103+
with Form(
104+
cash_in, view="pos_session_pay_invoice.view_cash_pay_invoice_form"
105+
) as form:
104106
form.pos_payment_method_id = self.pos_config.payment_method_ids.filtered(
105107
lambda r: r.is_cash_count
106108
)[:1]

0 commit comments

Comments
 (0)