This commit is contained in:
+17
-2
@@ -1,6 +1,21 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from . import invoice, tax
|
||||
from trytond.pool import Pool
|
||||
|
||||
__all__ = ['invoice', 'tax']
|
||||
from . import account, invoice, ir, tax
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
ir.ModelData,
|
||||
invoice.Invoice,
|
||||
invoice.InvoiceLine,
|
||||
tax.TaxTemplate,
|
||||
tax.Tax,
|
||||
module='account_do', type_='model')
|
||||
Pool.register(
|
||||
account.CreateChart,
|
||||
module='account_do', type_='wizard')
|
||||
|
||||
@@ -11,7 +11,8 @@ Imports::
|
||||
|
||||
Install account_do::
|
||||
|
||||
>>> config = activate_modules('account_do', create_company)
|
||||
>>> config = activate_modules('account_do')
|
||||
>>> _ = create_company()
|
||||
|
||||
Get the test company::
|
||||
|
||||
|
||||
@@ -621,7 +621,7 @@ class AccountDoUnitTestCase(unittest.TestCase):
|
||||
if line.strip()
|
||||
]
|
||||
|
||||
self.assertEqual(config.get('tryton', 'version'), '8.0.5')
|
||||
self.assertEqual(config.get('tryton', 'version'), '7.0.0')
|
||||
self.assertEqual(
|
||||
set(lines('tryton', 'depends')),
|
||||
{'account', 'account_invoice', 'ir'})
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
[tryton]
|
||||
version=8.0.5
|
||||
version=7.0.0
|
||||
depends:
|
||||
account
|
||||
account_invoice
|
||||
|
||||
Reference in New Issue
Block a user