This commit is contained in:
alfredoavanzosc
2014-11-06 09:27:05 +01:00
committed by Pedro M. Baeza
parent 602e8c5619
commit 45e89f3d0b
5 changed files with 159 additions and 41 deletions

View File

@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-13 13:00+0000\n"
"PO-Revision-Date: 2014-10-17 14:06+0100\n"
"POT-Creation-Date: 2014-11-06 08:16+0000\n"
"PO-Revision-Date: 2014-11-06 09:17+0100\n"
"Last-Translator: Alfredo <alfredodelafuente@avanzosc.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -128,6 +128,11 @@ msgstr "Creado el"
msgid "Date"
msgstr "Fecha"
#. module: quality_control
#: help:qc.test,message_last_post:0
msgid "Date of the last message posted on the record."
msgstr "Fecha del último mensaje publicado en el registro."
#. module: quality_control
#: view:qc.test:quality_control.qc_test_form_view
#: selection:qc.test,state:0
@@ -135,12 +140,13 @@ msgid "Draft"
msgstr "Borrador"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,enabled:0
msgid "Enabled"
msgstr "Activado"
msgstr "Habilitado"
#. module: quality_control
#: code:addons/quality_control/models/quality_control.py:233
#: code:addons/quality_control/models/quality_control.py:227
#: constraint:qc.test.template.category:0
#, python-format
msgid "Error ! You can not create recursive categories."
@@ -157,6 +163,11 @@ msgstr "Nota externa"
msgid "Fill With Correct Values"
msgstr "Pre-rellenar con valores correctos"
#. module: quality_control
#: field:qc.test,message_follower_ids:0
msgid "Followers"
msgstr "Seguidores"
#. module: quality_control
#: field:qc.test.template.category,complete_name:0
msgid "Full Name"
@@ -168,6 +179,16 @@ msgstr "Descripción completa"
msgid "Generic"
msgstr "Genérico"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
msgid "Group By..."
msgstr "Agrupar Por..."
#. module: quality_control
#: help:qc.test,message_summary:0
msgid "Holds the Chatter summary (number of messages, ...). This summary is directly in html format in order to be inserted in kanban views."
msgstr "Contiene el resumen del chater (número de mensajes, ...). Este resumen viene directamente en formato HTML para poder ser insertado en vistas kanban."
#. module: quality_control
#: field:qc.posible.value,id:0
#: field:qc.proof,id:0
@@ -188,12 +209,27 @@ msgstr "ID"
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á activa significa que no se puede mover desde el estado \"Calidad Correcta\" or \"Calidad Errónea\"."
#. module: quality_control
#: help:qc.test,message_unread:0
msgid "If checked new messages require your attention."
msgstr "Si se marca nuevos mensajes requieren su atención."
#. module: quality_control
#: view:qc.test:quality_control.qc_test_form_view
#: field:qc.test,test_internal_note:0
msgid "Internal Note"
msgstr "Nota interna"
#. module: quality_control
#: field:qc.test,message_is_follower:0
msgid "Is a Follower"
msgstr "Es un seguidor"
#. module: quality_control
#: field:qc.test,message_last_post:0
msgid "Last Message Date"
msgstr "Última fecha mensaje"
#. module: quality_control
#: field:qc.posible.value,write_uid:0
#: field:qc.proof,write_uid:0
@@ -245,6 +281,16 @@ msgstr "Max"
msgid "Maximum valid value if it is a quantitative proof."
msgstr "El valor máximo válido si se trata de una prueba cuantitativa."
#. module: quality_control
#: field:qc.test,message_ids:0
msgid "Messages"
msgstr "Mensajes"
#. module: quality_control
#: help:qc.test,message_ids:0
msgid "Messages and communication history"
msgstr "Mensajes e historial de la comunicación"
#. module: quality_control
#: model:ir.model,name:quality_control.model_qc_proof_method
#: model:ir.ui.menu,name:quality_control.qc_proof_method_menu
@@ -333,13 +379,6 @@ msgstr "Sinónimo pregunta"
msgid "Proof Type"
msgstr "Tipo pregunta"
#. module: quality_control
#: code:addons/quality_control/models/quality_control.py:136
#: sql_constraint:qc.proof:0
#, python-format
msgid "Proof-Method relation alredy exists!"
msgstr "La relación pregunta-método ya existe!"
#. module: quality_control
#: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value"
@@ -387,6 +426,7 @@ msgid "Question"
msgstr "Pregunta"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,object_id:0
msgid "Reference"
msgstr "Referencia"
@@ -406,6 +446,11 @@ msgstr "Referenciado"
msgid "Related"
msgstr "Relacionado"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
msgid "Search Test"
msgstr "Buscar test"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_set_template_wizard_form
#: view:qc.test.set.template.wizard:quality_control.view_qc_test_set_template_wizard_form
@@ -418,20 +463,27 @@ msgid "Sequence"
msgstr "Secuencia"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,state:0
msgid "State"
msgstr "Estado"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,success:0
msgid "Success"
msgstr "Correcto"
msgstr "Éxito"
#. module: quality_control
#: field:qc.test.line,success:0
msgid "Success?"
msgstr "¿Correcto?"
#. module: quality_control
#: field:qc.test,message_summary:0
msgid "Summary"
msgstr "Resumen"
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_proof_synonym
msgid "Synonym"
@@ -447,6 +499,7 @@ msgstr "Sinónimos"
#. module: quality_control
#: view:qc.test:quality_control.qc_test_form_view
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test.set.template.wizard,test_template_id:0
msgid "Template"
msgstr "Plantilla"
@@ -580,6 +633,11 @@ msgstr "Disparador"
msgid "Type"
msgstr "Tipo"
#. module: quality_control
#: field:qc.test,message_unread:0
msgid "Unread Messages"
msgstr "Mensajes no leidos."
#. module: quality_control
#: help:qc.test.line,uom_id:0
msgid "UoM for minimum and maximum values if it is a quantitative proof."

