File: __init__.py

package info (click to toggle)
tryton-modules-web-shop 7.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: python: 592; xml: 244; makefile: 11; sh: 3
file content (33 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (2)
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
# 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

__all__ = ['register']

from . import product, sale, web


def register():
    Pool.register(
        web.Shop,
        web.Shop_Warehouse,
        web.Shop_Product,
        web.Shop_ProductCategory,
        web.User,
        product.Template,
        product.Product,
        product.Category,
        sale.Sale,
        module='web_shop', type_='model')
    Pool.register(
        web.ShopAttribute,
        web.Shop_Attribute,
        product.Attribute,
        module='web_shop', type_='model', depends=['product_attribute'])
    Pool.register(
        product.Image,
        module='web_shop', type_='model', depends=['product_image'])
    Pool.register(
        web.Shop_TaxRuleCountry,
        module='web_shop', type_='model', depends=['account_tax_rule_country'])