1 Commits

Author SHA1 Message Date
7d081ee7c0 fix: Machete Calzabana 2025-07-27 00:13:08 -03:00
3 changed files with 33 additions and 26 deletions

View File

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

View File

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