View File

@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-10-13 13:00+0000\n"
"PO-Revision-Date: 2014-10-13 13:00+0000\n"
"POT-Creation-Date: 2014-11-06 08:15+0000\n"
"PO-Revision-Date: 2014-11-06 08:15+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -128,6 +128,11 @@ msgstr ""
msgid "Date"
msgstr ""
#. module: quality_control
#: help:qc.test,message_last_post:0
msgid "Date of the last message posted on the record."
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_form_view
#: selection:qc.test,state:0
@@ -135,12 +140,13 @@ msgid "Draft"
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,enabled:0
msgid "Enabled"
msgstr ""
#. module: quality_control
#: code:addons/quality_control/models/quality_control.py:233
#: code:addons/quality_control/models/quality_control.py:227
#: constraint:qc.test.template.category:0
#, python-format
msgid "Error ! You can not create recursive categories."
@@ -157,6 +163,11 @@ msgstr ""
msgid "Fill With Correct Values"
msgstr ""
#. module: quality_control
#: field:qc.test,message_follower_ids:0
msgid "Followers"
msgstr ""
#. module: quality_control
#: field:qc.test.template.category,complete_name:0
msgid "Full Name"
@@ -168,6 +179,16 @@ msgstr ""
msgid "Generic"
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
msgid "Group By..."
msgstr ""
#. module: quality_control
#: help:qc.test,message_summary:0
msgid "Holds the Chatter summary (number of messages, ...). This summary is directly in html format in order to be inserted in kanban views."
msgstr ""
#. module: quality_control
#: field:qc.posible.value,id:0
#: field:qc.proof,id:0
@@ -188,12 +209,27 @@ msgstr ""
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
#: help:qc.test,message_unread:0
msgid "If checked new messages require your attention."
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_form_view
#: field:qc.test,test_internal_note:0
msgid "Internal Note"
msgstr ""
#. module: quality_control
#: field:qc.test,message_is_follower:0
msgid "Is a Follower"
msgstr ""
#. module: quality_control
#: field:qc.test,message_last_post:0
msgid "Last Message Date"
msgstr ""
#. module: quality_control
#: field:qc.posible.value,write_uid:0
#: field:qc.proof,write_uid:0
@@ -245,6 +281,16 @@ msgstr ""
msgid "Maximum valid value if it is a quantitative proof."
msgstr ""
#. module: quality_control
#: field:qc.test,message_ids:0
msgid "Messages"
msgstr ""
#. module: quality_control
#: help:qc.test,message_ids:0
msgid "Messages and communication history"
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
@@ -333,13 +379,6 @@ msgstr ""
msgid "Proof Type"
msgstr ""
#. module: quality_control
#: code:addons/quality_control/models/quality_control.py:136
#: sql_constraint:qc.proof:0
#, python-format
msgid "Proof-Method relation alredy exists!"
msgstr ""
#. module: quality_control
#: field:qc.test.line,actual_value_ql:0
msgid "Ql.Value"
@@ -387,6 +426,7 @@ msgid "Question"
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,object_id:0
msgid "Reference"
msgstr ""
@@ -406,6 +446,11 @@ msgstr ""
msgid "Related"
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
msgid "Search Test"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_qc_test_set_template_wizard_form
#: view:qc.test.set.template.wizard:quality_control.view_qc_test_set_template_wizard_form
@@ -418,11 +463,13 @@ msgid "Sequence"
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,state:0
msgid "State"
msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test,success:0
msgid "Success"
msgstr ""
@@ -432,6 +479,11 @@ msgstr ""
msgid "Success?"
msgstr ""
#. module: quality_control
#: field:qc.test,message_summary:0
msgid "Summary"
msgstr ""
#. module: quality_control
#: model:ir.actions.act_window,name:quality_control.action_proof_synonym
msgid "Synonym"
@@ -447,6 +499,7 @@ msgstr ""
#. module: quality_control
#: view:qc.test:quality_control.qc_test_form_view
#: view:qc.test:quality_control.qc_test_search_view
#: field:qc.test.set.template.wizard,test_template_id:0
msgid "Template"
msgstr ""
@@ -580,6 +633,11 @@ msgstr ""
msgid "Type"
msgstr ""
#. module: quality_control
#: field:qc.test,message_unread:0
msgid "Unread Messages"
msgstr ""
#. module: quality_control
#: help:qc.test.line,uom_id:0
msgid "UoM for minimum and maximum values if it is a quantitative proof."

