Skip to content

Commit

Permalink
fixup! fixup! Add account_invoice_export_job
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed May 31, 2024
1 parent 78a63f5 commit 982c3d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions account_invoice_export/tests/common.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright 2023 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from odoo.tests.common import TransactionCase


class CommonCase(TransactionCase):
@classmethod
def setUpClass(cls):
super(CommonCase, cls).setUpClass()
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.send_exception = cls.env.ref(
"account_invoice_export.mail_activity_transmit_warning"
Expand All @@ -23,10 +25,11 @@ def setUpClass(cls):
cls.country = cls.env.ref("base.ch")
cls.customer = cls.env.ref("base.res_partner_1")
cls.account = cls.env["account.account"].search(
[("account_type", "=", "income")],
[("account_type", "=", "income"), ("company_id", "=", cls.env.company.id)],
limit=1,
)
cls.product = cls.env.ref("product.product_product_1")
__import__("pdb").set_trace()
cls.invoice_1 = cls.env["account.move"].create(
{
"partner_id": cls.customer.id,
Expand Down

0 comments on commit 982c3d6

Please sign in to comment.