Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
michelerusti committed Dec 13, 2023
1 parent d97b09d commit eaec530
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fieldservice_stock_account/tests/test_fsm_stock_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import datetime

from odoo.tests.common import TransactionCase
from odoo.exceptions import ValidationError


class FSMStockAccountCase(TransactionCase):
Expand Down Expand Up @@ -76,6 +77,7 @@ def test_fsm_order(self):
SR_2.action_confirm()
fsm_order2.account_no_invoice()
fsm_order2.bill_to = "contact"
fsm_order2.account_no_invoice()
with self.assertRaises(ValidationError):
fsm_order2.account_no_invoice()
fsm_order2.customer_id = self.test_partner.id
fsm_order2.account_no_invoice()

0 comments on commit eaec530

Please sign in to comment.