translation, refactor

This commit is contained in:
Marcos Sabater 2019-08-25 11:56:27 +02:00
parent 589694145c
commit 753cd40990
8 changed files with 170 additions and 59 deletions

View File

@ -13,7 +13,6 @@ def register():
edocument.EdocumentMessage,
party.Party,
party.PartyIdentifier,
party.Address,
stock.Configuration,
stock.ConfigurationSequence,
stock.ConfigurationEDIOutputPath,

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="address_view_form">
<field name="model">party.address</field>
<field name="inherit" ref="party.address_view_form"/>
<field name="name">address_form</field>
</record>
</data>
</tryton>

View File

@ -23,7 +23,7 @@ msgid "Message"
msgstr "Mensaje"
msgctxt "field:edocument.message,rec_name:"
msgid "Name"
msgid "Record Name"
msgstr "Nombre"
msgctxt "field:edocument.message,sequence:"
@ -38,10 +38,93 @@ msgctxt "field:edocument.message,write_uid:"
msgid "Write User"
msgstr "Usuario que escribe."
#, fuzzy
msgctxt "field:incoterm.rule,EDI_code:"
msgid "EDI Code"
msgstr "Código EDI"
msgctxt "field:party.address,EDI_code:"
msgid "EDI Code"
msgstr "Código EDI"
msgctxt "field:party.party,edi_add_header:"
msgid "Add Header"
msgstr "Añadir Cabecera"
msgctxt "field:party.party,edi_assigned_code:"
msgid "Assigned Code"
msgstr "Código Asignado"
msgctxt "field:party.party,edi_release_number:"
msgid "Release Number"
msgstr "Número Versión"
#, fuzzy
msgctxt "field:product.cross_reference,EDI_code:"
msgid "EAN Code"
msgstr "Código EAN"
#, fuzzy
msgctxt "field:product.product,EDI_code:"
msgid "EDI Code"
msgstr "Código EDI"
msgctxt "field:product.template,EDI_code:"
msgid "EDI Code"
msgstr "Código EDI"
msgctxt "field:stock.configuration,EDI_output_path:"
msgid "EDI Output Path"
msgstr ""
msgctxt "field:stock.configuration,edocument_sequence:"
msgid "Electronic Document Sequence"
msgstr "Secuencia Documentación Electrónica"
msgctxt "field:stock.configuration.edi_output_path,EDI_output_path:"
msgid "EDI Output Path"
msgstr ""
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,company:"
msgid "Company"
msgstr "Empresa"
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,create_date:"
msgid "Create Date"
msgstr "Fecha de creación"
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,create_uid:"
msgid "Create User"
msgstr "Usuario de creación"
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,id:"
msgid "ID"
msgstr "Identificador"
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,rec_name:"
msgid "Record Name"
msgstr "Nombre registro"
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,write_date:"
msgid "Write Date"
msgstr "Fecha modificación"
#, fuzzy
msgctxt "field:stock.configuration.edi_output_path,write_uid:"
msgid "Write User"
msgstr "Usuario que escribe."
#, fuzzy
msgctxt "field:stock.configuration.sequence,edocument_sequence:"
msgid "Electronic Document Sequence"
msgstr "Secuencia Documentación Electrónica"
msgctxt "model:edocument.message,name:"
msgid "EDIFACT message"
msgstr "Mensaje EDIFACT"
@ -54,10 +137,74 @@ msgctxt "model:ir.sequence.type,name:sequence_type_edocument"
msgid "Electronic Document"
msgstr "Documentación Electrónica"
msgctxt "field:product.template,EDI_code:"
msgid "EDI Code"
msgstr "Código EDI"
msgctxt "model:stock.configuration.edi_output_path,name:"
msgid "Stock Configuration EDI Output Path"
msgstr ""
msgctxt "field:party.address,EDI_code:"
msgid "EDI Code"
msgstr "Código EDI"
msgctxt "selection:party.identifier,type:"
msgid "EDI Receiver"
msgstr ""
msgctxt "selection:party.identifier,type:"
msgid "EDI Sender"
msgstr ""
msgctxt "selection:party.identifier,type:"
msgid "EDI Supplier"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid " "
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN001"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN002"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN003"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN004"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN005"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN006"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN007"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN008"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN009"
msgstr ""
msgctxt "selection:party.party,edi_assigned_code:"
msgid "EAN010"
msgstr ""
msgctxt "selection:party.party,edi_release_number:"
msgid " "
msgstr ""
msgctxt "selection:party.party,edi_release_number:"
msgid "01B"
msgstr ""
msgctxt "selection:party.party,edi_release_number:"
msgid "96A"
msgstr ""

View File

@ -3,7 +3,7 @@
from trytond.pool import PoolMeta
from trytond.model import fields
__all__ = ['Party', 'PartyIdentifier', 'Address']
__all__ = ['Party', 'PartyIdentifier']
class Party(metaclass=PoolMeta):
@ -42,8 +42,3 @@ class PartyIdentifier(metaclass=PoolMeta):
('EDI_receiver', 'EDI Receiver'),
('EDI_supplier', 'EDI Supplier')])
class Address(metaclass=PoolMeta):
__name__ = 'party.address'
EDI_code = fields.Char('EDI Code')

View File

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="template_view_form">
<field name="model">product.template</field>
<field name="inherit" ref="product.template_view_form"/>
<field name="name">template_form</field>
</record>
<record model="ir.ui.view" id="product_cross_reference_list_view">
<field name="model">product.cross_reference</field>
<field name="inherit" ref="product_cross_reference.product_cross_reference_list_view"/>
<field name="name">product_cross_reference_list</field>
</record>
<record model="ir.ui.view" id="product_cross_reference_form_view">
<field name="model">product.cross_reference</field>
<field name="inherit" ref="product_cross_reference.product_cross_reference_form_view"/>
<field name="name">product_cross_reference_form</field>
</record>
</data>
</tryton>

View File

@ -9,10 +9,10 @@ depends:
incoterm
stock_unit_load
product_ean
party_edi
product_cross_reference
xml:
stock.xml
incoterm.xml
product.xml
edocument.xml
address.xml

13
view/party_form.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/form/notebook/page[@id='edi']" position="inside">
<label name="edi_add_header"/>
<field name="edi_add_header"/>
<label name="edi_release_number"/>
<field name="edi_release_number"/>
<label name="edi_assigned_code"/>
<field name="edi_assigned_code"/>
</xpath>
</data>

View File

@ -1,9 +0,0 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/form/label[@name='active']" position="before">
<label name="EDI_code"/>
<field name="EDI_code"/>
</xpath>
</data>