The "Modify Cost Price" wizard create a revision record for each template or product. The cost price re-computation methods apply those revisions at the beginning of their date. The stock accounting move is created and posted when the cost price is modified by the re-computation. issue8930 review260751002
22 lines
596 B
Python
22 lines
596 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 . import stock
|
|
from . import product
|
|
from . import account
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
stock.Move,
|
|
product.Category,
|
|
product.CategoryAccount,
|
|
product.Template,
|
|
product.Product,
|
|
account.Configuration,
|
|
account.ConfigurationStockJournal,
|
|
account.FiscalYear,
|
|
account.AccountMove,
|
|
module='account_stock_continental', type_='model')
|