2 Commits

Author SHA1 Message Date
c7efae9297 move register from __init__ to tryton.cfg 2026-07-02 19:21:02 -05:00
bf537eadaf Update version to 8.0.0 2026-07-02 17:14:47 -05:00
3 changed files with 26 additions and 33 deletions

View File

@@ -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')

View File

@@ -151,8 +151,8 @@ class Sale(metaclass=PoolMeta):
invoice = record.invoices[0]
data = {}
data['invoice_number'] = invoice.number
#subtype = invoice.subtype
#data['resolution'] = cls.get_invoice_resolution(subtype)
subtype = invoice.subtype
data['resolution'] = cls.get_invoice_resolution(subtype)
return data
@@ -171,8 +171,8 @@ class Sale(metaclass=PoolMeta):
data["shop_nit"] = shop.company.party.tax_identifier.code
data["shop_address"] = shop.address.street
data['invoice'] = cls.get_invoice(record)
# data['fe_cufe'] = record.fe_qrcode
# data['cufe'] = record.fe_cufe
data['fe_cufe'] = record.fe_qrcode
data['cufe'] = record.fe_cufe
data["party"] = record.party.name
data["tax_identifier_type"] = record.party.tax_identifier.type_string
data["tax_identifier_code"] = record.party.tax_identifier.code

View File

@@ -1,5 +1,5 @@
[tryton]
version=7.6.0
version=8.0.0
depends:
ir
res
@@ -19,3 +19,24 @@ xml:
user.xml
report_close_statement.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