This commit is contained in:
alfredoavanzosc
2014-10-09 16:56:42 +02:00
committed by lreficent
parent e5d34062ba
commit 07eb03b22a
8 changed files with 1091 additions and 2603 deletions

View File

@@ -1,559 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * quality_control
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.12\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-08-31 07:57+0000\n"
"PO-Revision-Date: 2012-07-11 11:40+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2012-07-26 04:59+0000\n"
"X-Generator: Launchpad (build 15679)\n"
#. module: quality_control
#: view:qc.test.line:0
msgid "Check Values"
msgstr ""
#. module: quality_control
#: field:qc.test.template,trig_on:0
msgid "Trigger"
msgstr ""
#. module: quality_control
#: view:qc.posible.value:0
msgid "Posible Value"
msgstr ""
#. module: quality_control
#: field:qc.test.set.template.wizard,test_template_id:0
msgid "Template"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_new_test
#: view:qc.test:0
#: field:qc.test,test_template_id:0
#: field:qc.test.line,test_id:0
msgid "Test"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_set_template_wizard_form
#: model:ir.model,name:quality_control.model_qc_test_set_template_wizard
msgid "qc.test.set.template.wizard"
msgstr ""
#. module: quality_control
#: field:qc.test.line,uom_id:0
#: field:qc.test.template.line,uom_id:0
msgid "Uom"
msgstr ""
#. module: quality_control
#: model:ir.module.module,description: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 ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_line
msgid "qc.test.template.line"
msgstr ""
#. module: quality_control
#: field:qc.test.template,fill_correct_values:0
msgid "Fill With Correct Values"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_synonym
msgid "qc.proof.synonym"
msgstr ""
#. module: quality_control
#: field:qc.test.template,object_id:0
msgid "Reference Object"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_template_line_menu
msgid "Test Template Lines"
msgstr ""
#. module: quality_control
#: field:qc.test.line,success:0
msgid "Success?"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template
#: model:ir.model,name:quality_control.model_qc_test_template
#: model:ir.ui.menu,name:quality_control.qc_test_template_menu
#: view:qc.test.template:0
#: field:qc.test.template.line,test_template_id:0
msgid "Test Template"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template_trigger
#: model:ir.ui.menu,name:quality_control.qc_test_template_trigger_menu
#: view:qc.test.template.trigger:0
msgid "Template Trigger"
msgstr ""
#. module: quality_control
#: selection:qc.proof,type:0
#: selection:qc.test.line,proof_type:0
#: selection:qc.test.template.line,type:0
msgid "Qualitative"
msgstr ""
#. module: quality_control
#: view:qc.test.template.line:0
msgid "proof Line"
msgstr ""
#. module: quality_control
#: field:qc.test.line,proof_type:0
msgid "Proof Type"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_proof_menu
#: view:qc.proof:0
#: field:qc.proof.synonym,proof_id:0
#: field:qc.test.line,proof_id:0
#: field:qc.test.template.line,proof_id:0
msgid "Proof"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof
msgid "qc.proof"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_proof_method
msgid "Methods"
msgstr ""
#. module: quality_control
#: field:qc.test,object_id:0
msgid "Reference"
msgstr ""
#. module: quality_control
#: view:qc.test:0
msgid "Select Template"
msgstr ""
#. module: quality_control
#: constraint:qc.test.template.category:0
msgid "Error ! You can not create recursive categories."
msgstr ""
#. module: quality_control
#: selection:qc.test.template,type:0
msgid "Related"
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: field:qc.test,test_external_note:0
msgid "External Note"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test
msgid "qc.test"
msgstr ""
#. module: quality_control
#: view:qc.proof.synonym:0
msgid "Proof Synonym"
msgstr ""
#. module: quality_control
#: help:qc.test.line,max_value:0
msgid "Maximum valid value if it is a quantitative proof."
msgstr ""
#. module: 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
#: field:qc.test.template.trigger,active:0
msgid "Active"
msgstr ""
#. module: quality_control
#: view:qc.proof.method:0
msgid "Proof Method"
msgstr ""
#. module: quality_control
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
msgstr ""
#. module: quality_control
#: view:qc.test:0
msgid "Confirm"
msgstr ""
#. module: quality_control
#: selection:qc.test.template,type:0
#: model:qc.test.template.category,name:quality_control.qc_test_template_category_generic
msgid "Generic"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,child_ids:0
msgid "Child Categories"
msgstr ""
#. module: quality_control
#: help:qc.test.line,actual_value_ql:0
msgid "Value of the result if it is a qualitative proof."
msgstr ""
#. module: quality_control
#: field:qc.test,state:0
msgid "State"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Draft"
msgstr ""
#. module: quality_control
#: view:qc.posible.value:0
msgid "Proof Posible Value"
msgstr ""
#. module: quality_control
#: view:qc.test.line:0
msgid "Test Result"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_menu_config
msgid "Configuration"
msgstr ""
#. module: quality_control
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_proof_synonym
msgid "Synonym"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,parent_id:0
msgid "Parent Category"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_line
msgid "qc.test.line"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,complete_name:0
msgid "Full Name"
msgstr ""
#. module: quality_control
#: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value"
msgstr ""
#. module: quality_control
#: field:qc.proof,type:0
#: field:qc.test.template,type:0
#: field:qc.test.template.line,type:0
msgid "Type"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_posible_value
#: model:ir.ui.menu,name:quality_control.qc_proof_posible_value_menu
#: field:qc.proof,value_ids:0
msgid "Posible Values"
msgstr ""
#. module: quality_control
#: field:qc.test.template,category_id:0
msgid "Category"
msgstr ""
#. module: quality_control
#: model:qc.test.template.category,name:quality_control.qc_test_template_category_referenced
msgid "referenced"
msgstr ""
#. module: quality_control
#: model:ir.module.module,shortdesc:quality_control.module_meta_information
#: model:ir.ui.menu,name:quality_control.qc_menu
msgid "Quality Control"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,name:0
msgid "Category Name"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:quality_control.qc_proof_method_menu
#: field:qc.test.line,method_id:0
#: field:qc.test.template.line,method_id:0
msgid "Method"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_menu
msgid "Tests"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_category
msgid "qc.test.template.category"
msgstr ""
#. module: quality_control
#: help:qc.test.line,actual_value_qt:0
msgid "Value of the result if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: help:qc.test.line,min_value:0
msgid "Minimum valid value if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: field:qc.test,name:0
msgid "Date"
msgstr ""
#. module: quality_control
#: view:qc.proof.method:0
msgid "Test Method"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_trigger
msgid "qc.test.template.trigger"
msgstr ""
#. module: quality_control
#: field:qc.test,success:0
msgid "Success"
msgstr ""
#. module: 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 ""
#. module: quality_control
#: field:qc.test,enabled:0
msgid "Enabled"
msgstr ""
#. module: quality_control
#: field:qc.test.line,test_uom_id:0
msgid "Uom Test"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Waiting Supervisor Approval"
msgstr ""
#. module: quality_control
#: help:qc.test,enabled:0
msgid ""
"If a quality control test is not enabled it means it can not be moved from "
"\"Quality Success\" or \"Quality Failed\" state."
msgstr ""
#. module: quality_control
#: selection:qc.proof,type:0
#: selection:qc.test.line,proof_type:0
#: selection:qc.test.template.line,type:0
msgid "Quantitative"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template_line
#: field:qc.test.line,test_template_line_id:0
#: view:qc.test.template.line:0
msgid "Test Template Line"
msgstr ""
#. module: quality_control
#: field:qc.proof,ref:0
msgid "Code"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Quality Failed"
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: field:qc.test,test_internal_note:0
msgid "Internal Note"
msgstr ""
#. module: quality_control
#: field:qc.proof,synonym_ids:0
#: field:qc.proof,synonyms:0
msgid "Synonyms"
msgstr ""
#. module: quality_control
#: help:qc.test.line,uom_id:0
msgid "UoM for minimum and maximum values if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: view:qc.test.set.template.wizard:0
msgid "Cancel"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_proof
msgid "proof"
msgstr ""
#. module: quality_control
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
#. module: quality_control
#: field:qc.test.line,min_value:0
#: field:qc.test.template.line,min_value:0
msgid "Min"
msgstr ""
#. module: quality_control
#: view:qc.test.line:0
msgid "Test Values"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_posible_value
msgid "qc.posible.value"
msgstr ""
#. module: quality_control
#: view:qc.proof.synonym:0
msgid "Test Synonym"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_lines_menu
#: field:qc.test,test_line_ids:0
msgid "Test Lines"
msgstr ""
#. module: quality_control
#: field:qc.test.line,max_value:0
#: field:qc.test.template.line,max_value:0
msgid "Max"
msgstr ""
#. module: quality_control
#: help:qc.test,success:0
msgid "This field will be active if all tests have succeeded."
msgstr ""
#. module: quality_control
#: field:qc.test.line,notes:0
#: field:qc.test.template.line,notes:0
msgid "Notes"
msgstr ""
#. module: quality_control
#: view:qc.test.set.template.wizard:0
msgid "Select Test Template"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_line
#: view:qc.test.line:0
msgid "Test Line"
msgstr ""
#. module: 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.template,name:0
#: field:qc.test.template.trigger,name:0
msgid "Name"
msgstr ""
#. module: quality_control
#: field:qc.test.template,test_template_line_ids:0
msgid "Lines"
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: field:qc.test.line,valid_value_ids:0
#: field:qc.test.template.line,valid_value_ids:0
msgid "Values"
msgstr ""
#. module: quality_control
#: view:qc.test:0
msgid "Approve"
msgstr ""
#. module: quality_control
#: field:qc.test.line,actual_value_qt:0
msgid "Qt.Value"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Quality Success"
msgstr ""
#. module: quality_control
#: field:qc.test.template.line,sequence:0
msgid "Sequence"
msgstr ""
#. module: quality_control
#: view:qc.test.set.template.wizard:0
msgid "Accept"
msgstr ""
#. module: quality_control
#: help:qc.test.template.category,active:0
msgid "The active field allows you to hide the category without removing it."
msgstr ""

