When account_tax_rule_country is activated, the pattern must be filled with from_country and to_country to compute the right tax. Closes #13223 (grafted from 1f4f2778d399c214b93ff41ac9e11e826f7c6724) --HG-- branch : 7.0
34 lines
949 B
Python
34 lines
949 B
Python
# 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'])
|