Compare commits
3 Commits
6.8
...
MacheteCal
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d081ee7c0 | |||
| 0dac9f1ba9 | |||
| 316d0fe62d |
12
product.xml
12
product.xml
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
8
sale.py
8
sale.py
@@ -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
|
||||
|
||||
1
user.py
1
user.py
@@ -7,3 +7,4 @@ class User(metaclass=PoolMeta):
|
||||
__name__ = 'res.user'
|
||||
|
||||
waiter = fields.Boolean('Waiter')
|
||||
not_restaurant = fields.Boolean('Not Restaurant')
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user