This repository was archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path__init__.py
78 lines (73 loc) · 2.55 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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 (
configuration, inventory, ir, location, move, party, period, product, res,
shipment, stock_reporting_margin)
from .move import StockMixin
__all__ = ['StockMixin', 'register']
def register():
Pool.register(
location.Location,
location.WarehouseWasteLocation,
location.ProductsByLocationsContext,
location.ProductsByLocations,
location.LocationLeadTime,
move.Move,
shipment.ShipmentIn,
shipment.ShipmentInReturn,
shipment.ShipmentOut,
shipment.ShipmentOutReturn,
shipment.ShipmentInternal,
shipment.AssignPartial,
party.Party,
party.PartyLocation,
party.PartyDeliveredToWarehouse,
party.Address,
party.ContactMechanism,
period.Period,
period.Cache,
product.Template,
product.Product,
product.ProductByLocationContext,
product.ProductQuantitiesByWarehouse,
product.ProductQuantitiesByWarehouseContext,
product.ProductQuantitiesByWarehouseMove,
product.RecomputeCostPriceStart,
product.CostPriceRevision,
product.ModifyCostPriceStart,
inventory.Inventory,
inventory.InventoryLine,
inventory.CountSearch,
inventory.CountQuantity,
configuration.Configuration,
configuration.ConfigurationSequence,
configuration.ConfigurationLocation,
ir.Cron,
res.User,
stock_reporting_margin.Context,
stock_reporting_margin.Main,
stock_reporting_margin.MainTimeseries,
stock_reporting_margin.Product,
stock_reporting_margin.ProductTimeseries,
stock_reporting_margin.Category,
stock_reporting_margin.CategoryTimeseries,
stock_reporting_margin.CategoryTree,
module='stock', type_='model')
Pool.register(
shipment.Assign,
product.OpenProductQuantitiesByWarehouse,
product.OpenProductQuantitiesByWarehouseMove,
product.RecomputeCostPrice,
product.ModifyCostPrice,
inventory.Count,
party.Replace,
party.Erase,
module='stock', type_='wizard')
Pool.register(
shipment.DeliveryNote,
shipment.PickingList,
shipment.SupplierRestockingList,
shipment.CustomerReturnRestockingList,
shipment.InteralShipmentReport,
module='stock', type_='report')