本文整理汇总了Python中trytond.pool.Pool.register方法的典型用法代码示例。如果您正苦于以下问题:Python Pool.register方法的具体用法?Python Pool.register怎么用?Python Pool.register使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类trytond.pool.Pool
的用法示例。
在下文中一共展示了Pool.register方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
Sale,
ShipmentOut,
Carrier,
module='carrier_pricelist', type_='model'
)
示例2: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
"Register classes with pool"
Pool.register(
Channel,
PrestashopExportOrdersWizardView,
PrestashopConnectionWizardView,
Country,
Subdivision,
CountryPrestashop,
SubdivisionPrestashop,
Currency,
CurrencyPrestashop,
Language,
SiteLanguage,
Party,
Address,
ContactMechanism,
Template,
TemplatePrestashop,
Product,
ProductPrestashop,
Sale,
SaleLine,
SiteOrderState,
module='prestashop', type_='model')
Pool.register(
PrestashopExportOrdersWizard,
PrestashopConnectionWizard,
module='prestashop', type_='wizard')
示例3: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
"""
Register classes with pool
"""
Pool.register(
SaleChannel,
Product,
ProductCode,
Template,
ExportAmazonCatalogStart,
ExportAmazonCatalogDone,
ExportAmazonInventoryStart,
ExportAmazonInventoryDone,
CheckAmazonServiceStatusView,
CheckAmazonSettingsView,
Sale,
Party,
Address,
Subdivision,
module='amazon_mws', type_='model'
)
Pool.register(
CheckAmazonServiceStatus,
CheckAmazonSettings,
ExportAmazonCatalog,
ExportAmazonInventory,
module='amazon_mws', type_='wizard'
)
示例4: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
typologie,
allo,
module='allo_quoi', type_='model')
Pool.register(ObjPointQGis, module='allo_quoi', type_='report')
示例5: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
DrugsRecreational,
PatientRecreationalDrugs,
PatientCAGE,
MedicalPatient,
module='health_lifestyle', type_='model')
示例6: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
"""
Register classes with pool
"""
Pool.register(
MWSAccount,
Product,
ProductCode,
Template,
ProductMwsAccount,
ExportCatalogStart,
ExportCatalogDone,
ExportCatalogPricingStart,
ExportCatalogPricingDone,
ExportCatalogInventoryStart,
ExportCatalogInventoryDone,
CheckServiceStatusView,
CheckAmazonSettingsView,
module='amazon_mws', type_='model'
)
Pool.register(
CheckServiceStatus,
CheckAmazonSettings,
ExportCatalog,
ExportCatalogPricing,
ExportCatalogInventory,
module='amazon_mws', type_='wizard'
)
示例7: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
TipoYCategoria,
Producto,
AvisoComun,
AvisoEspecial,
FunebreComun,
FunebreDestacado,
ClasificadoComun,
ClasificadoDestacado,
EdictoJudicial,
Insert,
Suplemento,
Centimetros,
Radio,
Digital,
SeleccionFechas,
FormaVenta,
Sale,
SaleLine,
module='asistente_venta', type_='model')
Pool.register(
AsistenteWizard,
EleccionFormaVenta,
module='asistente_venta', type_='wizard')
示例8: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
Product,
Sale,
SaleLine,
module='sale_quantity_constraints', type_='model'
)
示例9: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
#Pool.register(
# module='library', type_='report')
Pool.register(
Book,
module='library', type_='model'
)
示例10: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
Party,
Sale,
SaleLine,
Product,
module='sale_price_list', type_='model')
示例11: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
Template,
Product,
ProductVariationAttributes,
module='nereid_catalog_variants', type_='model'
)
示例12: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
Sale,
Checkout,
DefaultCheckout,
type_="model", module="nereid_checkout"
)
示例13: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
"Register classes"
Pool.register(
Website,
NereidUser,
module='nereid_auth_github', type_='model'
)
示例14: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
Address,
Party,
ContactMechanism,
NereidUser,
Permission,
UserPermission,
URLMap,
WebSiteLocale,
WebSite,
URLRule,
URLRuleDefaults,
WebsiteCountry,
WebsiteCurrency,
WebsiteWebsiteLocale,
NereidStaticFolder,
NereidStaticFile,
Currency,
ContextProcessors,
NereidConfigStart,
module='nereid', type_='model'
)
Pool.register(
NereidConfig,
module='nereid', type_='wizard'
)
示例15: register
# 需要导入模块: from trytond.pool import Pool [as 别名]
# 或者: from trytond.pool.Pool import register [as 别名]
def register():
Pool.register(
SaleChannel,
ReadUser,
WriteUser,
ChannelException,
ChannelOrderState,
User,
Sale,
ProductSaleChannelListing,
Product,
ImportDataWizardStart,
ImportDataWizardSuccess,
ImportDataWizardProperties,
ImportOrderStatesStart,
ExportPricesStatus,
ExportPricesStart,
AddProductListingStart,
module='sale_channel', type_='model'
)
Pool.register(
AddProductListing,
ImportDataWizard,
ImportOrderStates,
ExportPrices,
module='sale_channel', type_='wizard'
)