Use tryton.cfg to register in the Pool
This commit is contained in:
@@ -1,16 +1,2 @@
|
||||
# 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 carrier, stock
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
carrier.Carrier,
|
||||
stock.ShipmentOut,
|
||||
stock.ShipmentOutReturn,
|
||||
module='stock_shipment_cost_weight', type_='model')
|
||||
|
||||
@@ -5,3 +5,9 @@ depends:
|
||||
ir
|
||||
stock_shipment_cost
|
||||
stock_shipment_measurements
|
||||
|
||||
[register]
|
||||
model:
|
||||
carrier.Carrier
|
||||
stock.ShipmentOut
|
||||
stock.ShipmentOutReturn
|
||||
|
||||
Reference in New Issue
Block a user