move register from __init__ to tryton.cfg
This commit is contained in:
28
__init__.py
28
__init__.py
@@ -1,28 +0,0 @@
|
|||||||
from trytond.pool import Pool
|
|
||||||
from . import (
|
|
||||||
product, sale, production, invoice, user, report_close_statement, report)
|
|
||||||
|
|
||||||
__all__ = ['register']
|
|
||||||
|
|
||||||
|
|
||||||
def register():
|
|
||||||
Pool.register(
|
|
||||||
product.Product,
|
|
||||||
invoice.InvoiceLine,
|
|
||||||
sale.Sale,
|
|
||||||
sale.Line,
|
|
||||||
sale.SaleLineDeletedLog,
|
|
||||||
user.User,
|
|
||||||
production.Production,
|
|
||||||
report_close_statement.ReportCloseStatementStart,
|
|
||||||
report.ReportSaleProduct,
|
|
||||||
report.ReportSaleByUser,
|
|
||||||
report.ReportSaleByZone,
|
|
||||||
report.ReportSaleContext,
|
|
||||||
module='sale_fast_food', type_='model')
|
|
||||||
Pool.register(
|
|
||||||
report_close_statement.PrintReportCloseStatement,
|
|
||||||
module='sale_fast_food', type_='wizard')
|
|
||||||
Pool.register(
|
|
||||||
report_close_statement.CashRegister,
|
|
||||||
module='sale_fast_food', type_='report')
|
|
||||||
|
|||||||
21
tryton.cfg
21
tryton.cfg
@@ -19,3 +19,24 @@ xml:
|
|||||||
user.xml
|
user.xml
|
||||||
report_close_statement.xml
|
report_close_statement.xml
|
||||||
report.xml
|
report.xml
|
||||||
|
|
||||||
|
[register]
|
||||||
|
model:
|
||||||
|
product.Product
|
||||||
|
invoice.InvoiceLine
|
||||||
|
sale.Sale
|
||||||
|
sale.Line
|
||||||
|
sale.SaleLineDeletedLog
|
||||||
|
user.User
|
||||||
|
production.Production
|
||||||
|
report_close_statement.ReportCloseStatementStart
|
||||||
|
report.ReportSaleProduct
|
||||||
|
report.ReportSaleByUser
|
||||||
|
report.ReportSaleByZone
|
||||||
|
report.ReportSaleContext
|
||||||
|
|
||||||
|
wizards:
|
||||||
|
report_close_statement.PrintReportCloseStatement
|
||||||
|
|
||||||
|
report:
|
||||||
|
report_close_statement.CashRegister
|
||||||
|
|||||||
Reference in New Issue
Block a user