View File

@@ -1,553 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * quality_control
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.12\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-08-31 07:57:32+0000\n"
"PO-Revision-Date: 2010-08-31 07:57:32+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"
#. module: quality_control
#: view:qc.test.line:0
msgid "Check Values"
msgstr ""
#. module: quality_control
#: field:qc.test.template,trig_on:0
msgid "Trigger"
msgstr ""
#. module: quality_control
#: view:qc.posible.value:0
msgid "Posible Value"
msgstr ""
#. module: quality_control
#: field:qc.test.set.template.wizard,test_template_id:0
msgid "Template"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_new_test
#: view:qc.test:0
#: field:qc.test,test_template_id:0
#: field:qc.test.line,test_id:0
msgid "Test"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_set_template_wizard_form
#: model:ir.model,name:quality_control.model_qc_test_set_template_wizard
msgid "qc.test.set.template.wizard"
msgstr ""
#. module: quality_control
#: field:qc.test.line,uom_id:0
#: field:qc.test.template.line,uom_id:0
msgid "Uom"
msgstr ""
#. module: quality_control
#: model:ir.module.module,description: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 ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_line
msgid "qc.test.template.line"
msgstr ""
#. module: quality_control
#: field:qc.test.template,fill_correct_values:0
msgid "Fill With Correct Values"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_synonym
msgid "qc.proof.synonym"
msgstr ""
#. module: quality_control
#: field:qc.test.template,object_id:0
msgid "Reference Object"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_template_line_menu
msgid "Test Template Lines"
msgstr ""
#. module: quality_control
#: field:qc.test.line,success:0
msgid "Success?"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template
#: model:ir.model,name:quality_control.model_qc_test_template
#: model:ir.ui.menu,name:quality_control.qc_test_template_menu
#: view:qc.test.template:0
#: field:qc.test.template.line,test_template_id:0
msgid "Test Template"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template_trigger
#: model:ir.ui.menu,name:quality_control.qc_test_template_trigger_menu
#: view:qc.test.template.trigger:0
msgid "Template Trigger"
msgstr ""
#. module: quality_control
#: selection:qc.proof,type:0
#: selection:qc.test.line,proof_type:0
#: selection:qc.test.template.line,type:0
msgid "Qualitative"
msgstr ""
#. module: quality_control
#: view:qc.test.template.line:0
msgid "proof Line"
msgstr ""
#. module: quality_control
#: field:qc.test.line,proof_type:0
msgid "Proof Type"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_proof_menu
#: view:qc.proof:0
#: field:qc.proof.synonym,proof_id:0
#: field:qc.test.line,proof_id:0
#: field:qc.test.template.line,proof_id:0
msgid "Proof"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof
msgid "qc.proof"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_proof_method
msgid "Methods"
msgstr ""
#. module: quality_control
#: field:qc.test,object_id:0
msgid "Reference"
msgstr ""
#. module: quality_control
#: view:qc.test:0
msgid "Select Template"
msgstr ""
#. module: quality_control
#: constraint:qc.test.template.category:0
msgid "Error ! You can not create recursive categories."
msgstr ""
#. module: quality_control
#: selection:qc.test.template,type:0
msgid "Related"
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: field:qc.test,test_external_note:0
msgid "External Note"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test
msgid "qc.test"
msgstr ""
#. module: quality_control
#: view:qc.proof.synonym:0
msgid "Proof Synonym"
msgstr ""
#. module: quality_control
#: help:qc.test.line,max_value:0
msgid "Maximum valid value if it is a quantitative proof."
msgstr ""
#. module: 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
#: field:qc.test.template.trigger,active:0
msgid "Active"
msgstr ""
#. module: quality_control
#: view:qc.proof.method:0
msgid "Proof Method"
msgstr ""
#. module: quality_control
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
msgstr ""
#. module: quality_control
#: view:qc.test:0
msgid "Confirm"
msgstr ""
#. module: quality_control
#: selection:qc.test.template,type:0
#: model:qc.test.template.category,name:quality_control.qc_test_template_category_generic
msgid "Generic"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,child_ids:0
msgid "Child Categories"
msgstr ""
#. module: quality_control
#: help:qc.test.line,actual_value_ql:0
msgid "Value of the result if it is a qualitative proof."
msgstr ""
#. module: quality_control
#: field:qc.test,state:0
msgid "State"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Draft"
msgstr ""
#. module: quality_control
#: view:qc.posible.value:0
msgid "Proof Posible Value"
msgstr ""
#. module: quality_control
#: view:qc.test.line:0
msgid "Test Result"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_menu_config
msgid "Configuration"
msgstr ""
#. module: quality_control
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_proof_synonym
msgid "Synonym"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,parent_id:0
msgid "Parent Category"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_line
msgid "qc.test.line"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,complete_name:0
msgid "Full Name"
msgstr ""
#. module: quality_control
#: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value"
msgstr ""
#. module: quality_control
#: field:qc.proof,type:0
#: field:qc.test.template,type:0
#: field:qc.test.template.line,type:0
msgid "Type"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_posible_value
#: model:ir.ui.menu,name:quality_control.qc_proof_posible_value_menu
#: field:qc.proof,value_ids:0
msgid "Posible Values"
msgstr ""
#. module: quality_control
#: field:qc.test.template,category_id:0
msgid "Category"
msgstr ""
#. module: quality_control
#: model:qc.test.template.category,name:quality_control.qc_test_template_category_referenced
msgid "referenced"
msgstr ""
#. module: quality_control
#: model:ir.module.module,shortdesc:quality_control.module_meta_information
#: model:ir.ui.menu,name:quality_control.qc_menu
msgid "Quality Control"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,name:0
msgid "Category Name"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:quality_control.qc_proof_method_menu
#: field:qc.test.line,method_id:0
#: field:qc.test.template.line,method_id:0
msgid "Method"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_menu
msgid "Tests"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_category
msgid "qc.test.template.category"
msgstr ""
#. module: quality_control
#: help:qc.test.line,actual_value_qt:0
msgid "Value of the result if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: help:qc.test.line,min_value:0
msgid "Minimum valid value if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: field:qc.test,name:0
msgid "Date"
msgstr ""
#. module: quality_control
#: view:qc.proof.method:0
msgid "Test Method"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_trigger
msgid "qc.test.template.trigger"
msgstr ""
#. module: quality_control
#: field:qc.test,success:0
msgid "Success"
msgstr ""
#. module: 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 ""
#. module: quality_control
#: field:qc.test,enabled:0
msgid "Enabled"
msgstr ""
#. module: quality_control
#: field:qc.test.line,test_uom_id:0
msgid "Uom Test"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Waiting Supervisor Approval"
msgstr ""
#. module: quality_control
#: help:qc.test,enabled:0
msgid "If a quality control test is not enabled it means it can not be moved from \"Quality Success\" or \"Quality Failed\" state."
msgstr ""
#. module: quality_control
#: selection:qc.proof,type:0
#: selection:qc.test.line,proof_type:0
#: selection:qc.test.template.line,type:0
msgid "Quantitative"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template_line
#: field:qc.test.line,test_template_line_id:0
#: view:qc.test.template.line:0
msgid "Test Template Line"
msgstr ""
#. module: quality_control
#: field:qc.proof,ref:0
msgid "Code"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Quality Failed"
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: field:qc.test,test_internal_note:0
msgid "Internal Note"
msgstr ""
#. module: quality_control
#: field:qc.proof,synonym_ids:0
#: field:qc.proof,synonyms:0
msgid "Synonyms"
msgstr ""
#. module: quality_control
#: help:qc.test.line,uom_id:0
msgid "UoM for minimum and maximum values if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: view:qc.test.set.template.wizard:0
msgid "Cancel"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_proof
msgid "proof"
msgstr ""
#. module: quality_control
#: constraint:ir.model:0
msgid "The Object name must start with x_ and not contain any special character !"
msgstr ""
#. module: quality_control
#: field:qc.test.line,min_value:0
#: field:qc.test.template.line,min_value:0
msgid "Min"
msgstr ""
#. module: quality_control
#: view:qc.test.line:0
msgid "Test Values"
msgstr ""
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_posible_value
msgid "qc.posible.value"
msgstr ""
#. module: quality_control
#: view:qc.proof.synonym:0
msgid "Test Synonym"
msgstr ""
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_lines_menu
#: field:qc.test,test_line_ids:0
msgid "Test Lines"
msgstr ""
#. module: quality_control
#: field:qc.test.line,max_value:0
#: field:qc.test.template.line,max_value:0
msgid "Max"
msgstr ""
#. module: quality_control
#: help:qc.test,success:0
msgid "This field will be active if all tests have succeeded."
msgstr ""
#. module: quality_control
#: field:qc.test.line,notes:0
#: field:qc.test.template.line,notes:0
msgid "Notes"
msgstr ""
#. module: quality_control
#: view:qc.test.set.template.wizard:0
msgid "Select Test Template"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_line
#: view:qc.test.line:0
msgid "Test Line"
msgstr ""
#. module: 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.template,name:0
#: field:qc.test.template.trigger,name:0
msgid "Name"
msgstr ""
#. module: quality_control
#: field:qc.test.template,test_template_line_ids:0
msgid "Lines"
msgstr ""
#. module: quality_control
#: view:qc.test:0
#: field:qc.test.line,valid_value_ids:0
#: field:qc.test.template.line,valid_value_ids:0
msgid "Values"
msgstr ""
#. module: quality_control
#: view:qc.test:0
msgid "Approve"
msgstr ""
#. module: quality_control
#: field:qc.test.line,actual_value_qt:0
msgid "Qt.Value"
msgstr ""
#. module: quality_control
#: selection:qc.test,state:0
msgid "Quality Success"
msgstr ""
#. module: quality_control
#: field:qc.test.template.line,sequence:0
msgid "Sequence"
msgstr ""
#. module: quality_control
#: view:qc.test.set.template.wizard:0
msgid "Accept"
msgstr ""
#. module: quality_control
#: help:qc.test.template.category,active:0
msgid "The active field allows you to hide the category without removing it."
msgstr ""

