Fix: Sale Order, Traductions
This commit is contained in:
parent
7870747ba5
commit
674f6c9f7b
131
locale/es.po
Normal file
131
locale/es.po
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,company:"
|
||||||
|
msgid "Company"
|
||||||
|
msgstr "Empresa"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,currency:"
|
||||||
|
msgid "Currency"
|
||||||
|
msgstr "Moneda"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,number:"
|
||||||
|
msgid "Number"
|
||||||
|
msgstr "Número"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,party:"
|
||||||
|
msgid "Party"
|
||||||
|
msgstr "Tercero"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,order_address:"
|
||||||
|
msgid "Address"
|
||||||
|
msgstr "Dirección de Envío"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,pickup_location:"
|
||||||
|
msgid "Pickup Location"
|
||||||
|
msgstr "Lugar de Recogida"
|
||||||
|
|
||||||
|
msgctxt "selection:sale.order,pickup_location:"
|
||||||
|
msgid "On Site"
|
||||||
|
msgstr "En el sitio"
|
||||||
|
|
||||||
|
msgctxt "selection:sale.order,pickup_location:"
|
||||||
|
msgid "At Home"
|
||||||
|
msgstr "A Domicilio"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,order_mobile:"
|
||||||
|
msgid "Mobile"
|
||||||
|
msgstr "Teléfono de Contacto"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,date:"
|
||||||
|
msgid "Date"
|
||||||
|
msgstr "Fecha de la Orden"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,lines:"
|
||||||
|
msgid "Lines"
|
||||||
|
msgstr "Líneas"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,total_order:"
|
||||||
|
msgid "Total"
|
||||||
|
msgstr "Total"
|
||||||
|
|
||||||
|
msgctxt "field:sale.order,state:"
|
||||||
|
msgid "State"
|
||||||
|
msgstr "Estado"
|
||||||
|
|
||||||
|
msgctxt "selection:sale.order,state:"
|
||||||
|
msgid "Draft"
|
||||||
|
msgstr "Borrador"
|
||||||
|
|
||||||
|
msgctxt "selection:sale.order,state:"
|
||||||
|
msgid "Confirmed"
|
||||||
|
msgstr "Confirmado"
|
||||||
|
|
||||||
|
msgctxt "selection:sale.order,state:"
|
||||||
|
msgid "Done"
|
||||||
|
msgstr "Finalizada"
|
||||||
|
|
||||||
|
msgctxt "view:sale.order:"
|
||||||
|
msgid "Order"
|
||||||
|
msgstr "Pedido"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,order:"
|
||||||
|
msgid "Order"
|
||||||
|
msgstr "Orden"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,company:"
|
||||||
|
msgid "Company"
|
||||||
|
msgstr "Empresa"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,currency:"
|
||||||
|
msgid "Currency"
|
||||||
|
msgstr "Moneda"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,product:"
|
||||||
|
msgid "Product"
|
||||||
|
msgstr "Producto"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,unit:"
|
||||||
|
msgid "Unit"
|
||||||
|
msgstr "Unidad de Medida"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,product_uom_category:"
|
||||||
|
msgid "Product UOM Category"
|
||||||
|
msgstr "Categoría de la unidad de medida"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,quantity:"
|
||||||
|
msgid "Quantity"
|
||||||
|
msgstr "Cantidad"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,unitprice:"
|
||||||
|
msgid "Unit Price"
|
||||||
|
msgstr "Precio Unitario"
|
||||||
|
|
||||||
|
msgctxt "field:order.line,total_amount:"
|
||||||
|
msgid "Total Amount"
|
||||||
|
msgstr "Valor Total"
|
||||||
|
|
||||||
|
msgctxt "model:ir.action.act_window.domain,name:act_order_form_domain_draft"
|
||||||
|
msgid "Draft"
|
||||||
|
msgstr "Borrador"
|
||||||
|
|
||||||
|
msgctxt "model:ir.action.act_window.domain,name:act_order_form_domain_confirm"
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr "Confirmada"
|
||||||
|
|
||||||
|
msgctxt "model:ir.action.act_window.domain,name:act_order_form_domain_done"
|
||||||
|
msgid "Done"
|
||||||
|
msgstr "Finalizada"
|
||||||
|
|
||||||
|
msgctxt "model:ir.model.button,string:confirm_order_button"
|
||||||
|
msgid "Confirm"
|
||||||
|
msgstr "Confirmar"
|
||||||
|
|
||||||
|
msgctxt "model:ir.ui.menu,name:menu_order"
|
||||||
|
msgid "Order"
|
||||||
|
msgstr "Ordenes"
|
||||||
|
|
||||||
|
msgctxt "model:ir.action,name:act_sale_order"
|
||||||
|
msgid "Order"
|
||||||
|
msgstr "Orden"
|
@ -5,7 +5,7 @@ from trytond.pool import Pool
|
|||||||
from trytond.transaction import Transaction
|
from trytond.transaction import Transaction
|
||||||
from trytond.modules.currency.fields import Monetary
|
from trytond.modules.currency.fields import Monetary
|
||||||
from trytond.modules.product import price_digits
|
from trytond.modules.product import price_digits
|
||||||
from trytond.pyson import Eval
|
from trytond.pyson import Eval, Bool
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ class SaleOrder (Workflow, ModelView, ModelSQL):
|
|||||||
__name__ = 'sale.order'
|
__name__ = 'sale.order'
|
||||||
|
|
||||||
_states = {
|
_states = {
|
||||||
'readonly': Eval('state').in_(['confirmed'])
|
'readonly': Eval('state').in_(['confirmed', 'done'])
|
||||||
}
|
}
|
||||||
|
|
||||||
company = fields.Many2One(
|
company = fields.Many2One(
|
||||||
@ -36,8 +36,8 @@ class SaleOrder (Workflow, ModelView, ModelSQL):
|
|||||||
'party.address', 'Address', required=True, states=_states)
|
'party.address', 'Address', required=True, states=_states)
|
||||||
pickup_location = fields.Selection([
|
pickup_location = fields.Selection([
|
||||||
("on_site", "On Site"),
|
("on_site", "On Site"),
|
||||||
("at_home", "At Home")], 'Pickup Location')
|
("at_home", "At Home")], 'Pickup Location', states=_states)
|
||||||
order_mobile = fields.Char('Mobile')
|
order_mobile = fields.Char('Mobile', states=_states)
|
||||||
date = fields.Date("Date", required=True, states=_states)
|
date = fields.Date("Date", required=True, states=_states)
|
||||||
lines = fields.One2Many(
|
lines = fields.One2Many(
|
||||||
'order.line', 'order', 'Lines', states=_states)
|
'order.line', 'order', 'Lines', states=_states)
|
||||||
@ -46,7 +46,9 @@ class SaleOrder (Workflow, ModelView, ModelSQL):
|
|||||||
'on_change_with_total_order')
|
'on_change_with_total_order')
|
||||||
state = fields.Selection([
|
state = fields.Selection([
|
||||||
('draft', 'Draft'),
|
('draft', 'Draft'),
|
||||||
('confirmed', 'Confirmed')], "State", readonly=True)
|
('confirmed', 'Confirmed'),
|
||||||
|
('done', "Done")
|
||||||
|
], "State", readonly=True)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
@ -54,7 +56,8 @@ class SaleOrder (Workflow, ModelView, ModelSQL):
|
|||||||
cls._buttons.update({
|
cls._buttons.update({
|
||||||
'confirm': {
|
'confirm': {
|
||||||
'readonly': Eval('state').in_(['confirmed']),
|
'readonly': Eval('state').in_(['confirmed']),
|
||||||
'invisible': Eval('state').in_(['confirmed'])
|
'invisible': Eval('state').in_(['confirmed']) | ~Bool(
|
||||||
|
Eval('lines', [0]))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
cls._transitions |= set((
|
cls._transitions |= set((
|
||||||
@ -144,7 +147,7 @@ class OrderLine(ModelView, ModelSQL):
|
|||||||
'readonly': Eval('_parent_order.state').in_(['confirmed'])
|
'readonly': Eval('_parent_order.state').in_(['confirmed'])
|
||||||
}
|
}
|
||||||
order = fields.Many2One(
|
order = fields.Many2One(
|
||||||
'sale.order', "Sale")
|
'sale.order', "Order")
|
||||||
company = fields.Many2One(
|
company = fields.Many2One(
|
||||||
'company.company', "Company", states={
|
'company.company', "Company", states={
|
||||||
'readonly': True,
|
'readonly': True,
|
||||||
@ -158,7 +161,8 @@ class OrderLine(ModelView, ModelSQL):
|
|||||||
product = fields.Many2One(
|
product = fields.Many2One(
|
||||||
'product.product', 'Product', required=True, states=_states)
|
'product.product', 'Product', required=True, states=_states)
|
||||||
unit = fields.Many2One(
|
unit = fields.Many2One(
|
||||||
'product.uom', 'Unit', required=True, readonly=True)
|
'product.uom', 'Unit', required=True, states=_states
|
||||||
|
)
|
||||||
product_uom_category = fields.Function(
|
product_uom_category = fields.Function(
|
||||||
fields.Many2One('product.uom.category', 'Product UOM Category'),
|
fields.Many2One('product.uom.category', 'Product UOM Category'),
|
||||||
'on_change_with_product_uom_category')
|
'on_change_with_product_uom_category')
|
||||||
|
@ -72,7 +72,7 @@ this repository contains the full copyright notices and license terms. -->
|
|||||||
<field name="act_window" ref="act_sale_order"/>
|
<field name="act_window" ref="act_sale_order"/>
|
||||||
</record>
|
</record>
|
||||||
<menuitem
|
<menuitem
|
||||||
name="Order"
|
name="Orders"
|
||||||
action="act_sale_order"
|
action="act_sale_order"
|
||||||
sequence="80"
|
sequence="80"
|
||||||
id="menu_order"
|
id="menu_order"
|
||||||
|
Loading…
Reference in New Issue
Block a user