[14.0][IMP] account_payment_order: Set tests as post-install

Since 81aac30dd2
AccountTestInvoicingCommon should be tagged post-install
This commit is contained in:
Denis Roussel
2022-04-14 14:11:41 +02:00
parent 18495aaf03
commit 16acbcd01a
3 changed files with 6 additions and 2 deletions

View File

@@ -1,10 +1,12 @@
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@tagged("post_install", "-at_install")
class TestAccountPayment(AccountTestInvoicingCommon):
@classmethod
def setUpClass(cls, chart_template_ref=None):

View File

@@ -6,7 +6,7 @@
from datetime import date, timedelta
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import Form
from odoo.tests.common import Form, tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@@ -77,6 +77,7 @@ class TestPaymentOrderInboundBase(AccountTestInvoicingCommon):
return invoice_form.save()
@tagged("post_install", "-at_install")
class TestPaymentOrderInbound(TestPaymentOrderInboundBase):
def test_constrains_type(self):
with self.assertRaises(ValidationError):

View File

@@ -6,7 +6,7 @@ from datetime import date, datetime, timedelta
from odoo import fields
from odoo.exceptions import UserError, ValidationError
from odoo.tests.common import Form
from odoo.tests.common import Form, tagged
from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@@ -101,6 +101,7 @@ class TestPaymentOrderOutboundBase(AccountTestInvoicingCommon):
return wizard.new_move_ids
@tagged("post_install", "-at_install")
class TestPaymentOrderOutbound(TestPaymentOrderOutboundBase):
def test_creation_due_date(self):
self.mode.variable_journal_ids = self.bank_journal