File diff suppressed because it is too large Load Diff

View File

@@ -1,558 +0,0 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
# * quality_control
#
# Jordi Pasquina <jordi@nan-tic.com>, 2010.
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 5.0.12\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2010-08-31 07:57:32+0000\n"
"PO-Revision-Date: 2010-08-31 10:29+0200\n"
"Last-Translator: Jordi Pasquina <jordi@nan-tic.com>\n"
"Language-Team: Spanish <kde-i18n-doc@kde.org>\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"
#. module: quality_control
#: view:qc.test.line:0
msgid "Check Values"
msgstr "Comprobar los valores"
#. module: quality_control
#: field:qc.test.template,trig_on:0
msgid "Trigger"
msgstr "Disparador"
#. module: quality_control
#: view:qc.posible.value:0
msgid "Posible Value"
msgstr "Valor posible"
#. module: quality_control
#: field:qc.test.set.template.wizard,test_template_id:0
msgid "Template"
msgstr "Plantilla"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_new_test
#: view:qc.test:0
#: field:qc.test,test_template_id:0
#: field:qc.test.line,test_id:0
msgid "Test"
msgstr "Test"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_set_template_wizard_form
#: model:ir.model,name:quality_control.model_qc_test_set_template_wizard
msgid "qc.test.set.template.wizard"
msgstr "qc.test.conjunto.plantilla.assistente"
#. module: quality_control
#: field:qc.test.line,uom_id:0
#: field:qc.test.template.line,uom_id:0
msgid "Uom"
msgstr "Uom"
#. module: quality_control
#: model:ir.module.module,description: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 ""
"Este módulo proporciona una infraestructura para las pruebas de calidad. La idea es que se pueda volver a utilizarse más adelante para hacer pruebas de calidad en los lotes de producción, pero también en "
"otras áreas que una empresa pueda desear."
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_line
msgid "qc.test.template.line"
msgstr "qc.test.plantilla.linea"
#. module: quality_control
#: field:qc.test.template,fill_correct_values:0
msgid "Fill With Correct Values"
msgstr "REllenar con los valores correctos"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_synonym
msgid "qc.proof.synonym"
msgstr "qc.prueba.sinonimo"
#. module: quality_control
#: field:qc.test.template,object_id:0
msgid "Reference Object"
msgstr "Objeto referencia"
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_template_line_menu
msgid "Test Template Lines"
msgstr "Líneas de la plantilla del test"
#. module: quality_control
#: field:qc.test.line,success:0
msgid "Success?"
msgstr "Éxito?"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template
#: model:ir.model,name:quality_control.model_qc_test_template
#: model:ir.ui.menu,name:quality_control.qc_test_template_menu
#: view:qc.test.template:0
#: field:qc.test.template.line,test_template_id:0
msgid "Test Template"
msgstr "Plantilla del test"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template_trigger
#: model:ir.ui.menu,name:quality_control.qc_test_template_trigger_menu
#: view:qc.test.template.trigger:0
msgid "Template Trigger"
msgstr "Plantilla Disparador"
#. module: quality_control
#: selection:qc.proof,type:0
#: selection:qc.test.line,proof_type:0
#: selection:qc.test.template.line,type:0
msgid "Qualitative"
msgstr "Cualitativo"
#. module: quality_control
#: view:qc.test.template.line:0
msgid "proof Line"
msgstr "Línea de la prueba"
#. module: quality_control
#: field:qc.test.line,proof_type:0
msgid "Proof Type"
msgstr "Tipo de Prueba"
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_proof_menu
#: view:qc.proof:0
#: field:qc.proof.synonym,proof_id:0
#: field:qc.test.line,proof_id:0
#: field:qc.test.template.line,proof_id:0
msgid "Proof"
msgstr "Prueba"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof
msgid "qc.proof"
msgstr "qc.prueba"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_proof_method
msgid "Methods"
msgstr "Métodos"
#. module: quality_control
#: field:qc.test,object_id:0
msgid "Reference"
msgstr "Referencia"
#. module: quality_control
#: view:qc.test:0
msgid "Select Template"
msgstr "Seleccionar plantilla"
#. module: quality_control
#: constraint:qc.test.template.category:0
msgid "Error ! You can not create recursive categories."
msgstr "Error! No se pueden crear categorías recursivas."
#. module: quality_control
#: selection:qc.test.template,type:0
msgid "Related"
msgstr "Relacionado"
#. module: quality_control
#: view:qc.test:0
#: field:qc.test,test_external_note:0
msgid "External Note"
msgstr "Nota externa"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test
msgid "qc.test"
msgstr "qc.test"
#. module: quality_control
#: view:qc.proof.synonym:0
msgid "Proof Synonym"
msgstr "Prueba sinónima"
#. module: quality_control
#: help:qc.test.line,max_value:0
msgid "Maximum valid value if it is a quantitative proof."
msgstr "Máximo valor válido si se trata de una prueba cuantitativa."
#. module: 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
#: field:qc.test.template.trigger,active:0
msgid "Active"
msgstr "Activo"
#. module: quality_control
#: view:qc.proof.method:0
msgid "Proof Method"
msgstr "Método de la prueba"
#. module: quality_control
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
msgstr "Nombre del modelo inválido en la definición de la acción."
#. module: quality_control
#: view:qc.test:0
msgid "Confirm"
msgstr "Confirmar"
#. module: quality_control
#: selection:qc.test.template,type:0
#: model:qc.test.template.category,name:quality_control.qc_test_template_category_generic
msgid "Generic"
msgstr "Genérico"
#. module: quality_control
#: field:qc.test.template.category,child_ids:0
msgid "Child Categories"
msgstr "Categorías inferiores"
#. module: quality_control
#: help:qc.test.line,actual_value_ql:0
msgid "Value of the result if it is a qualitative proof."
msgstr "Valor del resultado si se trata de una prueba cualitativa."
#. module: quality_control
#: field:qc.test,state:0
msgid "State"
msgstr "Estado"
#. module: quality_control
#: selection:qc.test,state:0
msgid "Draft"
msgstr "Borrador"
#. module: quality_control
#: view:qc.posible.value:0
msgid "Proof Posible Value"
msgstr "Posible valor de la prueba"
#. module: quality_control
#: view:qc.test.line:0
msgid "Test Result"
msgstr "Resultado del test"
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_menu_config
msgid "Configuration"
msgstr "Configuración"
#. module: quality_control
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr "XML inválido para la arquitectura de vistas!"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_proof_synonym
msgid "Synonym"
msgstr "Sinónimo"
#. module: quality_control
#: field:qc.test.template.category,parent_id:0
msgid "Parent Category"
msgstr "Categoría padre"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_line
msgid "qc.test.line"
msgstr "qc.test.linea"
#. module: quality_control
#: field:qc.test.template.category,complete_name:0
msgid "Full Name"
msgstr "Nombre completo"
#. module: quality_control
#: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value"
msgstr "Ql.valor"
#. module: quality_control
#: field:qc.proof,type:0
#: field:qc.test.template,type:0
#: field:qc.test.template.line,type:0
msgid "Type"
msgstr "Tipo"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_posible_value
#: model:ir.ui.menu,name:quality_control.qc_proof_posible_value_menu
#: field:qc.proof,value_ids:0
msgid "Posible Values"
msgstr "Valores posibles"
#. module: quality_control
#: field:qc.test.template,category_id:0
msgid "Category"
msgstr "Categoria"
#. module: quality_control
#: model:qc.test.template.category,name:quality_control.qc_test_template_category_referenced
msgid "referenced"
msgstr "referencia"
#. module: quality_control
#: model:ir.module.module,shortdesc:quality_control.module_meta_information
#: model:ir.ui.menu,name:quality_control.qc_menu
msgid "Quality Control"
msgstr "Control de calidad"
#. module: quality_control
#: field:qc.test.template.category,name:0
msgid "Category Name"
msgstr "Nombre de la Categoría"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:quality_control.qc_proof_method_menu
#: field:qc.test.line,method_id:0
#: field:qc.test.template.line,method_id:0
msgid "Method"
msgstr "Método"
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_menu
msgid "Tests"
msgstr "Tests"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_category
msgid "qc.test.template.category"
msgstr "qc.test.plantilla.categoria"
#. module: quality_control
#: help:qc.test.line,actual_value_qt:0
msgid "Value of the result if it is a quantitative proof."
msgstr "Valor del resultado si se trata de una prueba cuantitativa."
#. module: quality_control
#: help:qc.test.line,min_value:0
msgid "Minimum valid value if it is a quantitative proof."
msgstr "Mínimo valor válido si se trata de una prueba cuantitativa."
#. module: quality_control
#: field:qc.test,name:0
msgid "Date"
msgstr "Fecha"
#. module: quality_control
#: view:qc.proof.method:0
msgid "Test Method"
msgstr "Método del test"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_test_template_trigger
msgid "qc.test.template.trigger"
msgstr "qc.test.plantilla.disparador"
#. module: quality_control
#: field:qc.test,success:0
msgid "Success"
msgstr "Éxito"
#. module: 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."
#. module: quality_control
#: field:qc.test,enabled:0
msgid "Enabled"
msgstr "Activado"
#. module: quality_control
#: field:qc.test.line,test_uom_id:0
msgid "Uom Test"
msgstr "Uom test"
#. module: quality_control
#: selection:qc.test,state:0
msgid "Waiting Supervisor Approval"
msgstr "Esperando la aprobación del supervisor"
#. module: quality_control
#: help:qc.test,enabled:0
msgid "If a quality control test is not enabled it means it can not be moved from \"Quality Success\" or \"Quality Failed\" state."
msgstr "Si una prueba de control de calidad no está habilitada, significa que no se pueden mover del estado \"Calidad Correcta\" o \"Calidad Errónea\"."
#. module: quality_control
#: selection:qc.proof,type:0
#: selection:qc.test.line,proof_type:0
#: selection:qc.test.template.line,type:0
msgid "Quantitative"
msgstr "Cuantitativa"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_template_line
#: field:qc.test.line,test_template_line_id:0
#: view:qc.test.template.line:0
msgid "Test Template Line"
msgstr "Línea de la plantilla del test"
#. module: quality_control
#: field:qc.proof,ref:0
msgid "Code"
msgstr "Código"
#. module: quality_control
#: selection:qc.test,state:0
msgid "Quality Failed"
msgstr "Calidad errónea"
#. module: quality_control
#: view:qc.test:0
#: field:qc.test,test_internal_note:0
msgid "Internal Note"
msgstr "Nota interna"
#. module: quality_control
#: field:qc.proof,synonym_ids:0
#: field:qc.proof,synonyms:0
msgid "Synonyms"
msgstr "Sinónimos"
#. module: quality_control
#: 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 cuantitativa."
#. module: quality_control
#: view:qc.test:0
#: view:qc.test.set.template.wizard:0
msgid "Cancel"
msgstr "Cancelar"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_proof
msgid "proof"
msgstr "Prueba"
#. module: quality_control
#: constraint:ir.model:0
msgid "The Object name must start with x_ and not contain any special character !"
msgstr "El nombre del objeto debe empezar con x_ y no debe contener ningún carácter especial!"
#. module: quality_control
#: field:qc.test.line,min_value:0
#: field:qc.test.template.line,min_value:0
msgid "Min"
msgstr "Mínimo"
#. module: quality_control
#: view:qc.test.line:0
msgid "Test Values"
msgstr "Valores del Test"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_posible_value
msgid "qc.posible.value"
msgstr "qc.posible.valor"
#. module: quality_control
#: view:qc.proof.synonym:0
msgid "Test Synonym"
msgstr "Test Sinónimo"
#. module: quality_control
#: model:ir.ui.menu,name:quality_control.qc_test_lines_menu
#: field:qc.test,test_line_ids:0
msgid "Test Lines"
msgstr "Líneas del test"
#. module: quality_control
#: field:qc.test.line,max_value:0
#: field:qc.test.template.line,max_value:0
msgid "Max"
msgstr "Máx"
#. module: quality_control
#: help:qc.test,success:0
msgid "This field will be active if all tests have succeeded."
msgstr "Este campo se activa si todas las pruebas han tenido éxito."
#. module: quality_control
#: field:qc.test.line,notes:0
#: field:qc.test.template.line,notes:0
msgid "Notes"
msgstr "Notas"
#. module: quality_control
#: view:qc.test.set.template.wizard:0
msgid "Select Test Template"
msgstr "Seleccionar plantilla del test"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_line
#: view:qc.test.line:0
msgid "Test Line"
msgstr "Línea del test"
#. module: 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.template,name:0
#: field:qc.test.template.trigger,name:0
msgid "Name"
msgstr "Nombre"
#. module: quality_control
#: field:qc.test.template,test_template_line_ids:0
msgid "Lines"
msgstr "Líneas"
#. module: quality_control
#: view:qc.test:0
#: field:qc.test.line,valid_value_ids:0
#: field:qc.test.template.line,valid_value_ids:0
msgid "Values"
msgstr "Valores"
#. module: quality_control
#: view:qc.test:0
msgid "Approve"
msgstr "Aprobar"
#. module: quality_control
#: field:qc.test.line,actual_value_qt:0
msgid "Qt.Value"
msgstr "Qt.valor"
#. module: quality_control
#: selection:qc.test,state:0
msgid "Quality Success"
msgstr "Calidad correcta"
#. module: quality_control
#: field:qc.test.template.line,sequence:0
msgid "Sequence"
msgstr "Secuencia"
#. module: quality_control
#: view:qc.test.set.template.wizard:0
msgid "Accept"
msgstr "Aceptar"
#. module: quality_control
#: help:qc.test.template.category,active:0
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."

