-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path__init__.py
38 lines (36 loc) · 1003 Bytes
/
__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
# -*- coding: utf-8 -*-
from trytond.pool import Pool
from gift_card import (
GiftCard, GiftCardReport, GiftCardRedeemStart, GiftCardRedeemDone,
GiftCardRedeemWizard
)
from sale import SaleLine, Sale, AddSalePaymentView, Payment, AddSalePayment
from configuration import Configuration, SaleConfiguration
from gateway import PaymentGateway, PaymentTransaction
from product import Product, GiftCardPrice
def register():
Pool.register(
Configuration,
GiftCard,
GiftCardPrice,
GiftCardRedeemStart,
GiftCardRedeemDone,
SaleConfiguration,
SaleLine,
Sale,
AddSalePaymentView,
Payment,
PaymentGateway,
PaymentTransaction,
Product,
module='gift_card', type_='model'
)
Pool.register(
GiftCardReport,
module='gift_card', type_='report'
)
Pool.register(
GiftCardRedeemWizard,
AddSalePayment,
module='gift_card', type_='wizard'
)