Files
tryton/__init__.py
T
Cédric Krier b695344b63 Update and recompute cost price for move between warehouses
- Book accounting when moving product between warehouses
- Use the cost price of outgoing move as unit price of incoming moves of internal shipment

issue10586
review369311002
2021-07-28 00:37:51 +02:00

38 lines
1.1 KiB
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 ir
from . import company
from . import product
from . import stock
__all__ = ['register']
def register():
Pool.register(
ir.Cron,
ir.CronWarehouse,
company.Company,
product.Configuration,
product.ConfigurationCostPriceWarehouse,
product.Product,
product.CostPrice,
product.CostPriceRevision,
stock.Configuration,
stock.ConfigurationLocation,
stock.Location,
stock.Move,
stock.ShipmentInternal,
module='product_cost_warehouse', type_='model')
Pool.register(
product.ProductCostHistory,
module='product_cost_warehouse', type_='model',
depends=['product_cost_history'])
Pool.register(
product.ModifyCostPrice,
module='product_cost_warehouse', type_='wizard')
Pool.register(
module='product_cost_warehouse', type_='report')