2022-09-11 15:16:08 +02:00
|
|
|
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
|
|
|
# this repository contains the full copyright notices and license terms.
|
2023-05-04 14:42:40 +02:00
|
|
|
from trytond.modules.company.tests import CompanyTestMixin
|
2022-09-11 15:16:08 +02:00
|
|
|
from trytond.tests.test_tryton import ModuleTestCase
|
|
|
|
|
|
|
|
|
|
|
2023-05-04 14:42:40 +02:00
|
|
|
class CompanyAcountConsolidationTestMixin(CompanyTestMixin):
|
|
|
|
|
|
|
|
|
|
@property
|
|
|
|
|
def _skip_company_rule(self):
|
|
|
|
|
return super()._skip_company_rule | {
|
|
|
|
|
('account.move', 'consolidation_company'),
|
|
|
|
|
('account.invoice', 'consolidation_company'),
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AccountConsolidationTestCase(
|
|
|
|
|
CompanyAcountConsolidationTestMixin, ModuleTestCase):
|
2022-09-11 15:16:08 +02:00
|
|
|
"Test Account Consolidation module"
|
|
|
|
|
module = 'account_consolidation'
|
|
|
|
|
extras = ['account_invoice']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
del ModuleTestCase
|