From b51f0ca547a5e29c6705dd7b10548aaf0201dbec Mon Sep 17 00:00:00 2001 From: Guillem Barba Date: Fri, 24 Feb 2012 13:26:03 +0100 Subject: [PATCH] [IMP] nan_quality_control: added model qc.test.link to configure available reference types in Test/Template reference field. Improved translations --- __openerp__.py | 1 + i18n/ca.po | 134 +++++++++++++++++++++++-------- i18n/es.po | 151 ++++++++++++++++++++++++++--------- i18n/nan_quality_control.pot | 145 +++++++++++++++++++++++---------- quality_control.py | 43 +++++++--- quality_control_data.xml | 61 +++++++++++--- quality_control_view.xml | 69 ++++++++++++++-- 7 files changed, 465 insertions(+), 139 deletions(-) diff --git a/__openerp__.py b/__openerp__.py index e53f06d..d1d5ea7 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -47,6 +47,7 @@ Developed for Trod y Avia, S.L.""", 'security/ir.model.access.csv', 'quality_control_view.xml', 'qc_precision.xml', + 'quality_control_data.xml', ], "active": False, "installable": True, diff --git a/i18n/ca.po b/i18n/ca.po index fcacd11..71b8c66 100644 --- a/i18n/ca.po +++ b/i18n/ca.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.12\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2011-08-10 14:43+0000\n" -"PO-Revision-Date: 2012-02-14 15:28+0100\n" +"POT-Creation-Date: 2012-02-24 12:13+0000\n" +"PO-Revision-Date: 2012-02-24 13:21+0100\n" "Last-Translator: \n" "Language-Team: Spanish <>\n" "Language: \n" @@ -47,7 +47,8 @@ msgid "qc.test.set.template.wizard" msgstr "" #. 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" msgstr "UdM" @@ -58,8 +59,8 @@ msgid "" "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 "" -"Aquest mòdul proveeix una infraestructura genèrica per a tests de calitat. La " -"idea és poder extendre els tests als diferents models que la companyia " +"Aquest mòdul proveeix una infraestructura genèrica per a tests de calitat. " +"La idea és poder extendre els tests als diferents models que la companyia " "desitgi." #. module: nan_quality_control @@ -77,6 +78,21 @@ msgstr "Omplir amb els valors correctes" msgid "qc.proof.synonym" 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 #: field:qc.test.template,object_id:0 msgid "Reference Object" @@ -92,6 +108,11 @@ msgstr "Línies de plantilla" msgid "Success?" 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 #: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template #: model:ir.model,name:nan_quality_control.model_qc_test_template @@ -106,6 +127,21 @@ msgstr "Plantilla" msgid "Qualitative" 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 #: field:qc.test.line,proof_type:0 msgid "Proof Type" @@ -171,14 +207,12 @@ msgstr "Sinònim de la prova" #. module: nan_quality_control #: help:qc.test.line,max_value:0 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 -#: field:qc.posible.value,active:0 field:qc.proof,active:0 -#: field:qc.proof.method,active:0 field:qc.test.template,active:0 -#: field:qc.test.template.category,active:0 -msgid "Active" -msgstr "Actiu" +#: view:qc.test.link:0 +msgid "Test Reference Type" +msgstr "Tipus referència a tests" #. module: nan_quality_control #: view:qc.proof.method:0 @@ -194,18 +228,23 @@ msgstr "Confirmar" #: selection:qc.test.template,type:0 #: model:qc.test.template.category,name:nan_quality_control.qc_test_template_category_generic msgid "Generic" -msgstr "Genèrico" +msgstr "Genèric" #. module: nan_quality_control #: field:qc.test.template.category,child_ids:0 msgid "Child Categories" -msgstr "Categories filles." +msgstr "Categories filles" #. module: nan_quality_control #: help:qc.test.line,actual_value_ql:0 msgid "Value of the result if it is a qualitative proof." 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 #: field:qc.test,state:0 msgid "State" @@ -237,6 +276,11 @@ msgstr "Resultat del test" msgid "Configuration" 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 #: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym msgid "Synonym" @@ -252,11 +296,22 @@ msgstr "Categoria pare" msgid "qc.test.line" msgstr "" +#. module: nan_quality_control +#: model:qc.test.link,name:nan_quality_control.test_link_partner +msgid "Partner" +msgstr "Empresa" + #. module: nan_quality_control #: field:qc.test.template.category,complete_name:0 msgid "Full Name" 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 #: field:qc.test.line,actual_value_ql:0 msgid "Ql.Value" @@ -285,11 +340,6 @@ msgstr "Categoria" msgid "referenced" msgstr "referenciat" -#. module: nan_quality_control -#: view:qc.test:0 -msgid "Calculate" -msgstr "Calcula" - #. module: nan_quality_control #: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information #: model:ir.ui.menu,name:nan_quality_control.qc_menu @@ -301,6 +351,13 @@ msgstr "Control de Qualitat" msgid "Category Name" 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 #: model:ir.model,name:nan_quality_control.model_qc_proof_method #: 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 #: help:qc.test.line,min_value:0 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 #: field:qc.test,date:0 @@ -338,11 +395,6 @@ msgstr "Data" msgid "Test Method" 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 #: field:qc.test,success:0 msgid "Success" @@ -351,7 +403,7 @@ msgstr "Èxit" #. module: nan_quality_control #: help:qc.test.line,test_uom_id:0 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 #: field:qc.test.line,test_uom_id:0 @@ -359,9 +411,11 @@ msgid "Uom Test" msgstr "UdM test" #. module: nan_quality_control -#: selection:qc.test,state:0 -msgid "Waiting Supervisor Approval" -msgstr "Esperant l'aprovació del supervisor" +#: field:qc.posible.value,active:0 field:qc.proof,active:0 +#: field:qc.proof.method,active:0 field:qc.test.template,active:0 +#: field:qc.test.template.category,active:0 +msgid "Active" +msgstr "Actiu" #. module: nan_quality_control #: 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 "" "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 #: view:qc.test:0 view:qc.test.set.template.wizard:0 msgid "Cancel" @@ -436,6 +495,11 @@ msgstr "Valors del test" msgid "qc.posible.value" msgstr "" +#. module: nan_quality_control +#: model:qc.test.link,name:nan_quality_control.test_link_product +msgid "Product" +msgstr "Producte" + #. module: nan_quality_control #: view:qc.proof.synonym:0 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." #. 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 msgid "Notes" msgstr "Notes" @@ -477,8 +546,8 @@ msgstr "Línia del test" #. module: nan_quality_control #: 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.test.line,name:0 field:qc.test.template,name:0 -#: field:qc.test.template.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.line,name:0 msgid "Name" msgstr "Nom" @@ -523,4 +592,5 @@ msgstr "Accepta" msgid "The active field allows you to hide the category without removing it." msgstr "El camp actiu permet oculta una categoria sense eliminar-la." - +#~ msgid "Calculate" +#~ msgstr "Calcula" diff --git a/i18n/es.po b/i18n/es.po index 230a4f3..599ba24 100644 --- a/i18n/es.po +++ b/i18n/es.po @@ -2,21 +2,21 @@ # This file contains the translation of the following modules: # * nan_quality_control # -# Jordi Pasquina , 2010. +# Jordi Pasquina , 2010, 2012. msgid "" msgstr "" "Project-Id-Version: OpenERP Server 5.0.12\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2011-08-10 14:43+0000\n" -"PO-Revision-Date: 2010-08-31 10:29+0200\n" -"Last-Translator: Jordi Pasquina \n" -"Language-Team: Spanish \n" +"POT-Creation-Date: 2012-02-24 12:13+0000\n" +"PO-Revision-Date: 2012-02-24 13:24+0100\n" +"Last-Translator: \n" +"Language-Team: Spanish <>\n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -"X-Generator: Lokalize 1.0\n" +"X-Generator: Lokalize 1.2\n" #. module: nan_quality_control #: view:qc.test.line:0 @@ -47,9 +47,10 @@ msgid "qc.test.set.template.wizard" msgstr "qc.test.conjunto.plantilla.assistente" #. 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" -msgstr "Uom" +msgstr "UdM" #. module: nan_quality_control #: model:ir.module.module,description:nan_quality_control.module_meta_information @@ -71,13 +72,28 @@ msgstr "qc.test.plantilla.linea" #. module: nan_quality_control #: field:qc.test.template,fill_correct_values:0 msgid "Fill With Correct Values" -msgstr "REllenar con los valores correctos" +msgstr "Rellenar con los valores correctos" #. module: nan_quality_control #: model:ir.model,name:nan_quality_control.model_qc_proof_synonym msgid "qc.proof.synonym" 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 #: field:qc.test.template,object_id:0 msgid "Reference Object" @@ -93,6 +109,11 @@ msgstr "Líneas de la plantilla del test" msgid "Success?" 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 #: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template #: model:ir.model,name:nan_quality_control.model_qc_test_template @@ -107,6 +128,21 @@ msgstr "Plantilla del test" msgid "Qualitative" 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 #: field:qc.test.line,proof_type:0 msgid "Proof Type" @@ -141,7 +177,6 @@ msgstr "Seleccionar plantilla" #. module: nan_quality_control #: view:qc.test.line:0 -#, fuzzy msgid "notes" 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." #. module: nan_quality_control -#: field:qc.posible.value,active:0 field:qc.proof,active:0 -#: field:qc.proof.method,active:0 field:qc.test.template,active:0 -#: field:qc.test.template.category,active:0 -msgid "Active" -msgstr "Activo" +#: view:qc.test.link:0 +msgid "Test Reference Type" +msgstr "Tipo de referència en tests" #. module: nan_quality_control #: view:qc.proof.method:0 @@ -208,6 +241,11 @@ msgstr "Categorías inferiores" msgid "Value of the result if it is a qualitative proof." 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 #: field:qc.test,state:0 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 #: field:qc.test.template,formula:0 msgid "Formula" -msgstr "Formula" +msgstr "Fórmula" #. module: nan_quality_control #: view:qc.test.line:0 @@ -239,6 +277,11 @@ msgstr "Resultado del test" msgid "Configuration" 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 #: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym msgid "Synonym" @@ -254,11 +297,22 @@ msgstr "Categoría padre" msgid "qc.test.line" 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 #: field:qc.test.template.category,complete_name:0 msgid "Full Name" 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 #: field:qc.test.line,actual_value_ql:0 msgid "Ql.Value" @@ -280,18 +334,13 @@ msgstr "Valores posibles" #. module: nan_quality_control #: field:qc.test.template,category_id:0 msgid "Category" -msgstr "Categoria" +msgstr "Categoría" #. module: nan_quality_control #: model:qc.test.template.category,name:nan_quality_control.qc_test_template_category_referenced msgid "referenced" msgstr "referencia" -#. module: nan_quality_control -#: view:qc.test:0 -msgid "Calculate" -msgstr "Calculate" - #. module: nan_quality_control #: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information #: model:ir.ui.menu,name:nan_quality_control.qc_menu @@ -303,6 +352,13 @@ msgstr "Control de calidad" msgid "Category Name" 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 #: model:ir.model,name:nan_quality_control.model_qc_proof_method #: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu @@ -340,11 +396,6 @@ msgstr "Fecha" msgid "Test Method" 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 #: field:qc.test,success:0 msgid "Success" @@ -353,17 +404,19 @@ msgstr "Éxito" #. module: nan_quality_control #: help:qc.test.line,test_uom_id:0 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 #: field:qc.test.line,test_uom_id:0 msgid "Uom Test" -msgstr "Uom test" +msgstr "UdM test" #. module: nan_quality_control -#: selection:qc.test,state:0 -msgid "Waiting Supervisor Approval" -msgstr "Esperando la aprobación del supervisor" +#: field:qc.posible.value,active:0 field:qc.proof,active:0 +#: field:qc.proof.method,active:0 field:qc.test.template,active:0 +#: field:qc.test.template.category,active:0 +msgid "Active" +msgstr "Activo" #. module: nan_quality_control #: selection:qc.proof,type:0 selection:qc.test.line,proof_type:0 @@ -395,7 +448,7 @@ msgstr "Nota interna" #. module: nan_quality_control #: field:qc.test,name:0 msgid "Number" -msgstr "Number" +msgstr "Número" #. module: nan_quality_control #: 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 msgid "UoM for minimum and maximum values if it is a quantitative proof." 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." +#. module: nan_quality_control +#: model:qc.test.link,name:nan_quality_control.test_link_invoice +msgid "Invoice" +msgstr "Factura" + #. module: nan_quality_control #: view:qc.test:0 view:qc.test.set.template.wizard:0 msgid "Cancel" @@ -426,9 +484,8 @@ msgstr "Mínimo" #. module: nan_quality_control #: field:qc.test,formula_result:0 -#, fuzzy msgid "Formula Value" -msgstr "Valor posible" +msgstr "Valor fórmula" #. module: nan_quality_control #: view:qc.test.line:0 @@ -440,6 +497,11 @@ msgstr "Valores del Test" msgid "qc.posible.value" 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 #: view:qc.proof.synonym:0 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." #. 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 msgid "Notes" msgstr "Notas" @@ -481,8 +548,8 @@ msgstr "Línea del test" #. module: nan_quality_control #: 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.test.line,name:0 field:qc.test.template,name:0 -#: field:qc.test.template.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.line,name:0 msgid "Name" msgstr "Nombre" @@ -527,6 +594,12 @@ msgstr "Aceptar" 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." +#~ msgid "Calculate" +#~ msgstr "Calculate" + +#~ msgid "qc.test.template.trigger" +#~ msgstr "qc.test.plantilla.disparador" + #~ msgid "Trigger" #~ msgstr "Disparador" diff --git a/i18n/nan_quality_control.pot b/i18n/nan_quality_control.pot index d9ab2cf..d2b9bc4 100644 --- a/i18n/nan_quality_control.pot +++ b/i18n/nan_quality_control.pot @@ -2,36 +2,33 @@ # This file contains the translation of the following modules: # * nan_quality_control # -# , 2011. msgid "" msgstr "" "Project-Id-Version: OpenERP Server 6.0.2\n" "Report-Msgid-Bugs-To: support@openerp.com\n" -"POT-Creation-Date: 2011-08-10 14:43+0000\n" -"PO-Revision-Date: 2011-08-10 16:47+0200\n" -"Last-Translator: \n" -"Language-Team: Spanish \n" +"POT-Creation-Date: 2012-02-24 12:13+0000\n" +"PO-Revision-Date: 2012-02-24 12:13+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -"Language: es\n" -"X-Generator: Lokalize 1.2\n" #. module: nan_quality_control #: view:qc.test.line:0 msgid "Check Values" -msgstr "Valores de Check" +msgstr "Check Values" #. module: nan_quality_control #: view:qc.posible.value:0 msgid "Posible Value" -msgstr "Valor Posible" +msgstr "Posible Value" #. module: nan_quality_control #: field:qc.test.set.template.wizard,test_template_id:0 msgid "Template" -msgstr "Plantilla" +msgstr "Template" #. module: nan_quality_control #: 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" #. module: nan_quality_control +#: 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" msgstr "Uom" #. module: nan_quality_control #: model:ir.module.module,description:nan_quality_control.module_meta_information -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." -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." +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." +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." #. module: nan_quality_control #: 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" 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 #: field:qc.test.template,object_id:0 msgid "Reference Object" @@ -96,6 +105,11 @@ msgstr "Test Template Lines" msgid "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 #: model:ir.actions.act_window,name:nan_quality_control.action_qc_test_template #: model:ir.model,name:nan_quality_control.model_qc_test_template @@ -112,6 +126,21 @@ msgstr "Test Template" msgid "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 #: field:qc.test.line,proof_type:0 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." #. module: nan_quality_control -#: field:qc.posible.value,active:0 -#: field:qc.proof,active:0 -#: field:qc.proof.method,active:0 -#: field:qc.test.template,active:0 -#: field:qc.test.template.category,active:0 -msgid "Active" -msgstr "Active" +#: view:qc.test.link:0 +msgid "Test Reference Type" +msgstr "Test Reference Type" #. module: nan_quality_control #: view:qc.proof.method:0 @@ -217,6 +242,11 @@ msgstr "Child Categories" msgid "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 #: field:qc.test,state:0 msgid "State" @@ -250,6 +280,11 @@ msgstr "Test Result" msgid "Configuration" msgstr "Configuration" +#. module: nan_quality_control +#: selection:qc.test,state:0 +msgid "Waiting Supervisor Approval" +msgstr "Waiting Supervisor Approval" + #. module: nan_quality_control #: model:ir.actions.act_window,name:nan_quality_control.action_proof_synonym msgid "Synonym" @@ -265,11 +300,22 @@ msgstr "Parent Category" msgid "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 #: field:qc.test.template.category,complete_name:0 msgid "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 #: field:qc.test.line,actual_value_ql:0 msgid "Ql.Value" @@ -299,11 +345,6 @@ msgstr "Category" msgid "referenced" msgstr "referenced" -#. module: nan_quality_control -#: view:qc.test:0 -msgid "Calculate" -msgstr "Calculate" - #. module: nan_quality_control #: model:ir.module.module,shortdesc:nan_quality_control.module_meta_information #: model:ir.ui.menu,name:nan_quality_control.qc_menu @@ -315,6 +356,13 @@ msgstr "Quality Control" msgid "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 #: model:ir.model,name:nan_quality_control.model_qc_proof_method #: model:ir.ui.menu,name:nan_quality_control.qc_proof_method_menu @@ -353,11 +401,6 @@ msgstr "Date" msgid "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 #: field:qc.test,success:0 msgid "Success" @@ -374,9 +417,13 @@ msgid "Uom Test" msgstr "Uom Test" #. module: nan_quality_control -#: selection:qc.test,state:0 -msgid "Waiting Supervisor Approval" -msgstr "Waiting Supervisor Approval" +#: field:qc.posible.value,active:0 +#: field:qc.proof,active:0 +#: 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 #: selection:qc.proof,type:0 @@ -424,6 +471,11 @@ msgstr "Synonyms" 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." +#. module: nan_quality_control +#: model:qc.test.link,name:nan_quality_control.test_link_invoice +msgid "Invoice" +msgstr "Invoice" + #. module: nan_quality_control #: view:qc.test:0 #: view:qc.test.set.template.wizard:0 @@ -456,6 +508,11 @@ msgstr "Test Values" msgid "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 #: view:qc.proof.synonym:0 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." #. 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 #: view:qc.test.template.line:0 #: field:qc.test.template.line,notes:0 @@ -502,6 +565,7 @@ msgstr "Test Line" #: field:qc.proof.method,name:0 #: field:qc.proof.synonym,name:0 #: field:qc.test.line,name:0 +#: field:qc.test.link,name:0 #: field:qc.test.template,name:0 #: field:qc.test.template.line,name:0 msgid "Name" @@ -549,4 +613,3 @@ msgstr "Accept" 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." - diff --git a/quality_control.py b/quality_control.py index 005a14a..c2b8647 100644 --- a/quality_control.py +++ b/quality_control.py @@ -170,6 +170,37 @@ class qc_proof_synonym(osv.osv): 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): """ This model is used to categorize proof templates. @@ -232,12 +263,6 @@ class qc_test_template(osv.osv): _name = 'qc.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): if context and context.get('reference_model', False): id = context.get('reference_id') @@ -344,12 +369,6 @@ class qc_test(osv.osv): result[test.id] = success 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): if context and context.get('reference_model', False): return '%s,%d' % ( diff --git a/quality_control_data.xml b/quality_control_data.xml index 79d704f..4b6b867 100644 --- a/quality_control_data.xml +++ b/quality_control_data.xml @@ -1,12 +1,55 @@ - - - - Generic - - - referenced - - + + + + Generic + + + + referenced + + + + + + + Partner + res.partner + + + + Product + product.product + + + + Production Lot + stock.production.lot + + + + Picking + stock.picking + + + + Sale Order + sale.order + + + + Purchase Order + purchase.order + + + + Invoice + account.invoice + + diff --git a/quality_control_view.xml b/quality_control_view.xml index e7045a4..4c28d2b 100644 --- a/quality_control_view.xml +++ b/quality_control_view.xml @@ -150,6 +150,55 @@ tree,form + + + + qc.test.link.form + qc.test.link + form + +
+ + + + + +
+ + + qc.test.link.form + qc.test.link + tree + + + + + + + + + + qc.test.link.search + qc.test.link + search + + + + + + + + + + Test Reference Types + ir.actions.act_window + qc.test.link + form + + + + + qc.test.template.form @@ -427,12 +476,12 @@ - + + +