View File

@@ -263,12 +263,9 @@ class QcTestTemplate(orm.Model):
def _default_name(self, cr, uid, context=None):
if context and context.get('reference_model', False):
id = context.get('reference_id')
if not id:
id = context.get('active_id')
if id:
if 'reference_id' in context:
source = self.pool[context['reference_model']].browse(
cr, uid, id, context=context)
cr, uid, context.get('active_id'), context=context)
if hasattr(source, 'name'):
return source.name
@@ -356,6 +353,7 @@ class QcTest(orm.Model):
This model contains an instance of a test template.
"""
_name = 'qc.test'
_inherit = ['mail.thread', 'ir.needaction_mixin']
def _success(self, cr, uid, ids, field_name, arg, context=None):
result = {}
@@ -444,14 +442,14 @@ class QcTest(orm.Model):
'enabled': True,
}
def copy(self, cr, uid, id, default=None, context=None):
def copy(self, cr, uid, copy_id, default=None, context=None):
if context is None:
context = {}
if default is None:
default = {}
default['name'] = time.strftime('%Y-%m-%d %H:%M:%S')
return super(QcTest, self).copy(cr, uid, id, default, context=context)
return super(QcTest, self).copy(cr, uid, copy_id, default,
context=context)
def create(self, cr, uid, datas, context=None):
if context and context.get('reference_model', False):
@@ -485,19 +483,19 @@ class QcTest(orm.Model):
context = {}
test_obj = self.pool['qc.test']
test_line_obj = self.pool['qc.test.line']
for id in ids:
test_obj.write(cr, uid, id, {
'test_template_id': template_id
}, context)
test = test_obj.browse(cr, uid, id, context=context)
for test_id in ids:
test_obj.write(cr, uid, test_id, {'test_template_id': template_id},
context)
test = test_obj.browse(cr, uid, test_id, context=context)
if len(test.test_line_ids) > 0:
test_line_obj.unlink(cr, uid,
[x.id for x in test.test_line_ids],
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)
if test_lines:
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):

View File

@@ -406,6 +406,10 @@
</group>
</footer>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>

View File

@@ -40,10 +40,10 @@ class QcTestWizard(orm.TransientModel):
_name = 'qc.test.set.template.wizard'
def _default_test_template_id(self, cr, uid, context=None):
id = context.get('active_id', False)
test = self.pool['qc.test'].browse(cr, uid, id, context=context)
ids = self.pool['qc.test.template'].search(cr, uid, [('object_id', '=',
test.object_id)],
test = self.pool['qc.test'].browse(
cr, uid, context.get('active_id', False), context=context)
cond = [('object_id', '=', test.object_id.id)]
ids = self.pool['qc.test.template'].search(cr, uid, cond,
context=context)
return ids and ids[0] or False