chore: Se agregan traducciones y se organizan vistas

This commit is contained in:
Camilo Gonzalez 2023-09-17 19:02:00 -05:00
parent f45043af7e
commit 50c40c0a1c
6 changed files with 139 additions and 750 deletions

View File

@ -45,3 +45,27 @@ msgstr "Total Descuento"
msgctxt "field:res.user,waiter:" msgctxt "field:res.user,waiter:"
msgid "Waiter" msgid "Waiter"
msgstr "Mesero" msgstr "Mesero"
msgctxt "model:ir.ui.menu,name:menu_print_cash_register"
msgid "Print cash register"
msgstr "Imprimir arqueo de caja"
msgctxt "field:sale.print_cash_register.start,date:"
msgid "Date"
msgstr "Fecha"
msgctxt "field:sale.print_cash_register.start,shop:"
msgid "Shop"
msgstr "Tienda"
msgctxt "wizard_button:sale.print_cash_register,start,end:"
msgid "Cancel"
msgstr "Cancelar"
msgctxt "wizard_button:sale.print_cash_register,start,print_cash_register:"
msgid "Print Cash Register"
msgstr "Imprimir"
msgctxt "model:ir.action,name:wizard_print_cash_register"
msgid "Print cash register"
msgstr "Imprimir arqueo de caja"

File diff suppressed because it is too large Load Diff

View File

@ -60,7 +60,7 @@ class CashRegister(Report):
def get_number_pizzas_sold(lines): def get_number_pizzas_sold(lines):
pizzas = 0 pizzas = 0
for line in lines: for line in lines:
if line.bought_pizza: if line.bougth_pizza:
pizzas += line.quantity pizzas += line.quantity
return pizzas return pizzas

View File

@ -329,7 +329,7 @@ class Line(metaclass=PoolMeta):
pizza = fields.Integer("Pizza") pizza = fields.Integer("Pizza")
impreso = fields.Boolean("Impreso") impreso = fields.Boolean("Impreso")
bought_pizza = fields.Boolean("Sold pizza") bougth_pizza = fields.Boolean("Sold pizza")
@fields.depends('product', 'unit', 'sale', @fields.depends('product', 'unit', 'sale',
'_parent_sale.party', '_parent_sale.invoice_party', '_parent_sale.party', '_parent_sale.invoice_party',
@ -340,9 +340,9 @@ class Line(metaclass=PoolMeta):
super(Line, self).on_change_product() super(Line, self).on_change_product()
if self.product and self.product.pizza: if self.product and self.product.pizza:
self.pizza = self.sale.pizza_number self.pizza = self.sale.pizza_number
self.bought_pizza = True self.bougth_pizza = True
else: else:
self.bought_pizza = False self.bougth_pizza = False
def get_production(self): def get_production(self):
"Return production for the sale line" "Return production for the sale line"

View File

@ -7,7 +7,7 @@
<field name="pizza"/> <field name="pizza"/>
<label name="impreso"/> <label name="impreso"/>
<field name="impreso"/> <field name="impreso"/>
<label name="bought_pizza"/> <label name="bougth_pizza"/>
<field name="bought_pizza"/> <field name="bougth_pizza"/>
</xpath> </xpath>
</data> </data>