diff --git a/mrp_operations_extension/i18n/es.po b/mrp_operations_extension/i18n/es.po index 24fa42bad..5e75485fd 100644 --- a/mrp_operations_extension/i18n/es.po +++ b/mrp_operations_extension/i18n/es.po @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-03-03 13:44+0000\n" -"PO-Revision-Date: 2015-03-03 14:53+0100\n" +"PO-Revision-Date: 2015-03-12 09:36+0100\n" "Last-Translator: Alfredo \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -36,7 +36,7 @@ msgstr "Al menos una orden de trabajo debe tener marcada 'Producir aquí'" #. module: mrp_operations_extension #: model:ir.model,name:mrp_operations_extension.model_mrp_bom msgid "Bill of Material" -msgstr "Lista de material" +msgstr "Lista de materiales" #. module: mrp_operations_extension #: view:mrp.work.order.produce:mrp_operations_extension.view_mrp_product_consume_wizard @@ -161,7 +161,7 @@ msgstr "Producto final a existencias" #: view:mrp.production:mrp_operations_extension.mrp_production_operation_buttons_form_view #: view:mrp.production.workcenter.line:mrp_operations_extension.workcenter_line_inh_form_view msgid "Force Reservation" -msgstr "Forzar reservas" +msgstr "Forzar reserva" #. module: mrp_operations_extension #: field:mrp.operation.workcenter,id:0 @@ -223,7 +223,7 @@ msgstr "Operadores de fabricación" #. module: mrp_operations_extension #: model:ir.model,name:mrp_operations_extension.model_mrp_production msgid "Manufacturing Order" -msgstr "Órden de producción" +msgstr "Orden de producción" #. module: mrp_operations_extension #: view:mrp.production:mrp_operations_extension.mrp_production_form_view_inh @@ -234,13 +234,13 @@ msgstr "Materiales" #: code:addons/mrp_operations_extension/models/mrp_production.py:142 #, python-format msgid "Missing materials" -msgstr "Esperando materiales" +msgstr "Faltan materiales" #. module: mrp_operations_extension #: code:addons/mrp_operations_extension/models/mrp_production.py:143 #, python-format msgid "Missing materials to start the production" -msgstr "Esperando materiales para empezar la producción" +msgstr "Faltan materiales para empezar la producción" #. module: mrp_operations_extension #: field:mrp.work.order.produce,mode:0 @@ -250,7 +250,7 @@ msgstr "Modo" #. module: mrp_operations_extension #: field:mrp.production.workcenter.line,move_lines:0 msgid "Moves" -msgstr "Moves" +msgstr "Movimientos" #. module: mrp_operations_extension #: field:mrp.routing.operation,name:0 @@ -324,7 +324,7 @@ msgstr "Producto de coste de pre-operación" #: field:mrp.routing,previous_operations_finished:0 #: field:mrp.routing.workcenter,previous_operations_finished:0 msgid "Previous operations finished" -msgstr "Operaciones previsas terminadas" +msgstr "Operaciones previas terminadas" #. module: mrp_operations_extension #: code:addons/mrp_operations_extension/models/mrp_production.py:139 @@ -362,7 +362,7 @@ msgstr "Líneas de producto" #. module: mrp_operations_extension #: model:ir.model,name:mrp_operations_extension.model_mrp_product_produce_line msgid "Product Produce Consume lines" -msgstr "Líneas de consumo de los producto producidos" +msgstr "Líneas de consumo de los productos producidos" #. module: mrp_operations_extension #: view:mrp.production:mrp_operations_extension.mrp_production_form_view_inh @@ -373,7 +373,7 @@ msgstr "Producto a producir" #. module: mrp_operations_extension #: model:ir.model,name:mrp_operations_extension.model_mrp_production_product_line msgid "Production Scheduled Product" -msgstr "Fabricación planificada producto" +msgstr "Producto planificado de producción" #. module: mrp_operations_extension #: field:mrp.work.order.produce,consume_lines:0 diff --git a/mrp_operations_extension/models/mrp_production.py b/mrp_operations_extension/models/mrp_production.py index f0e330e45..c9a9d4897 100644 --- a/mrp_operations_extension/models/mrp_production.py +++ b/mrp_operations_extension/models/mrp_production.py @@ -23,14 +23,7 @@ class MrpProduction(models.Model): _inherit = 'mrp.production' def _get_minor_sequence_operation(self, operations): - if operations and len(operations) > 1: - minor_operation = operations[0] - for operation in operations[1:]: - if minor_operation.sequence > operation: - minor_operation = operation - return minor_operation - else: - return operations and operations[0] + return min(operations, key=lambda x: x.sequence) @api.model def _moves_assigned(self): @@ -135,10 +128,8 @@ class MrpProductionWorkcenterLine(models.Model): def action_start_working(self): if self.routing_wc_line.previous_operations_finished and \ not self.check_minor_sequence_operations(): - raise exceptions.Warning(_("Not finished operations"), - _("Previous operations not finished")) + raise exceptions.Warning(_("Previous operations not finished")) if not self.check_operation_moves_state('assigned'): raise exceptions.Warning( - _("Missing materials"), _("Missing materials to start the production")) return super(MrpProductionWorkcenterLine, self).action_start_working()