2012-11-15 19:33:08 +01: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.
|
|
|
|
|
from trytond.pool import Pool
|
2018-03-20 17:27:51 +01:00
|
|
|
from . import asset
|
|
|
|
|
from . import product
|
|
|
|
|
from . import invoice
|
|
|
|
|
from . import account
|
|
|
|
|
from . import purchase
|
2012-11-15 19:33:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
2018-03-20 17:27:51 +01:00
|
|
|
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,
|
2018-06-29 09:42:12 +02:00
|
|
|
account.ConfigurationAssetDate,
|
2020-01-29 22:24:40 +01:00
|
|
|
account.ConfigurationAssetFrequency,
|
2019-03-24 18:00:01 +01:00
|
|
|
account.AccountTypeTemplate,
|
|
|
|
|
account.AccountType,
|
2018-03-20 17:27:51 +01:00
|
|
|
account.Move,
|
|
|
|
|
account.Period,
|
2018-05-30 14:12:33 +02:00
|
|
|
account.Journal,
|
2012-11-15 19:33:08 +01:00
|
|
|
module='account_asset', type_='model')
|
|
|
|
|
Pool.register(
|
2020-03-01 12:33:51 +01:00
|
|
|
purchase.Line,
|
2018-03-20 17:27:51 +01:00
|
|
|
module='account_asset', type_='model', depends=['purchase'])
|
|
|
|
|
Pool.register(
|
|
|
|
|
asset.CreateMoves,
|
|
|
|
|
asset.UpdateAsset,
|
|
|
|
|
asset.PrintDepreciationTable,
|
2012-11-15 19:33:08 +01:00
|
|
|
module='account_asset', type_='wizard')
|
2015-02-03 17:20:11 +01:00
|
|
|
Pool.register(
|
2018-03-20 17:27:51 +01:00
|
|
|
asset.AssetDepreciationTable,
|
2015-02-03 17:20:11 +01:00
|
|
|
module='account_asset', type_='report')
|