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
|
2020-01-26 15:29:23 +01:00
|
|
|
from . import ir
|
2019-09-07 23:13:33 +02:00
|
|
|
from . import res
|
2021-01-17 00:57:09 +01:00
|
|
|
from . import stock_reporting_margin
|
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,
|
2020-10-11 23:46:10 +02:00
|
|
|
location.WarehouseWasteLocation,
|
2019-06-16 19:11:48 +02:00
|
|
|
location.Party,
|
|
|
|
|
location.PartyLocation,
|
|
|
|
|
location.ProductsByLocationsContext,
|
2020-12-23 21:55:13 +01:00
|
|
|
location.ProductsByLocations,
|
2019-06-16 19:11:48 +02:00
|
|
|
location.LocationLeadTime,
|
|
|
|
|
move.Move,
|
|
|
|
|
shipment.ShipmentIn,
|
|
|
|
|
shipment.ShipmentInReturn,
|
|
|
|
|
shipment.ShipmentOut,
|
|
|
|
|
shipment.ShipmentOutReturn,
|
|
|
|
|
shipment.ShipmentInternal,
|
2020-07-25 08:19:31 +02:00
|
|
|
shipment.AssignPartial,
|
2021-02-13 22:10:53 +01:00
|
|
|
party.Address,
|
|
|
|
|
party.ContactMechanism,
|
2019-06-16 19:11:48 +02:00
|
|
|
period.Period,
|
|
|
|
|
period.Cache,
|
|
|
|
|
product.Template,
|
|
|
|
|
product.Product,
|
|
|
|
|
product.ProductByLocationContext,
|
|
|
|
|
product.ProductQuantitiesByWarehouse,
|
|
|
|
|
product.ProductQuantitiesByWarehouseContext,
|
2020-07-04 23:46:35 +02:00
|
|
|
product.ProductQuantitiesByWarehouseMove,
|
2020-01-26 15:29:23 +01:00
|
|
|
product.RecomputeCostPriceStart,
|
2020-01-26 21:10:40 +01:00
|
|
|
product.CostPriceRevision,
|
|
|
|
|
product.ModifyCostPriceStart,
|
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,
|
2020-01-26 15:29:23 +01:00
|
|
|
ir.Cron,
|
2019-09-07 23:13:33 +02:00
|
|
|
res.User,
|
2021-01-17 00:57:09 +01:00
|
|
|
stock_reporting_margin.Context,
|
|
|
|
|
stock_reporting_margin.Product,
|
|
|
|
|
stock_reporting_margin.ProductTimeseries,
|
|
|
|
|
stock_reporting_margin.Category,
|
|
|
|
|
stock_reporting_margin.CategoryTimeseries,
|
|
|
|
|
stock_reporting_margin.CategoryTree,
|
2012-09-24 22:18:17 +02:00
|
|
|
module='stock', type_='model')
|
|
|
|
|
Pool.register(
|
2020-07-25 08:19:31 +02:00
|
|
|
shipment.Assign,
|
2019-06-16 19:11:48 +02:00
|
|
|
product.OpenProductQuantitiesByWarehouse,
|
2021-02-27 17:15:00 +01:00
|
|
|
product.OpenProductQuantitiesByWarehouseMove,
|
2019-06-16 19:11:48 +02:00
|
|
|
product.RecomputeCostPrice,
|
2020-01-26 21:10:40 +01:00
|
|
|
product.ModifyCostPrice,
|
2018-07-27 17:07:31 +02:00
|
|
|
inventory.Count,
|
2020-03-01 12:33:54 +01:00
|
|
|
party.Replace,
|
|
|
|
|
party.Erase,
|
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')
|