trytond-sale_cost_apply_inv.../__init__.py

22 lines
695 B
Python
Raw Normal View History

# 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,
sale_cost.SaleCost,
module='sale_cost_apply_invoice', type_='model')
Pool.register(
invoice.InvoiceLineSaleInfo,
module='sale_cost_apply_invoice', type_='model',
depends=['account_invoice_line_sale_info'])
Pool.register(
sale_cost.SaleCostDiscount,
module='sale_cost_apply_invoice', type_='model',
depends=['account_invoice_discount'])