Files
tryton/__init__.py
T

70 lines
2.1 KiB
Python
Raw Normal View History

2014-12-02 12:56:04 +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.
2008-04-08 14:27:53 +02:00
2012-09-24 22:18:17 +02:00
from trytond.pool import Pool
from . import location
from . import shipment
from . import period
from . import move
from . import product
2018-07-27 17:07:31 +02:00
from . import inventory
from . import configuration
2018-03-24 00:10:37 +01:00
from . import party
from . import res
2012-09-24 22:18:17 +02:00
from .move import StockMixin
__all__ = ['StockMixin', 'register']
2012-09-24 22:18:17 +02:00
def register():
Pool.register(
location.Location,
location.Party,
location.PartyLocation,
location.ProductsByLocationsContext,
location.LocationLeadTime,
move.Move,
shipment.ShipmentIn,
shipment.ShipmentInReturn,
shipment.ShipmentOut,
shipment.ShipmentOutReturn,
shipment.AssignShipmentOutAssignFailed,
shipment.ShipmentInternal,
shipment.Address,
shipment.AssignShipmentInternalAssignFailed,
shipment.AssignShipmentInReturnAssignFailed,
period.Period,
period.Cache,
product.Template,
product.Product,
product.ProductByLocationContext,
product.ProductQuantitiesByWarehouse,
product.ProductQuantitiesByWarehouseContext,
2018-07-27 17:07:31 +02:00
inventory.Inventory,
inventory.InventoryLine,
inventory.CountSearch,
inventory.CountQuantity,
configuration.Configuration,
configuration.ConfigurationSequence,
configuration.ConfigurationLocation,
res.User,
2012-09-24 22:18:17 +02:00
module='stock', type_='model')
Pool.register(
shipment.AssignShipmentOut,
shipment.AssignShipmentInternal,
shipment.AssignShipmentInReturn,
product.OpenProductQuantitiesByWarehouse,
product.RecomputeCostPrice,
2018-07-27 17:07:31 +02:00
inventory.Count,
2018-03-24 00:10:37 +01:00
party.PartyReplace,
party.PartyErase,
2012-09-24 22:18:17 +02:00
module='stock', type_='wizard')
Pool.register(
shipment.DeliveryNote,
shipment.PickingList,
shipment.SupplierRestockingList,
shipment.CustomerReturnRestockingList,
shipment.InteralShipmentReport,
2012-09-24 22:18:17 +02:00
module='stock', type_='report')