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
|
2019-06-16 19:11:48 +02:00
|
|
|
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
|
2019-06-16 19:11:48 +02:00
|
|
|
from . import configuration
|
2018-03-24 00:10:37 +01:00
|
|
|
from . import party
|
2019-09-07 23:13:33 +02:00
|
|
|
from . import res
|
2012-09-24 22:18:17 +02:00
|
|
|
|
2019-06-16 19:11:48 +02:00
|
|
|
from .move import StockMixin
|
|
|
|
|
|
|
|
|
|
__all__ = ['StockMixin', 'register']
|
|
|
|
|
|
2012-09-24 22:18:17 +02:00
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
2019-06-16 19:11:48 +02:00
|
|
|
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,
|
2019-06-16 19:11:48 +02:00
|
|
|
configuration.Configuration,
|
|
|
|
|
configuration.ConfigurationSequence,
|
|
|
|
|
configuration.ConfigurationLocation,
|
2019-09-07 23:13:33 +02:00
|
|
|
res.User,
|
2012-09-24 22:18:17 +02:00
|
|
|
module='stock', type_='model')
|
|
|
|
|
Pool.register(
|
2019-06-16 19:11:48 +02:00
|
|
|
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(
|
2019-06-16 19:11:48 +02:00
|
|
|
shipment.DeliveryNote,
|
|
|
|
|
shipment.PickingList,
|
|
|
|
|
shipment.SupplierRestockingList,
|
|
|
|
|
shipment.CustomerReturnRestockingList,
|
|
|
|
|
shipment.InteralShipmentReport,
|
2012-09-24 22:18:17 +02:00
|
|
|
module='stock', type_='report')
|