Migrate to 6.4

This commit is contained in:
José Miguel Pardo Salar 2022-11-24 13:25:54 +01:00
parent 5860048597
commit 9ca50731fd
6 changed files with 9 additions and 13 deletions

View File

@ -6,8 +6,6 @@ from trytond.tools.multivalue import migrate_property
from trytond.modules.company.model import CompanyValueMixin from trytond.modules.company.model import CompanyValueMixin
__all__ = ['Party', 'PartyInvoiceTo']
parties_names = ['customer_to_invoice', 'supplier_to_invoice'] parties_names = ['customer_to_invoice', 'supplier_to_invoice']

View File

@ -121,7 +121,4 @@ setup(name=name,
[trytond.modules] [trytond.modules]
account_invoice_party_invoice_to = trytond.modules.account_invoice_party_invoice_to account_invoice_party_invoice_to = trytond.modules.account_invoice_party_invoice_to
""", """,
test_suite='tests',
test_loader='trytond.test_loader:Loader',
tests_require=tests_require,
) )

View File

@ -1,3 +1,2 @@
# The COPYRIGHT file at the top level of this repository contains the full # The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms. # copyright notices and license terms.
from .test_account_invoice import suite

View File

@ -1,8 +1,6 @@
# The COPYRIGHT file at the top level of this repository contains the full # The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms. # copyright notices and license terms.
import unittest
from trytond.pool import Pool from trytond.pool import Pool
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase, with_transaction from trytond.tests.test_tryton import ModuleTestCase, with_transaction
@ -32,7 +30,4 @@ class TestCase(ModuleTestCase):
self.assertEqual(party.supplier_to_invoice, party2) self.assertEqual(party.supplier_to_invoice, party2)
def suite(): del ModuleTestCase
suite = trytond.tests.test_tryton.suite()
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestCase))
return suite

7
tests/test_scenario.py Normal file
View File

@ -0,0 +1,7 @@
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from trytond.tests.test_tryton import load_doc_tests
def load_tests(*args, **kwargs):
return load_doc_tests(__name__, __file__, *args, **kwargs)

View File

@ -1,5 +1,5 @@
[tryton] [tryton]
version=6.0.0 version=6.4.0
depends: depends:
account_invoice account_invoice
ir ir