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
|
2022-06-27 12:10:53 +02:00
|
|
|
from . import intrastat
|
2018-11-06 18:11:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
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'])
|
2022-06-27 12:10:53 +02:00
|
|
|
Pool.register(
|
|
|
|
intrastat.SaleCostType,
|
|
|
|
intrastat.InvoiceLine,
|
|
|
|
module='sale_cost_apply_invoice', type_='model',
|
|
|
|
depends=['intrastat'])
|
2023-09-20 19:50:20 +02:00
|
|
|
Pool.register(
|
|
|
|
sale_cost.CostType349,
|
|
|
|
invoice.InvoiceLine349,
|
|
|
|
module='sale_cost_apply_invoice', type_='model',
|
|
|
|
depends=['aeat_349'])
|