This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path__init__.py
58 lines (53 loc) · 1.73 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import Pool
try:
from trytond.modules.stock.stock_reporting_margin import \
Abstract as StockReportingMarginAbstract
except ImportError:
StockReportingMarginAbstract = None
from . import (
account, commission, commission_reporting, invoice, ir, party, product,
sale, stock, stock_reporting_margin)
def register():
Pool.register(
commission.Plan,
commission.PlanLines,
commission.Agent,
commission.AgentSelection,
commission.Commission,
commission.CreateInvoiceAsk,
commission_reporting.Agent,
commission_reporting.AgentTimeseries,
commission_reporting.Context,
invoice.Invoice,
invoice.InvoiceLine,
invoice.CreditInvoiceStart,
product.Template,
product.Template_Agent,
product.Product,
account.Journal,
party.Party,
ir.EmailTemplate,
module='commission', type_='model')
Pool.register(
sale.Sale,
sale.Line,
module='commission', type_='model',
depends=['sale'])
Pool.register(
stock.Move,
stock_reporting_margin.Context,
module='commission', type_='model',
depends=['stock'])
Pool.register(
commission.CreateInvoice,
invoice.CreditInvoice,
party.Replace,
party.Erase,
module='commission', type_='wizard')
if StockReportingMarginAbstract:
Pool.register_mixin(
stock_reporting_margin.AbstractCommissionMixin,
StockReportingMarginAbstract,
module='commission')