move register from __init__ to tryton.cfg
This commit is contained in:
17
__init__.py
17
__init__.py
@@ -1,17 +0,0 @@
|
|||||||
from trytond.pool import Pool
|
|
||||||
from . import printer, shop
|
|
||||||
|
|
||||||
__all__ = ['register']
|
|
||||||
|
|
||||||
|
|
||||||
def register():
|
|
||||||
Pool.register(
|
|
||||||
printer.Device,
|
|
||||||
printer.Api,
|
|
||||||
printer.Printer,
|
|
||||||
shop.Shop,
|
|
||||||
module='sale_printer', type_='model')
|
|
||||||
Pool.register(
|
|
||||||
module='sale_printer', type_='wizard')
|
|
||||||
Pool.register(
|
|
||||||
module='sale_printer', type_='report')
|
|
||||||
|
|||||||
@@ -7,3 +7,10 @@ depends:
|
|||||||
xml:
|
xml:
|
||||||
printer.xml
|
printer.xml
|
||||||
shop.xml
|
shop.xml
|
||||||
|
|
||||||
|
[register]
|
||||||
|
model:
|
||||||
|
printer.Device
|
||||||
|
printer.Api
|
||||||
|
printer.Printer
|
||||||
|
shop.Shop
|
||||||
|
|||||||
Reference in New Issue
Block a user