2014-12-02 12:55:58 +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.
|
2011-08-07 11:26:44 +02:00
|
|
|
|
2012-09-24 22:18:16 +02:00
|
|
|
from trytond.pool import Pool
|
2018-02-07 00:37:38 +01:00
|
|
|
from . import sale
|
2018-03-20 17:31:27 +01:00
|
|
|
from . import stock
|
2012-09-24 22:18:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
|
Pool.register(
|
2018-02-07 00:37:38 +01:00
|
|
|
sale.Configuration,
|
|
|
|
|
sale.ConfigurationSaleMethod,
|
|
|
|
|
sale.Sale,
|
|
|
|
|
sale.SaleLine,
|
2018-03-20 17:31:27 +01:00
|
|
|
stock.ShipmentOut,
|
2012-09-24 22:18:16 +02:00
|
|
|
module='sale_shipment_cost', type_='model')
|
2018-03-20 17:31:27 +01:00
|
|
|
Pool.register(
|
|
|
|
|
sale.Promotion,
|
|
|
|
|
module='sale_shipment_cost', type_='model',
|
|
|
|
|
depends=['sale_promotion'])
|
2018-02-11 15:05:59 +01:00
|
|
|
Pool.register(
|
|
|
|
|
sale.ReturnSale,
|
|
|
|
|
module='sale_shipment_cost', type_='wizard')
|