From fce63d9bce2f4bccf2278b7fd7099c0848059a65 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 20 Nov 2015 23:42:48 +0100 Subject: [PATCH] [IMP] mrp_operations_time_control: Some labels --- .../i18n/mrp_operations_time_control.pot | 199 ------------------ .../models/operation_time.py | 2 +- .../views/mrp_production_view.xml | 12 +- .../views/operation_time_view.xml | 4 +- 4 files changed, 8 insertions(+), 209 deletions(-) delete mode 100644 mrp_operations_time_control/i18n/mrp_operations_time_control.pot diff --git a/mrp_operations_time_control/i18n/mrp_operations_time_control.pot b/mrp_operations_time_control/i18n/mrp_operations_time_control.pot deleted file mode 100644 index ece85e5c0..000000000 --- a/mrp_operations_time_control/i18n/mrp_operations_time_control.pot +++ /dev/null @@ -1,199 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_operations_time_control -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0rc1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-09-17 10:16+0000\n" -"PO-Revision-Date: 2014-09-17 10:16+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: mrp_operations_time_control -#: view:mrp.work.order.produce:mrp_operations_time_control.view_mrp_product_produce_wizard -msgid "Cancel" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.work.order.produce:mrp_operations_time_control.view_mrp_product_produce_wizard -msgid "Confirm" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.work.order.produce:mrp_operations_time_control.view_mrp_product_produce_wizard -msgid "Consume Lines" -msgstr "" - -#. module: mrp_operations_time_control -#: selection:mrp.work.order.produce,mode:0 -msgid "Consume Only" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,create_uid:0 -msgid "Created by" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,create_date:0 -msgid "Created on" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_tree_view -msgid "Finished" -msgstr "" - -#. module: mrp_operations_time_control -#: view:operation.time.line:mrp_operations_time_control.view_operation_time_lines_search -msgid "Group By..." -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,id:0 -msgid "ID" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_form_view -msgid "Information" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,write_uid:0 -msgid "Last Updated by" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,write_date:0 -msgid "Last Updated on" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,lot_id:0 -msgid "Lot" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,mode:0 -msgid "Mode" -msgstr "" - -#. module: mrp_operations_time_control -#: model:ir.actions.act_window,name:mrp_operations_time_control.operation_time_lines_action -#: model:ir.ui.menu,name:mrp_operations_time_control.menu_operation_time_lines_action -msgid "Operation Time Lines" -msgstr "" - -#. module: mrp_operations_time_control -#: view:operation.time.line:mrp_operations_time_control.operation_time_lines_form_view -#: view:operation.time.line:mrp_operations_time_control.operation_time_lines_tree_view -msgid "Operation time lines" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_tree_view -msgid "Pending" -msgstr "" - -#. module: mrp_operations_time_control -#: model:ir.actions.act_window,name:mrp_operations_time_control.act_mrp_work_order_produce -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_form_view -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_tree_view -#: view:mrp.work.order.produce:mrp_operations_time_control.view_mrp_product_produce_wizard -msgid "Produce" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,product_id:0 -msgid "Product" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_form_view -msgid "Product Lines" -msgstr "" - -#. module: mrp_operations_time_control -#: model:ir.model,name:mrp_operations_time_control.model_mrp_work_order_produce -msgid "Product Produce" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_form_view -msgid "Product to Produce" -msgstr "" - -#. module: mrp_operations_time_control -#: view:operation.time.line:mrp_operations_time_control.view_operation_time_lines_search -msgid "Production Order" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,consume_lines:0 -msgid "Products Consumed" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_tree_view -msgid "Resume" -msgstr "" - -#. module: mrp_operations_time_control -#: view:operation.time.line:mrp_operations_time_control.view_operation_time_lines_search -msgid "Search Operation Time Lines" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,product_qty:0 -msgid "Select Quantity" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_tree_view -msgid "Set Draft" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_tree_view -msgid "Start" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.work.order.produce:mrp_operations_time_control.view_mrp_product_produce_wizard -msgid "To Consume" -msgstr "" - -#. module: mrp_operations_time_control -#: field:mrp.work.order.produce,track_production:0 -msgid "Track production" -msgstr "" - -#. module: mrp_operations_time_control -#: view:mrp.production.workcenter.line:mrp_operations_time_control.operation_time_form_view -#: view:operation.time.line:mrp_operations_time_control.operation_time_lines_tree_view -msgid "Uptime" -msgstr "" - -#. module: mrp_operations_time_control -#: view:operation.time.line:mrp_operations_time_control.view_operation_time_lines_search -msgid "User" -msgstr "" - -#. module: mrp_operations_time_control -#: model:ir.model,name:mrp_operations_time_control.model_mrp_production_workcenter_line -#: view:operation.time.line:mrp_operations_time_control.view_operation_time_lines_search -msgid "Work Order" -msgstr "" - -#. module: mrp_operations_time_control -#: view:operation.time.line:mrp_operations_time_control.operation_time_lines_form_view -msgid "hours" -msgstr "" - diff --git a/mrp_operations_time_control/models/operation_time.py b/mrp_operations_time_control/models/operation_time.py index 667366e0d..82c4a158b 100644 --- a/mrp_operations_time_control/models/operation_time.py +++ b/mrp_operations_time_control/models/operation_time.py @@ -68,7 +68,7 @@ class OperationTimeLine(models.Model): start_date = fields.Datetime(string='Start Date') end_date = fields.Datetime(string='End Date') operation_time = fields.Many2one('mrp.production.workcenter.line') - uptime = fields.Float(string='Uptime', compute='operation_uptime', + uptime = fields.Float(string='Machine up time', compute='operation_uptime', store=True, digits=(12, 6)) production = fields.Many2one('mrp.production', related='operation_time.production_id', diff --git a/mrp_operations_time_control/views/mrp_production_view.xml b/mrp_operations_time_control/views/mrp_production_view.xml index c6941d8f5..f9e41a0ce 100644 --- a/mrp_operations_time_control/views/mrp_production_view.xml +++ b/mrp_operations_time_control/views/mrp_production_view.xml @@ -3,19 +3,17 @@ - mrp.production.operation.time.form - + mrp.production.operation.time.form mrp.production - + - - + + + diff --git a/mrp_operations_time_control/views/operation_time_view.xml b/mrp_operations_time_control/views/operation_time_view.xml index 7ccad9540..3087798a3 100644 --- a/mrp_operations_time_control/views/operation_time_view.xml +++ b/mrp_operations_time_control/views/operation_time_view.xml @@ -26,7 +26,7 @@ ref="mrp_operations.mrp_production_workcenter_form_view_inherit" /> - + @@ -80,7 +80,7 @@ - +