The analytic entries should not be created when posting the invoice for depreciable assets. Instead entries must be created when the assets are depreciated. issue5909 review26731002
15 lines
377 B
Python
15 lines
377 B
Python
# 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
|
|
from .invoice import *
|
|
from . import asset
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
InvoiceLine,
|
|
AnalyticAccountEntry,
|
|
asset.Asset,
|
|
module='analytic_invoice', type_='model')
|