2018-11-06 18:11:59 +01:00
|
|
|
# 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 sale_cost
|
|
|
|
from . import invoice
|
|
|
|
|
|
|
|
|
|
|
|
def register():
|
|
|
|
Pool.register(
|
|
|
|
sale_cost.CostType,
|
|
|
|
sale_cost.CostTemplate,
|
2018-11-22 13:45:18 +01:00
|
|
|
sale_cost.SaleCost,
|
2018-11-06 18:11:59 +01:00
|
|
|
module='sale_cost_apply_invoice', type_='model')
|
2020-07-09 00:55:58 +02:00
|
|
|
Pool.register(
|
|
|
|
invoice.InvoiceLineSaleInfo,
|
|
|
|
module='sale_cost_apply_invoice', type_='model',
|
|
|
|
depends=['account_invoice_line_sale_info'])
|
2021-05-21 10:29:44 +02:00
|
|
|
Pool.register(
|
|
|
|
sale_cost.SaleCostDiscount,
|
|
|
|
module='sale_cost_apply_invoice', type_='model',
|
|
|
|
depends=['account_invoice_discount'])
|