File diff suppressed because it is too large Load Diff

View File

@@ -127,6 +127,11 @@ class QcProof(orm.Model):
'active': lambda *a: True, 'active': lambda *a: True,
} }
_sql_constraints = [
('proof_method_unique', 'UNIQUE (proof_id, method_id)',
_('Proof-Method relation alredy exists!')),
]
def name_search(self, cr, uid, name='', args=None, operator='ilike', def name_search(self, cr, uid, name='', args=None, operator='ilike',
context=None, limit=None): context=None, limit=None):
result = super(QcProof, self).name_search(cr, uid, name=name, result = super(QcProof, self).name_search(cr, uid, name=name,
@@ -327,12 +332,12 @@ class QcTestTemplateLine(orm.Model):
'sequence': fields.integer('Sequence', required=True), 'sequence': fields.integer('Sequence', required=True),
'test_template_id': fields.many2one('qc.test.template', 'test_template_id': fields.many2one('qc.test.template',
'Test Template', select="1"), 'Test Template', select="1"),
'proof_id': fields.many2one('qc.proof', 'Proof', required=True, 'proof_id': fields.many2one('qc.proof', 'Question', required=True,
select="1"), select="1"),
'valid_value_ids': fields.many2many('qc.posible.value', 'valid_value_ids': fields.many2many('qc.posible.value',
'qc_template_value_rel', 'qc_template_value_rel',
'template_line_id', 'value_id', 'template_line_id', 'value_id',
'Values'), 'Answers'),
'method_id': fields.many2one('qc.proof.method', 'Method', select="1"), 'method_id': fields.many2one('qc.proof.method', 'Method', select="1"),
'notes': fields.text('Notes'), 'notes': fields.text('Notes'),
'min_value': fields.float('Min', digits=(16, 5)), # Quantitative only 'min_value': fields.float('Min', digits=(16, 5)), # Quantitative only
@@ -421,6 +426,7 @@ class QcTest(orm.Model):
('waiting', 'Waiting Supervisor Approval'), ('waiting', 'Waiting Supervisor Approval'),
('success', 'Quality Success'), ('success', 'Quality Success'),
('failed', 'Quality Failed'), ('failed', 'Quality Failed'),
('canceled', 'Canceled'),
], 'State', readonly=True, select="1"), ], 'State', readonly=True, select="1"),
'success': fields.function(_success, method=True, type='boolean', 'success': fields.function(_success, method=True, type='boolean',
string='Success', string='Success',
@@ -491,13 +497,25 @@ class QcTest(orm.Model):
test_line_obj.unlink(cr, uid, test_line_obj.unlink(cr, uid,
[x.id for x in test.test_line_ids], [x.id for x in test.test_line_ids],
context=context) context=context)
test_lines = self._prepare_test_lines(
cr, uid, test, force_fill=force_fill, context=context)
test_obj.write(cr, uid, id, {'test_line_ids': test_lines}, context)
def _prepare_test_lines(self, cr, uid, test, force_fill=False,
context=None):
new_data = []
fill = False fill = False
if test.test_template_id.fill_correct_values: if test.test_template_id.fill_correct_values:
fill = True fill = True
for line in test.test_template_id.test_template_line_ids: for line in test.test_template_id.test_template_line_ids:
data = { data = self.self._prepare_test_line(
'test_id': id, cr, uid, test, line, fill=fill or force_fill, context=context)
new_data.append((0, 0, data))
return new_data
def _prepare_test_line(self, cr, uid, test, line, fill=None, context=None):
data = {}
data = {'test_id': test.id,
'method_id': line.method_id.id, 'method_id': line.method_id.id,
'proof_id': line.proof_id.id, 'proof_id': line.proof_id.id,
'test_template_line_id': line.id, 'test_template_line_id': line.id,
@@ -508,26 +526,20 @@ class QcTest(orm.Model):
'test_uom_id': line.uom_id.id, 'test_uom_id': line.uom_id.id,
'proof_type': line.type, 'proof_type': line.type,
} }
if fill or force_fill: if fill:
if line.type == 'qualitative': if line.type == 'qualitative':
# Fill with the first correct value finded. # Fill with the first correct value found.
data['actual_value_ql'] = ( data['actual_value_ql'] = (
len(line.valid_value_ids) and len(line.valid_value_ids) and
line.valid_value_ids[0] and line.valid_value_ids[0] and
line.valid_value_ids[0].id or False) line.valid_value_ids[0].id or False)
else: else:
# Fill with value inside range. # Fill with value inside range.
data['actual_value_qt'] = line.min_value data['actual_value_qt'] = line.min_value
data['test_uom_id'] = line.uom_id.id data['test_uom_id'] = line.uom_id.id
data['valid_value_ids'] = [(6, 0, [x.id for x in
test_line_id = test_line_obj.create(cr, uid, data, line.valid_value_ids])]
context=context) return data
test_line_obj.write(
cr, uid, [test_line_id],
{'valid_value_ids':
[(6, 0, [x.id for x in line.valid_value_ids])]},
context=context)
class QcTestLine(orm.Model): class QcTestLine(orm.Model):
@@ -571,13 +583,13 @@ class QcTestLine(orm.Model):
'test_template_line_id': fields.many2one('qc.test.template.line', 'test_template_line_id': fields.many2one('qc.test.template.line',
'Test Template Line', 'Test Template Line',
readonly=True), readonly=True),
'proof_id': fields.many2one('qc.proof', 'Proof', readonly=True), 'proof_id': fields.many2one('qc.proof', 'Question', readonly=True),
'method_id': fields.many2one('qc.proof.method', 'Method', 'method_id': fields.many2one('qc.proof.method', 'Method',
readonly=True), readonly=True),
'valid_value_ids': fields.many2many('qc.posible.value', 'valid_value_ids': fields.many2many('qc.posible.value',
'qc_test_value_rel', 'qc_test_value_rel',
'test_line_id', 'value_id', 'test_line_id', 'value_id',
'Values'), 'Answers'),
'actual_value_qt': fields.float('Qt.Value', digits=(16, 5), 'actual_value_qt': fields.float('Qt.Value', digits=(16, 5),
help="Value of the result if it is a" help="Value of the result if it is a"
" quantitative proof."), " quantitative proof."),

View File

@@ -355,6 +355,8 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form string="Test"> <form string="Test">
<header> <header>
<button name="draft" states="canceled"
string="Draft" icon="gtk-ok" />
<button name="confirm" states="draft" <button name="confirm" states="draft"
string="Confirm" icon="gtk-ok" /> string="Confirm" icon="gtk-ok" />
<button name="approve" states="waiting" <button name="approve" states="waiting"
@@ -382,9 +384,7 @@
readonly="True" select="1" /> readonly="True" select="1" />
</group> </group>
<notebook> <notebook>
<page string="Values"> <page string="questions">
<separator string="Values"
colspan="4" />
<field name="test_line_ids" <field name="test_line_ids"
nolabel="1" colspan="4" /> nolabel="1" colspan="4" />
</page> </page>

View File

@@ -16,6 +16,13 @@
<field name="action">write({'state': 'draft'})</field> <field name="action">write({'state': 'draft'})</field>
<field name="signal_send">subflow.draft</field> <field name="signal_send">subflow.draft</field>
</record> </record>
<record id="qc-cancel" model="workflow.activity">
<field name="wkf_id" ref="wkf_qc_test" />
<field name="name">canceled</field>
<field name="kind">function</field>
<field name="action">write({'state': 'canceled'})</field>
<field name="signal_send">subflow.waiting</field>
</record>
<record id="qc-waiting" model="workflow.activity"> <record id="qc-waiting" model="workflow.activity">
<field name="wkf_id" ref="wkf_qc_test" /> <field name="wkf_id" ref="wkf_qc_test" />
<field name="name">waiting</field> <field name="name">waiting</field>
@@ -58,20 +65,26 @@
</record> </record>
<record id="trans_waiting_draft" model="workflow.transition"> <record id="trans_waiting_draft" model="workflow.transition">
<field name="act_from" ref="qc-waiting" /> <field name="act_from" ref="qc-waiting" />
<field name="act_to" ref="qc-draft" /> <field name="act_to" ref="qc-cancel" />
<field name="signal">cancel</field> <field name="signal">cancel</field>
</record> </record>
<record id="trans_failed_draft" model="workflow.transition"> <record id="trans_failed_draft" model="workflow.transition">
<field name="act_from" ref="qc-failed" /> <field name="act_from" ref="qc-failed" />
<field name="act_to" ref="qc-draft" /> <field name="act_to" ref="qc-cancel" />
<field name="condition">enabled</field> <field name="condition">enabled</field>
<field name="signal">cancel</field> <field name="signal">cancel</field>
</record> </record>
<record id="trans_success_draft" model="workflow.transition"> <record id="trans_success_draft" model="workflow.transition">
<field name="act_from" ref="qc-success" /> <field name="act_from" ref="qc-success" />
<field name="act_to" ref="qc-draft" /> <field name="act_to" ref="qc-cancel" />
<field name="condition">enabled</field> <field name="condition">enabled</field>
<field name="signal">cancel</field> <field name="signal">cancel</field>
</record> </record>
<record id="trans_cancel_draft" model="workflow.transition">
<field name="act_from" ref="qc-cancel" />
<field name="act_to" ref="qc-draft" />
<field name="condition">enabled</field>
<field name="signal">draft</field>
</record>
</data> </data>
</openerp> </openerp>