[IMP] nan_quality_control: added model qc.test.link to configure available reference types in Test/Template reference field. Improved translations

This commit is contained in:
Guillem Barba 2012-02-24 13:26:03 +01:00
parent 6ff9cdedaf
commit b51f0ca547
7 changed files with 465 additions and 139 deletions

View File

@ -47,6 +47,7 @@ Developed for Trod y Avia, S.L.""",
'security/ir.model.access.csv', 'security/ir.model.access.csv',
'quality_control_view.xml', 'quality_control_view.xml',
'qc_precision.xml', 'qc_precision.xml',
'quality_control_data.xml',
], ],
"active": False, "active": False,
"installable": True, "installable": True,

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OpenERP Server 5.0.12\n" "Project-Id-Version: OpenERP Server 5.0.12\n"
"Report-Msgid-Bugs-To: support@openerp.com\n" "Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2011-08-10 14:43+0000\n" "POT-Creation-Date: 2012-02-24 12:13+0000\n"
"PO-Revision-Date: 2012-02-14 15:28+0100\n" "PO-Revision-Date: 2012-02-24 13:21+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: Spanish <>\n" "Language-Team: Spanish <>\n"
"Language: \n" "Language: \n"
@ -47,7 +47,8 @@ msgid "qc.test.set.template.wizard"
msgstr "" msgstr ""
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,uom_id:0 field:qc.test.template.line,uom_id:0 #: field:qc.test,uom_id:0 field:qc.test.line,uom_id:0
#: field:qc.test.template,uom_id:0 field:qc.test.template.line,uom_id:0
msgid "Uom" msgid "Uom"
msgstr "UdM" msgstr "UdM"
@ -58,8 +59,8 @@ msgid ""
"that it can be later be reused for doing quality tests in production lots " "that it can be later be reused for doing quality tests in production lots "
"but also in any other areas a company may desire." "but also in any other areas a company may desire."
msgstr "" msgstr ""
"Aquest mòdul proveeix una infraestructura genèrica per a tests de calitat. La " "Aquest mòdul proveeix una infraestructura genèrica per a tests de calitat. "
"idea és poder extendre els tests als diferents models que la companyia " "La idea és poder extendre els tests als diferents models que la companyia "
"desitgi." "desitgi."
#. module: nan_quality_control #. module: nan_quality_control
@ -77,6 +78,21 @@ msgstr "Omplir amb els valors correctes"
msgid "qc.proof.synonym" msgid "qc.proof.synonym"
msgstr "" msgstr ""
#. module: nan_quality_control
#: field:qc.posible.value,company_id:0 field:qc.proof,company_id:0
#: field:qc.proof.method,company_id:0 field:qc.proof.synonym,company_id:0
#: field:qc.test,company_id:0 field:qc.test.line,company_id:0
#: field:qc.test.template,company_id:0
#: field:qc.test.template.category,company_id:0
#: field:qc.test.template.line,company_id:0
msgid "Company"
msgstr "Companyia"
#. module: nan_quality_control
#: field:qc.test.link,object:0
msgid "Object"
msgstr "Model"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template,object_id:0 #: field:qc.test.template,object_id:0
msgid "Reference Object" msgid "Reference Object"
@ -92,6 +108,11 @@ msgstr "Línies de plantilla"
msgid "Success?" msgid "Success?"
msgstr "Correcte?" msgstr "Correcte?"
#. module: nan_quality_control
#: model:ir.ui.menu,name:nan_quality_control.qc_test_link_menu
msgid "Test Links"
msgstr "Referències a tests"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template #: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template
#: model:ir.model,name:nan_quality_control.model_qc_test_template #: model:ir.model,name:nan_quality_control.model_qc_test_template
@ -106,6 +127,21 @@ msgstr "Plantilla"
msgid "Qualitative" msgid "Qualitative"
msgstr "Qualitativa" msgstr "Qualitativa"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_sale
msgid "Sale Order"
msgstr "Comanda de venta"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_prodlot
msgid "Production Lot"
msgstr "Lot de producció"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_purchase
msgid "Purchase Order"
msgstr "Comanda de compra"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,proof_type:0 #: field:qc.test.line,proof_type:0
msgid "Proof Type" msgid "Proof Type"
@ -171,14 +207,12 @@ msgstr "Sinònim de la prova"
#. module: nan_quality_control #. module: nan_quality_control
#: help:qc.test.line,max_value:0 #: help:qc.test.line,max_value:0
msgid "Maximum valid value if it is a quantitative proof." msgid "Maximum valid value if it is a quantitative proof."
msgstr "Valor màximo si la prova és quantitativa." msgstr "Valor màxim si la prova és quantitativa."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.posible.value,active:0 field:qc.proof,active:0 #: view:qc.test.link:0
#: field:qc.proof.method,active:0 field:qc.test.template,active:0 msgid "Test Reference Type"
#: field:qc.test.template.category,active:0 msgstr "Tipus referència a tests"
msgid "Active"
msgstr "Actiu"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.proof.method:0 #: view:qc.proof.method:0
@ -194,18 +228,23 @@ msgstr "Confirmar"
#: selection:qc.test.template,type:0 #: selection:qc.test.template,type:0
#: model:qc.test.template.category,name:nan_quality_control.qc_test_template_category_generic #: model:qc.test.template.category,name:nan_quality_control.qc_test_template_category_generic
msgid "Generic" msgid "Generic"
msgstr "Genèrico" msgstr "Genèric"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template.category,child_ids:0 #: field:qc.test.template.category,child_ids:0
msgid "Child Categories" msgid "Child Categories"
msgstr "Categories filles." msgstr "Categories filles"
#. module: nan_quality_control #. module: nan_quality_control
#: help:qc.test.line,actual_value_ql:0 #: help:qc.test.line,actual_value_ql:0
msgid "Value of the result if it is a qualitative proof." msgid "Value of the result if it is a qualitative proof."
msgstr "Valor del resultat si la prova és qualitativa." msgstr "Valor del resultat si la prova és qualitativa."
#. module: nan_quality_control
#: field:qc.test.link,priority:0
msgid "Priority"
msgstr "Prioritat"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,state:0 #: field:qc.test,state:0
msgid "State" msgid "State"
@ -237,6 +276,11 @@ msgstr "Resultat del test"
msgid "Configuration" msgid "Configuration"
msgstr "Configuració" msgstr "Configuració"
#. module: nan_quality_control
#: selection:qc.test,state:0
msgid "Waiting Supervisor Approval"
msgstr "Esperant l'aprovació del supervisor"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym #: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym
msgid "Synonym" msgid "Synonym"
@ -252,11 +296,22 @@ msgstr "Categoria pare"
msgid "qc.test.line" msgid "qc.test.line"
msgstr "" msgstr ""
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_partner
msgid "Partner"
msgstr "Empresa"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template.category,complete_name:0 #: field:qc.test.template.category,complete_name:0
msgid "Full Name" msgid "Full Name"
msgstr "Nom complet" msgstr "Nom complet"
#. module: nan_quality_control
#: code:addons/nan_quality_control/quality_control.py:398
#, python-format
msgid "Error:"
msgstr "Error:"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,actual_value_ql:0 #: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value" msgid "Ql.Value"
@ -285,11 +340,6 @@ msgstr "Categoria"
msgid "referenced" msgid "referenced"
msgstr "referenciat" msgstr "referenciat"
#. module: nan_quality_control
#: view:qc.test:0
msgid "Calculate"
msgstr "Calcula"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information #: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information
#: model:ir.ui.menu,name:nan_quality_control.qc_menu #: model:ir.ui.menu,name:nan_quality_control.qc_menu
@ -301,6 +351,13 @@ msgstr "Control de Qualitat"
msgid "Category Name" msgid "Category Name"
msgstr "Nom categoria" msgstr "Nom categoria"
#. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.qc_test_link_act
#: model:ir.model,name:nan_quality_control.model_qc_test_link
#: view:qc.test.link:0
msgid "Test Reference Types"
msgstr "Tipus referència a tests"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_proof_method #: model:ir.model,name:nan_quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu #: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu
@ -326,7 +383,7 @@ msgstr "Valor del resultat si es tracta d'una prova quantitativa."
#. module: nan_quality_control #. module: nan_quality_control
#: help:qc.test.line,min_value:0 #: help:qc.test.line,min_value:0
msgid "Minimum valid value if it is a quantitative proof." msgid "Minimum valid value if it is a quantitative proof."
msgstr "Mínim valor vàlido si es tracta d'una prova quantitativa." msgstr "Mínim valor vàlid si es tracta d'una prova quantitativa."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,date:0 #: field:qc.test,date:0
@ -338,11 +395,6 @@ msgstr "Data"
msgid "Test Method" msgid "Test Method"
msgstr "Mètode del test" msgstr "Mètode del test"
#. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_test_template_trigger
msgid "qc.test.template.trigger"
msgstr ""
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,success:0 #: field:qc.test,success:0
msgid "Success" msgid "Success"
@ -351,7 +403,7 @@ msgstr "Èxit"
#. module: nan_quality_control #. module: nan_quality_control
#: help:qc.test.line,test_uom_id:0 #: help:qc.test.line,test_uom_id:0
msgid "UoM of the value of the result if it is a quantitative proof." msgid "UoM of the value of the result if it is a quantitative proof."
msgstr "Udm del valor del resultat, si es tracta d'una prova quantitativa" msgstr "UdM del valor del resultat, si es tracta d'una prova quantitativa"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,test_uom_id:0 #: field:qc.test.line,test_uom_id:0
@ -359,9 +411,11 @@ msgid "Uom Test"
msgstr "UdM test" msgstr "UdM test"
#. module: nan_quality_control #. module: nan_quality_control
#: selection:qc.test,state:0 #: field:qc.posible.value,active:0 field:qc.proof,active:0
msgid "Waiting Supervisor Approval" #: field:qc.proof.method,active:0 field:qc.test.template,active:0
msgstr "Esperant l'aprovació del supervisor" #: field:qc.test.template.category,active:0
msgid "Active"
msgstr "Actiu"
#. module: nan_quality_control #. module: nan_quality_control
#: selection:qc.proof,type:0 selection:qc.test.line,proof_type:0 #: selection:qc.proof,type:0 selection:qc.test.line,proof_type:0
@ -406,6 +460,11 @@ msgid "UoM for minimum and maximum values if it is a quantitative proof."
msgstr "" msgstr ""
"UdM pels valors mínim i màxim valids, si es tracta d'una prova quantitativa." "UdM pels valors mínim i màxim valids, si es tracta d'una prova quantitativa."
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_invoice
msgid "Invoice"
msgstr "Factura"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test:0 view:qc.test.set.template.wizard:0 #: view:qc.test:0 view:qc.test.set.template.wizard:0
msgid "Cancel" msgid "Cancel"
@ -436,6 +495,11 @@ msgstr "Valors del test"
msgid "qc.posible.value" msgid "qc.posible.value"
msgstr "" msgstr ""
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_product
msgid "Product"
msgstr "Producte"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.proof.synonym:0 #: view:qc.proof.synonym:0
msgid "Test Synonym" msgid "Test Synonym"
@ -458,7 +522,12 @@ msgid "This field will be active if all tests have succeeded."
msgstr "Aquest camp s'activa si totes les proves han tingut èxit." msgstr "Aquest camp s'activa si totes les proves han tingut èxit."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,notes:0 view:qc.test.template.line:0 #: model:qc.test.link,name:nan_quality_control.test_link_picking
msgid "Picking"
msgstr "Albarà"
#. module: nan_quality_control
#: view:qc.test:0 field:qc.test.line,notes:0 view:qc.test.template.line:0
#: field:qc.test.template.line,notes:0 #: field:qc.test.template.line,notes:0
msgid "Notes" msgid "Notes"
msgstr "Notes" msgstr "Notes"
@ -477,8 +546,8 @@ msgstr "Línia del test"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.posible.value,name:0 field:qc.proof,name:0 #: field:qc.posible.value,name:0 field:qc.proof,name:0
#: field:qc.proof.method,name:0 field:qc.proof.synonym,name:0 #: field:qc.proof.method,name:0 field:qc.proof.synonym,name:0
#: field:qc.test.line,name:0 field:qc.test.template,name:0 #: field:qc.test.line,name:0 field:qc.test.link,name:0
#: field:qc.test.template.line,name:0 #: field:qc.test.template,name:0 field:qc.test.template.line,name:0
msgid "Name" msgid "Name"
msgstr "Nom" msgstr "Nom"
@ -523,4 +592,5 @@ msgstr "Accepta"
msgid "The active field allows you to hide the category without removing it." msgid "The active field allows you to hide the category without removing it."
msgstr "El camp actiu permet oculta una categoria sense eliminar-la." msgstr "El camp actiu permet oculta una categoria sense eliminar-la."
#~ msgid "Calculate"
#~ msgstr "Calcula"

View File

@ -2,21 +2,21 @@
# This file contains the translation of the following modules: # This file contains the translation of the following modules:
# * nan_quality_control # * nan_quality_control
# #
# Jordi Pasquina <jordi@nan-tic.com>, 2010. # Jordi Pasquina <jordi@nan-tic.com>, 2010, 2012.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OpenERP Server 5.0.12\n" "Project-Id-Version: OpenERP Server 5.0.12\n"
"Report-Msgid-Bugs-To: support@openerp.com\n" "Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2011-08-10 14:43+0000\n" "POT-Creation-Date: 2012-02-24 12:13+0000\n"
"PO-Revision-Date: 2010-08-31 10:29+0200\n" "PO-Revision-Date: 2012-02-24 13:24+0100\n"
"Last-Translator: Jordi Pasquina <jordi@nan-tic.com>\n" "Last-Translator: \n"
"Language-Team: Spanish <kde-i18n-doc@kde.org>\n" "Language-Team: Spanish <>\n"
"Language: es\n" "Language: es\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
"X-Generator: Lokalize 1.0\n" "X-Generator: Lokalize 1.2\n"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test.line:0 #: view:qc.test.line:0
@ -47,9 +47,10 @@ msgid "qc.test.set.template.wizard"
msgstr "qc.test.conjunto.plantilla.assistente" msgstr "qc.test.conjunto.plantilla.assistente"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,uom_id:0 field:qc.test.template.line,uom_id:0 #: field:qc.test,uom_id:0 field:qc.test.line,uom_id:0
#: field:qc.test.template,uom_id:0 field:qc.test.template.line,uom_id:0
msgid "Uom" msgid "Uom"
msgstr "Uom" msgstr "UdM"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.module.module,description:nan_quality_control.module_meta_information #: model:ir.module.module,description:nan_quality_control.module_meta_information
@ -71,13 +72,28 @@ msgstr "qc.test.plantilla.linea"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template,fill_correct_values:0 #: field:qc.test.template,fill_correct_values:0
msgid "Fill With Correct Values" msgid "Fill With Correct Values"
msgstr "REllenar con los valores correctos" msgstr "Rellenar con los valores correctos"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_proof_synonym #: model:ir.model,name:nan_quality_control.model_qc_proof_synonym
msgid "qc.proof.synonym" msgid "qc.proof.synonym"
msgstr "qc.prueba.sinonimo" msgstr "qc.prueba.sinonimo"
#. module: nan_quality_control
#: field:qc.posible.value,company_id:0 field:qc.proof,company_id:0
#: field:qc.proof.method,company_id:0 field:qc.proof.synonym,company_id:0
#: field:qc.test,company_id:0 field:qc.test.line,company_id:0
#: field:qc.test.template,company_id:0
#: field:qc.test.template.category,company_id:0
#: field:qc.test.template.line,company_id:0
msgid "Company"
msgstr "Compañía"
#. module: nan_quality_control
#: field:qc.test.link,object:0
msgid "Object"
msgstr "Modelo"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template,object_id:0 #: field:qc.test.template,object_id:0
msgid "Reference Object" msgid "Reference Object"
@ -93,6 +109,11 @@ msgstr "Líneas de la plantilla del test"
msgid "Success?" msgid "Success?"
msgstr "Éxito?" msgstr "Éxito?"
#. module: nan_quality_control
#: model:ir.ui.menu,name:nan_quality_control.qc_test_link_menu
msgid "Test Links"
msgstr "Referencias en tests"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template #: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template
#: model:ir.model,name:nan_quality_control.model_qc_test_template #: model:ir.model,name:nan_quality_control.model_qc_test_template
@ -107,6 +128,21 @@ msgstr "Plantilla del test"
msgid "Qualitative" msgid "Qualitative"
msgstr "Cualitativo" msgstr "Cualitativo"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_sale
msgid "Sale Order"
msgstr "Orden de venta"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_prodlot
msgid "Production Lot"
msgstr "Lote de producción"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_purchase
msgid "Purchase Order"
msgstr "Orden de compra"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,proof_type:0 #: field:qc.test.line,proof_type:0
msgid "Proof Type" msgid "Proof Type"
@ -141,7 +177,6 @@ msgstr "Seleccionar plantilla"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test.line:0 #: view:qc.test.line:0
#, fuzzy
msgid "notes" msgid "notes"
msgstr "Notas" msgstr "Notas"
@ -176,11 +211,9 @@ msgid "Maximum valid value if it is a quantitative proof."
msgstr "Máximo valor válido si se trata de una prueba cuantitativa." msgstr "Máximo valor válido si se trata de una prueba cuantitativa."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.posible.value,active:0 field:qc.proof,active:0 #: view:qc.test.link:0
#: field:qc.proof.method,active:0 field:qc.test.template,active:0 msgid "Test Reference Type"
#: field:qc.test.template.category,active:0 msgstr "Tipo de referència en tests"
msgid "Active"
msgstr "Activo"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.proof.method:0 #: view:qc.proof.method:0
@ -208,6 +241,11 @@ msgstr "Categorías inferiores"
msgid "Value of the result if it is a qualitative proof." msgid "Value of the result if it is a qualitative proof."
msgstr "Valor del resultado si se trata de una prueba cualitativa." msgstr "Valor del resultado si se trata de una prueba cualitativa."
#. module: nan_quality_control
#: field:qc.test.link,priority:0
msgid "Priority"
msgstr "Prioridad"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,state:0 #: field:qc.test,state:0
msgid "State" msgid "State"
@ -227,7 +265,7 @@ msgstr "Posible valor de la prueba"
#: view:qc.test:0 field:qc.test,formula:0 view:qc.test.template:0 #: view:qc.test:0 field:qc.test,formula:0 view:qc.test.template:0
#: field:qc.test.template,formula:0 #: field:qc.test.template,formula:0
msgid "Formula" msgid "Formula"
msgstr "Formula" msgstr "Fórmula"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test.line:0 #: view:qc.test.line:0
@ -239,6 +277,11 @@ msgstr "Resultado del test"
msgid "Configuration" msgid "Configuration"
msgstr "Configuración" msgstr "Configuración"
#. module: nan_quality_control
#: selection:qc.test,state:0
msgid "Waiting Supervisor Approval"
msgstr "Esperando la aprobación del supervisor"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym #: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym
msgid "Synonym" msgid "Synonym"
@ -254,11 +297,22 @@ msgstr "Categoría padre"
msgid "qc.test.line" msgid "qc.test.line"
msgstr "qc.test.linea" msgstr "qc.test.linea"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_partner
msgid "Partner"
msgstr "Empresa"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template.category,complete_name:0 #: field:qc.test.template.category,complete_name:0
msgid "Full Name" msgid "Full Name"
msgstr "Nombre completo" msgstr "Nombre completo"
#. module: nan_quality_control
#: code:addons/nan_quality_control/quality_control.py:398
#, python-format
msgid "Error:"
msgstr "Error:"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,actual_value_ql:0 #: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value" msgid "Ql.Value"
@ -280,18 +334,13 @@ msgstr "Valores posibles"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template,category_id:0 #: field:qc.test.template,category_id:0
msgid "Category" msgid "Category"
msgstr "Categoria" msgstr "Categoría"
#. module: nan_quality_control #. module: nan_quality_control
#: model:qc.test.template.category,name:nan_quality_control.qc_test_template_category_referenced #: model:qc.test.template.category,name:nan_quality_control.qc_test_template_category_referenced
msgid "referenced" msgid "referenced"
msgstr "referencia" msgstr "referencia"
#. module: nan_quality_control
#: view:qc.test:0
msgid "Calculate"
msgstr "Calculate"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information #: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information
#: model:ir.ui.menu,name:nan_quality_control.qc_menu #: model:ir.ui.menu,name:nan_quality_control.qc_menu
@ -303,6 +352,13 @@ msgstr "Control de calidad"
msgid "Category Name" msgid "Category Name"
msgstr "Nombre de la Categoría" msgstr "Nombre de la Categoría"
#. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.qc_test_link_act
#: model:ir.model,name:nan_quality_control.model_qc_test_link
#: view:qc.test.link:0
msgid "Test Reference Types"
msgstr "Tipos de referencias en tests"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_proof_method #: model:ir.model,name:nan_quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu #: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu
@ -340,11 +396,6 @@ msgstr "Fecha"
msgid "Test Method" msgid "Test Method"
msgstr "Método del test" msgstr "Método del test"
#. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_test_template_trigger
msgid "qc.test.template.trigger"
msgstr "qc.test.plantilla.disparador"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,success:0 #: field:qc.test,success:0
msgid "Success" msgid "Success"
@ -353,17 +404,19 @@ msgstr "Éxito"
#. module: nan_quality_control #. module: nan_quality_control
#: help:qc.test.line,test_uom_id:0 #: help:qc.test.line,test_uom_id:0
msgid "UoM of the value of the result if it is a quantitative proof." msgid "UoM of the value of the result if it is a quantitative proof."
msgstr "UoM del valor del resultado, si se trata de una prueba cuantitativa." msgstr "UdM del valor del resultado, si se trata de una prueba cuantitativa."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,test_uom_id:0 #: field:qc.test.line,test_uom_id:0
msgid "Uom Test" msgid "Uom Test"
msgstr "Uom test" msgstr "UdM test"
#. module: nan_quality_control #. module: nan_quality_control
#: selection:qc.test,state:0 #: field:qc.posible.value,active:0 field:qc.proof,active:0
msgid "Waiting Supervisor Approval" #: field:qc.proof.method,active:0 field:qc.test.template,active:0
msgstr "Esperando la aprobación del supervisor" #: field:qc.test.template.category,active:0
msgid "Active"
msgstr "Activo"
#. module: nan_quality_control #. module: nan_quality_control
#: selection:qc.proof,type:0 selection:qc.test.line,proof_type:0 #: selection:qc.proof,type:0 selection:qc.test.line,proof_type:0
@ -395,7 +448,7 @@ msgstr "Nota interna"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,name:0 #: field:qc.test,name:0
msgid "Number" msgid "Number"
msgstr "Number" msgstr "Número"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.proof,synonym_ids:0 field:qc.proof,synonyms:0 #: field:qc.proof,synonym_ids:0 field:qc.proof,synonyms:0
@ -406,9 +459,14 @@ msgstr "Sinónimos"
#: help:qc.test.line,uom_id:0 #: help:qc.test.line,uom_id:0
msgid "UoM for minimum and maximum values if it is a quantitative proof." msgid "UoM for minimum and maximum values if it is a quantitative proof."
msgstr "" msgstr ""
"UoM para el valor Máximo y Mínimo válido, si se trata de una prueba " "UdM para el valor Máximo y Mínimo válido, si se trata de una prueba "
"cuantitativa." "cuantitativa."
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_invoice
msgid "Invoice"
msgstr "Factura"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test:0 view:qc.test.set.template.wizard:0 #: view:qc.test:0 view:qc.test.set.template.wizard:0
msgid "Cancel" msgid "Cancel"
@ -426,9 +484,8 @@ msgstr "Mínimo"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,formula_result:0 #: field:qc.test,formula_result:0
#, fuzzy
msgid "Formula Value" msgid "Formula Value"
msgstr "Valor posible" msgstr "Valor fórmula"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test.line:0 #: view:qc.test.line:0
@ -440,6 +497,11 @@ msgstr "Valores del Test"
msgid "qc.posible.value" msgid "qc.posible.value"
msgstr "qc.posible.valor" msgstr "qc.posible.valor"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_product
msgid "Product"
msgstr "Producto"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.proof.synonym:0 #: view:qc.proof.synonym:0
msgid "Test Synonym" msgid "Test Synonym"
@ -462,7 +524,12 @@ msgid "This field will be active if all tests have succeeded."
msgstr "Este campo se activa si todas las pruebas han tenido éxito." msgstr "Este campo se activa si todas las pruebas han tenido éxito."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,notes:0 view:qc.test.template.line:0 #: model:qc.test.link,name:nan_quality_control.test_link_picking
msgid "Picking"
msgstr "Albarán"
#. module: nan_quality_control
#: view:qc.test:0 field:qc.test.line,notes:0 view:qc.test.template.line:0
#: field:qc.test.template.line,notes:0 #: field:qc.test.template.line,notes:0
msgid "Notes" msgid "Notes"
msgstr "Notas" msgstr "Notas"
@ -481,8 +548,8 @@ msgstr "Línea del test"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.posible.value,name:0 field:qc.proof,name:0 #: field:qc.posible.value,name:0 field:qc.proof,name:0
#: field:qc.proof.method,name:0 field:qc.proof.synonym,name:0 #: field:qc.proof.method,name:0 field:qc.proof.synonym,name:0
#: field:qc.test.line,name:0 field:qc.test.template,name:0 #: field:qc.test.line,name:0 field:qc.test.link,name:0
#: field:qc.test.template.line,name:0 #: field:qc.test.template,name:0 field:qc.test.template.line,name:0
msgid "Name" msgid "Name"
msgstr "Nombre" msgstr "Nombre"
@ -527,6 +594,12 @@ msgstr "Aceptar"
msgid "The active field allows you to hide the category without removing it." msgid "The active field allows you to hide the category without removing it."
msgstr "El campo activo le permite ocultar la categoría sin eliminarlo." msgstr "El campo activo le permite ocultar la categoría sin eliminarlo."
#~ msgid "Calculate"
#~ msgstr "Calculate"
#~ msgid "qc.test.template.trigger"
#~ msgstr "qc.test.plantilla.disparador"
#~ msgid "Trigger" #~ msgid "Trigger"
#~ msgstr "Disparador" #~ msgstr "Disparador"

View File

@ -2,36 +2,33 @@
# This file contains the translation of the following modules: # This file contains the translation of the following modules:
# * nan_quality_control # * nan_quality_control
# #
# , 2011.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OpenERP Server 6.0.2\n" "Project-Id-Version: OpenERP Server 6.0.2\n"
"Report-Msgid-Bugs-To: support@openerp.com\n" "Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2011-08-10 14:43+0000\n" "POT-Creation-Date: 2012-02-24 12:13+0000\n"
"PO-Revision-Date: 2011-08-10 16:47+0200\n" "PO-Revision-Date: 2012-02-24 12:13+0000\n"
"Last-Translator: \n" "Last-Translator: <>\n"
"Language-Team: Spanish <kde-i18n-doc@kde.org>\n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
"Language: es\n"
"X-Generator: Lokalize 1.2\n"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test.line:0 #: view:qc.test.line:0
msgid "Check Values" msgid "Check Values"
msgstr "Valores de Check" msgstr "Check Values"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.posible.value:0 #: view:qc.posible.value:0
msgid "Posible Value" msgid "Posible Value"
msgstr "Valor Posible" msgstr "Posible Value"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.set.template.wizard,test_template_id:0 #: field:qc.test.set.template.wizard,test_template_id:0
msgid "Template" msgid "Template"
msgstr "Plantilla" msgstr "Template"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_qc_new_test #: model:ir.actions.act_window,name:nan_quality_control.action_qc_new_test
@ -48,23 +45,17 @@ msgid "qc.test.set.template.wizard"
msgstr "qc.test.set.template.wizard" msgstr "qc.test.set.template.wizard"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,uom_id:0
#: field:qc.test.line,uom_id:0 #: field:qc.test.line,uom_id:0
#: field:qc.test.template,uom_id:0
#: field:qc.test.template.line,uom_id:0 #: field:qc.test.template.line,uom_id:0
msgid "Uom" msgid "Uom"
msgstr "Uom" msgstr "Uom"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.module.module,description:nan_quality_control.module_meta_information #: model:ir.module.module,description:nan_quality_control.module_meta_information
msgid "" msgid "This module provides a generic infrastructure for quality tests. The idea is that it can be later be reused for doing quality tests in production lots but also in any other areas a company may desire."
"This module provides a generic infrastructure for quality tests. The idea is " msgstr "This module provides a generic infrastructure for quality tests. The idea is that it can be later be reused for doing quality tests in production lots but also in any other areas a company may desire."
"that it can be later be reused for doing quality tests in production lots but "
"also in any other areas a company may desire."
msgstr ""
"This module provides a generic infrastructure for quality tests. The idea is "
"that it can be later be reused for doing quality tests in production lots but "
"also in any other areas a company may desire. "
"El módulo provee una infraestructura genérica para test de calidad. La idea "
"es poder extender los tes a los diferentes modelos que la compañia desee."
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_test_template_line #: model:ir.model,name:nan_quality_control.model_qc_test_template_line
@ -81,6 +72,24 @@ msgstr "Fill With Correct Values"
msgid "qc.proof.synonym" msgid "qc.proof.synonym"
msgstr "qc.proof.synonym" msgstr "qc.proof.synonym"
#. module: nan_quality_control
#: field:qc.posible.value,company_id:0
#: field:qc.proof,company_id:0
#: field:qc.proof.method,company_id:0
#: field:qc.proof.synonym,company_id:0
#: field:qc.test,company_id:0
#: field:qc.test.line,company_id:0
#: field:qc.test.template,company_id:0
#: field:qc.test.template.category,company_id:0
#: field:qc.test.template.line,company_id:0
msgid "Company"
msgstr "Company"
#. module: nan_quality_control
#: field:qc.test.link,object:0
msgid "Object"
msgstr "Object"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template,object_id:0 #: field:qc.test.template,object_id:0
msgid "Reference Object" msgid "Reference Object"
@ -96,6 +105,11 @@ msgstr "Test Template Lines"
msgid "Success?" msgid "Success?"
msgstr "Success?" msgstr "Success?"
#. module: nan_quality_control
#: model:ir.ui.menu,name:nan_quality_control.qc_test_link_menu
msgid "Test Links"
msgstr "Test Links"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template #: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template
#: model:ir.model,name:nan_quality_control.model_qc_test_template #: model:ir.model,name:nan_quality_control.model_qc_test_template
@ -112,6 +126,21 @@ msgstr "Test Template"
msgid "Qualitative" msgid "Qualitative"
msgstr "Qualitative" msgstr "Qualitative"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_sale
msgid "Sale Order"
msgstr "Sale Order"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_prodlot
msgid "Production Lot"
msgstr "Production Lot"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_purchase
msgid "Purchase Order"
msgstr "Purchase Order"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,proof_type:0 #: field:qc.test.line,proof_type:0
msgid "Proof Type" msgid "Proof Type"
@ -183,13 +212,9 @@ msgid "Maximum valid value if it is a quantitative proof."
msgstr "Maximum valid value if it is a quantitative proof." msgstr "Maximum valid value if it is a quantitative proof."
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.posible.value,active:0 #: view:qc.test.link:0
#: field:qc.proof,active:0 msgid "Test Reference Type"
#: field:qc.proof.method,active:0 msgstr "Test Reference Type"
#: field:qc.test.template,active:0
#: field:qc.test.template.category,active:0
msgid "Active"
msgstr "Active"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.proof.method:0 #: view:qc.proof.method:0
@ -217,6 +242,11 @@ msgstr "Child Categories"
msgid "Value of the result if it is a qualitative proof." msgid "Value of the result if it is a qualitative proof."
msgstr "Value of the result if it is a qualitative proof." msgstr "Value of the result if it is a qualitative proof."
#. module: nan_quality_control
#: field:qc.test.link,priority:0
msgid "Priority"
msgstr "Priority"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,state:0 #: field:qc.test,state:0
msgid "State" msgid "State"
@ -250,6 +280,11 @@ msgstr "Test Result"
msgid "Configuration" msgid "Configuration"
msgstr "Configuration" msgstr "Configuration"
#. module: nan_quality_control
#: selection:qc.test,state:0
msgid "Waiting Supervisor Approval"
msgstr "Waiting Supervisor Approval"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym #: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym
msgid "Synonym" msgid "Synonym"
@ -265,11 +300,22 @@ msgstr "Parent Category"
msgid "qc.test.line" msgid "qc.test.line"
msgstr "qc.test.line" msgstr "qc.test.line"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_partner
msgid "Partner"
msgstr "Partner"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.template.category,complete_name:0 #: field:qc.test.template.category,complete_name:0
msgid "Full Name" msgid "Full Name"
msgstr "Full Name" msgstr "Full Name"
#. module: nan_quality_control
#: code:addons/nan_quality_control/quality_control.py:398
#, python-format
msgid "Error:"
msgstr "Error:"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test.line,actual_value_ql:0 #: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value" msgid "Ql.Value"
@ -299,11 +345,6 @@ msgstr "Category"
msgid "referenced" msgid "referenced"
msgstr "referenced" msgstr "referenced"
#. module: nan_quality_control
#: view:qc.test:0
msgid "Calculate"
msgstr "Calculate"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information #: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information
#: model:ir.ui.menu,name:nan_quality_control.qc_menu #: model:ir.ui.menu,name:nan_quality_control.qc_menu
@ -315,6 +356,13 @@ msgstr "Quality Control"
msgid "Category Name" msgid "Category Name"
msgstr "Category Name" msgstr "Category Name"
#. module: nan_quality_control
#: model:ir.actions.act_window,name:nan_quality_control.qc_test_link_act
#: model:ir.model,name:nan_quality_control.model_qc_test_link
#: view:qc.test.link:0
msgid "Test Reference Types"
msgstr "Test Reference Types"
#. module: nan_quality_control #. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_proof_method #: model:ir.model,name:nan_quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu #: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu
@ -353,11 +401,6 @@ msgstr "Date"
msgid "Test Method" msgid "Test Method"
msgstr "Test Method" msgstr "Test Method"
#. module: nan_quality_control
#: model:ir.model,name:nan_quality_control.model_qc_test_template_trigger
msgid "qc.test.template.trigger"
msgstr "qc.test.template.trigger"
#. module: nan_quality_control #. module: nan_quality_control
#: field:qc.test,success:0 #: field:qc.test,success:0
msgid "Success" msgid "Success"
@ -374,9 +417,13 @@ msgid "Uom Test"
msgstr "Uom Test" msgstr "Uom Test"
#. module: nan_quality_control #. module: nan_quality_control
#: selection:qc.test,state:0 #: field:qc.posible.value,active:0
msgid "Waiting Supervisor Approval" #: field:qc.proof,active:0
msgstr "Waiting Supervisor Approval" #: field:qc.proof.method,active:0
#: field:qc.test.template,active:0
#: field:qc.test.template.category,active:0
msgid "Active"
msgstr "Active"
#. module: nan_quality_control #. module: nan_quality_control
#: selection:qc.proof,type:0 #: selection:qc.proof,type:0
@ -424,6 +471,11 @@ msgstr "Synonyms"
msgid "UoM for minimum and maximum values if it is a quantitative proof." msgid "UoM for minimum and maximum values if it is a quantitative proof."
msgstr "UoM for minimum and maximum values if it is a quantitative proof." msgstr "UoM for minimum and maximum values if it is a quantitative proof."
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_invoice
msgid "Invoice"
msgstr "Invoice"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.test:0 #: view:qc.test:0
#: view:qc.test.set.template.wizard:0 #: view:qc.test.set.template.wizard:0
@ -456,6 +508,11 @@ msgstr "Test Values"
msgid "qc.posible.value" msgid "qc.posible.value"
msgstr "qc.posible.value" msgstr "qc.posible.value"
#. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_product
msgid "Product"
msgstr "Product"
#. module: nan_quality_control #. module: nan_quality_control
#: view:qc.proof.synonym:0 #: view:qc.proof.synonym:0
msgid "Test Synonym" msgid "Test Synonym"
@ -479,6 +536,12 @@ msgid "This field will be active if all tests have succeeded."
msgstr "This field will be active if all tests have succeeded." msgstr "This field will be active if all tests have succeeded."
#. module: nan_quality_control #. module: nan_quality_control
#: model:qc.test.link,name:nan_quality_control.test_link_picking
msgid "Picking"
msgstr "Picking"
#. module: nan_quality_control
#: view:qc.test:0
#: field:qc.test.line,notes:0 #: field:qc.test.line,notes:0
#: view:qc.test.template.line:0 #: view:qc.test.template.line:0
#: field:qc.test.template.line,notes:0 #: field:qc.test.template.line,notes:0
@ -502,6 +565,7 @@ msgstr "Test Line"
#: field:qc.proof.method,name:0 #: field:qc.proof.method,name:0
#: field:qc.proof.synonym,name:0 #: field:qc.proof.synonym,name:0
#: field:qc.test.line,name:0 #: field:qc.test.line,name:0
#: field:qc.test.link,name:0
#: field:qc.test.template,name:0 #: field:qc.test.template,name:0
#: field:qc.test.template.line,name:0 #: field:qc.test.template.line,name:0
msgid "Name" msgid "Name"
@ -549,4 +613,3 @@ msgstr "Accept"
msgid "The active field allows you to hide the category without removing it." msgid "The active field allows you to hide the category without removing it."
msgstr "The active field allows you to hide the category without removing it." msgstr "The active field allows you to hide the category without removing it."

View File

@ -170,6 +170,37 @@ class qc_proof_synonym(osv.osv):
qc_proof_synonym() qc_proof_synonym()
def _links_get(self, cr, uid, context={}):
"""
Returns a list of tuples of 'model names' and 'Model title' to use as
typs in reference fields.
"""
test_link_proxy = self.pool.get('qc.test.link')
ids = test_link_proxy.search(cr, uid, [])
res = test_link_proxy.read(cr, uid, ids, ['object', 'name'], context)
return [(r['object'], r['name']) for r in res]
class qc_test_link(osv.osv):
"""
This model is used to manage available models to link in the Reference
fields of qc.test and qc.test.template
"""
_name = 'qc.test.link'
_description = "Test Reference Types"
_order = 'priority'
_columns = {
'name': fields.char('Name', size=64, required=True, translate=True),
'object': fields.char('Object', size=64, required=True),
'priority': fields.integer('Priority'),
}
_defaults = {
'priority': 5,
}
qc_test_link()
class qc_test_template_category( osv.osv): class qc_test_template_category( osv.osv):
""" """
This model is used to categorize proof templates. This model is used to categorize proof templates.
@ -232,12 +263,6 @@ class qc_test_template(osv.osv):
_name = 'qc.test.template' _name = 'qc.test.template'
_description='Test Template' _description='Test Template'
def _links_get(self, cr, uid, context=None):
obj = self.pool.get('res.request.link')
ids = obj.search(cr, uid, [], context=context)
res = obj.read(cr, uid, ids, ['object', 'name'], context)
return [(r['object'], r['name']) for r in res]
def _default_name(self, cr, uid, context=None): def _default_name(self, cr, uid, context=None):
if context and context.get('reference_model', False): if context and context.get('reference_model', False):
id = context.get('reference_id') id = context.get('reference_id')
@ -344,12 +369,6 @@ class qc_test(osv.osv):
result[test.id] = success result[test.id] = success
return result return result
def _links_get(self, cr, uid, context=None):
obj = self.pool.get('res.request.link')
ids = obj.search(cr, uid, [], context=context)
res = obj.read(cr, uid, ids, ['object', 'name'], context)
return [(r['object'], r['name']) for r in res]
def _default_object_id(self, cr, uid, context=None): def _default_object_id(self, cr, uid, context=None):
if context and context.get('reference_model', False): if context and context.get('reference_model', False):
return '%s,%d' % ( return '%s,%d' % (

View File

@ -1,12 +1,55 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data noupdate="True"> <data noupdate="1">
<!-- res.partner.title --> <!--
<record id="qc_test_template_category_generic" model="qc.test.template.category"> qc.test.template.category
<field name="name">Generic</field> -->
</record> <record id="qc_test_template_category_generic" model="qc.test.template.category">
<record id="qc_test_template_category_referenced" model="qc.test.template.category"> <field name="name">Generic</field>
<field name="name">referenced</field> </record>
</record>
</data> <record id="qc_test_template_category_referenced" model="qc.test.template.category">
<field name="name">referenced</field>
</record>
</data>
<data noupdate="1">
<!--
qc.test.link
-->
<record id="test_link_partner" model="qc.test.link">
<field name="name">Partner</field>
<field name="object">res.partner</field>
</record>
<record id="test_link_product" model="qc.test.link">
<field name="name">Product</field>
<field name="object">product.product</field>
</record>
<record id="test_link_prodlot" model="qc.test.link">
<field name="name">Production Lot</field>
<field name="object">stock.production.lot</field>
</record>
<record id="test_link_picking" model="qc.test.link">
<field name="name">Picking</field>
<field name="object">stock.picking</field>
</record>
<record id="test_link_sale" model="qc.test.link">
<field name="name">Sale Order</field>
<field name="object">sale.order</field>
</record>
<record id="test_link_purchase" model="qc.test.link">
<field name="name">Purchase Order</field>
<field name="object">purchase.order</field>
</record>
<record id="test_link_invoice" model="qc.test.link">
<field name="name">Invoice</field>
<field name="object">account.invoice</field>
</record>
</data>
</openerp> </openerp>

View File

@ -150,6 +150,55 @@
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
</record> </record>
<!-- qc.test.link -->
<record id="qc_test_link_form" model="ir.ui.view">
<field name="name">qc.test.link.form</field>
<field name="model">qc.test.link</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Test Reference Type">
<field name="name"/>
<field name="object"/>
<field name="priority"/>
</form>
</field>
</record>
<record id="qc_test_link_tree" model="ir.ui.view">
<field name="name">qc.test.link.form</field>
<field name="model">qc.test.link</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Test Reference Types">
<field name="name"/>
<field name="object"/>
</tree>
</field>
</record>
<record id="qc_test_link_search" model="ir.ui.view">
<field name="name">qc.test.link.search</field>
<field name="model">qc.test.link</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Test Reference Types">
<field name="name"/>
<field name="object"/>
</search>
</field>
</record>
<record id="qc_test_link_act" model="ir.actions.act_window">
<field name="name">Test Reference Types</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">qc.test.link</field>
<field name="view_type">form</field>
<field name="view_id" eval="False"/>
<field name="search_view_id" ref="qc_test_link_search"/>
</record>
<!-- qc.test.template --> <!-- qc.test.template -->
<record model="ir.ui.view" id="qc_test_template_form_view"> <record model="ir.ui.view" id="qc_test_template_form_view">
<field name="name">qc.test.template.form</field> <field name="name">qc.test.template.form</field>
@ -427,12 +476,12 @@
<menuitem name="Quality Control" id="qc_menu" /> <menuitem name="Quality Control" id="qc_menu" />
<menuitem parent="qc_menu" name="Configuration" id="qc_menu_config" /> <menuitem parent="qc_menu" name="Configuration" id="qc_menu_config" />
<menuitem <menuitem
name="Method" name="Method"
parent="qc_menu_config" parent="qc_menu_config"
id="qc_proof_method_menu" id="qc_proof_method_menu"
action="action_qc_proof_method" action="action_qc_proof_method"
/> />
<menuitem <menuitem
name="Posible Values" name="Posible Values"
@ -475,6 +524,14 @@
id="qc_test_lines_menu" id="qc_test_lines_menu"
action="action_qc_test_line" action="action_qc_test_line"
/> />
<menuitem
name="Test Links"
parent="qc_menu_config"
id="qc_test_link_menu"
action="qc_test_link_act"
groups="base.group_system"
/>
</data> </data>
</openerp> </openerp>