Add depends on Pool.register

issue7178
review37051002
This commit is contained in:
Cédric Krier
2018-03-20 17:30:09 +01:00
parent 0d775d6dab
commit fd4b87853a
+14 -8
View File
@@ -2,16 +2,22 @@
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
from carrier import *
from stock import *
from sale import *
from . import carrier
from . import stock
from . import sale
def register():
Pool.register(
Carrier,
WeightPriceList,
ShipmentIn,
ShipmentOut,
Sale,
carrier.Carrier,
carrier.WeightPriceList,
module='carrier_weight', type_='model')
Pool.register(
stock.ShipmentIn,
module='carrier_weight', type_='model',
depends=['purchase_shipment_cost'])
Pool.register(
stock.ShipmentOut,
sale.Sale,
module='carrier_weight', type_='model',
depends=['sale_shipment_cost'])