3 Commits

Author SHA1 Message Date
7d081ee7c0 fix: Machete Calzabana 2025-07-27 00:13:08 -03:00
0dac9f1ba9 fix: Update 7.6 2025-07-23 13:26:30 -03:00
316d0fe62d Add field Not Restaurant in user 2025-07-13 11:35:20 -05:00
6 changed files with 32 additions and 27 deletions

View File

@@ -4,14 +4,14 @@
<tryton>
<data>
<record model="ir.ui.view" id="product_view_tree">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_tree"/>
<field name="name">product_tree</field>
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_tree"/>
<field name="name">product_tree</field>
</record>
<record model="ir.ui.view" id="product_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">product_form</field>
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">product_form</field>
</record>
</data>
</tryton>

View File

@@ -5,7 +5,6 @@ this repository contains the full copyright notices and license terms. -->
<data>
<record model="ir.action.report" id="report_close_statement">
<field name="name">Close statement</field>
<field name="model"></field>
<field name="report_name">sale.cash_register</field>
<field name="report">sale_fast_food/report/close_statement.fodt</field>
<field name="template_extension">odt</field>
@@ -25,4 +24,4 @@ this repository contains the full copyright notices and license terms. -->
id="menu_print_cash_register"
icon="tryton-print"/>
</data>
</tryton>
</tryton>

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

@@ -7,3 +7,4 @@ class User(metaclass=PoolMeta):
__name__ = 'res.user'
waiter = fields.Boolean('Waiter')
not_restaurant = fields.Boolean('Not Restaurant')

View File

@@ -2,19 +2,22 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='salable']" position="after">
<label name="pizza"/>
<field name="pizza"/>
<label name="pizza_topping"/>
<field name="pizza_topping"/>
<label name="tip"/>
<field name="tip"/>
<label name="kitchen"/>
<field name="kitchen"/>
<label name="bar"/>
<field name="bar"/>
<newline/>
<label name="boms"/>
<field name="boms" xexpand="1"/>
</xpath>
<xpath expr="//field[@name='salable']" position="after">
<label name="pizza"/>
<field name="pizza"/>
<label name="pizza_topping"/>
<field name="pizza_topping"/>
<label name="tip"/>
<field name="tip"/>
<label name="kitchen"/>
<field name="kitchen"/>
<label name="bar"/>
<field name="bar"/>
</xpath>
<xpath expr="//field[@name='default_uom']" position="after">
<group id="boms">
<label name="boms"/>
<field name="boms"/>
</group>
</xpath>
</data>

View File

@@ -5,5 +5,7 @@
<xpath expr="//field[@name='name']" position="after">
<label name="waiter"/>
<field name="waiter"/>
<label name="not_restaurant"/>
<field name="not_restaurant"/>
</xpath>
</data>