__init__.py 1.27 KB
Newer Older
1 2 3
# 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 trytond.pool import Pool
4 5 6 7 8
from . import asset
from . import product
from . import invoice
from . import account
from . import purchase
9 10 11 12


def register():
    Pool.register(
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
        asset.Asset,
        asset.AssetLine,
        asset.AssetUpdateMove,
        asset.CreateMovesStart,
        asset.UpdateAssetStart,
        asset.UpdateAssetShowDepreciation,
        asset.PrintDepreciationTableStart,
        product.Category,
        product.CategoryAccount,
        product.Template,
        product.Product,
        invoice.InvoiceLine,
        account.Configuration,
        account.ConfigurationAssetSequence,
        account.ConfigurationAssetDate,
        account.Move,
        account.Period,
        account.Journal,
31 32
        module='account_asset', type_='model')
    Pool.register(
33 34 35 36 37 38
        purchase.PurchaseLine,
        module='account_asset', type_='model', depends=['purchase'])
    Pool.register(
        asset.CreateMoves,
        asset.UpdateAsset,
        asset.PrintDepreciationTable,
39
        module='account_asset', type_='wizard')
40
    Pool.register(
41
        asset.AssetDepreciationTable,
42
        module='account_asset', type_='report')