From b1386f3a72aabd9d5416b25ec5fe35be5e434dbc Mon Sep 17 00:00:00 2001 From: alfredo Date: Tue, 21 Oct 2014 15:34:21 +0200 Subject: [PATCH 01/20] [ADD] mrp_production_estimated_cost --- .../README.rst | 24 ++ .../__init__.py | 19 ++ .../__openerp__.py | 50 +++ .../data/analytic_journal_data.xml | 26 ++ .../fictitious_mrp_production_sequence.xml | 15 + .../i18n/es.po | 267 ++++++++++++++++ .../mrp_production_project_estimated_cost.pot | 267 ++++++++++++++++ .../models/__init__.py | 22 ++ .../models/account_analytic_line.py | 28 ++ .../models/mrp_bom.py | 30 ++ .../models/mrp_production.py | 286 ++++++++++++++++++ .../models/product.py | 28 ++ .../models/project_project.py | 26 ++ .../views/account_analytic_line_view.xml | 53 ++++ .../views/mrp_bom_view.xml | 30 ++ .../views/mrp_production_view.xml | 110 +++++++ .../views/product_view.xml | 41 +++ .../wizard/__init__.py | 18 ++ .../wizard/wiz_create_fictitious_of.py | 56 ++++ .../wizard/wiz_create_fictitious_of_view.xml | 45 +++ 20 files changed, 1441 insertions(+) create mode 100644 mrp_production_project_estimated_cost/README.rst create mode 100644 mrp_production_project_estimated_cost/__init__.py create mode 100644 mrp_production_project_estimated_cost/__openerp__.py create mode 100644 mrp_production_project_estimated_cost/data/analytic_journal_data.xml create mode 100644 mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml create mode 100644 mrp_production_project_estimated_cost/i18n/es.po create mode 100644 mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot create mode 100644 mrp_production_project_estimated_cost/models/__init__.py create mode 100644 mrp_production_project_estimated_cost/models/account_analytic_line.py create mode 100644 mrp_production_project_estimated_cost/models/mrp_bom.py create mode 100644 mrp_production_project_estimated_cost/models/mrp_production.py create mode 100644 mrp_production_project_estimated_cost/models/product.py create mode 100644 mrp_production_project_estimated_cost/models/project_project.py create mode 100644 mrp_production_project_estimated_cost/views/account_analytic_line_view.xml create mode 100644 mrp_production_project_estimated_cost/views/mrp_bom_view.xml create mode 100644 mrp_production_project_estimated_cost/views/mrp_production_view.xml create mode 100644 mrp_production_project_estimated_cost/views/product_view.xml create mode 100644 mrp_production_project_estimated_cost/wizard/__init__.py create mode 100644 mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py create mode 100644 mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml diff --git a/mrp_production_project_estimated_cost/README.rst b/mrp_production_project_estimated_cost/README.rst new file mode 100644 index 000000000..5bf2d33c9 --- /dev/null +++ b/mrp_production_project_estimated_cost/README.rst @@ -0,0 +1,24 @@ +Estimated costs in manufacturing orders +======================================= +With this module when a production order is confirmed, some analytic lines +are automatically generated, in order to estimate the costs of the production +order. + +At the same time, the estimated allocation of materials, machinery operators +and costs will be made. + +In materials case, an analytic line will be generated for each material to +consume in the order. For operators imputation in each operation, it will +be generated one line, so that the number of lines will be equal to the number +of operators in the operation. In machines case, there will be created two +analytic lines for each operation in the associated routing, one per hour cost +and the other per cycle cost. + +It has also created the new menu option "Fictitious Manufacturing Orders to +estimate costs". When a new MO is created and the new field "active" is equal +to false, the MO will be considered as a fictional MO, what with can not be +confirmed, and only is valid to estimate costs. To estimate costs will have to +press the "Compute data" button in tab "Work Orders". These fictitious MO will +have a different sequence. +From the product form may create a fictitious MO. + diff --git a/mrp_production_project_estimated_cost/__init__.py b/mrp_production_project_estimated_cost/__init__.py new file mode 100644 index 000000000..4270b1259 --- /dev/null +++ b/mrp_production_project_estimated_cost/__init__.py @@ -0,0 +1,19 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import models +from . import wizard diff --git a/mrp_production_project_estimated_cost/__openerp__.py b/mrp_production_project_estimated_cost/__openerp__.py new file mode 100644 index 000000000..87703d2cf --- /dev/null +++ b/mrp_production_project_estimated_cost/__openerp__.py @@ -0,0 +1,50 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +{ + "name": "Estimated costs in manufacturing orders", + "version": "1.0", + "category": "Manufacturing", + "author": "OdooMRP team," + "AvanzOSC," + "Serv. Tecnol. Avanzados - Pedro M. Baeza", + "website": "http://www.odoomrp.com", + "contributors": [ + "Alfredo de la Fuente ", + "Pedro M. Baeza ", + "Ana Juaristi ", + "Oihane Crucelaegui ", + ], + "depends": [ + "product", + "analytic", + "mrp", + "mrp_operations_extension", + "mrp_project_link", + ], + "data": [ + "data/analytic_journal_data.xml", + "data/fictitious_mrp_production_sequence.xml", + "wizard/wiz_create_fictitious_of_view.xml", + "views/account_analytic_line_view.xml", + "views/mrp_production_view.xml", + "views/product_view.xml", + "views/mrp_bom_view.xml" + ], + "installable": True, +} diff --git a/mrp_production_project_estimated_cost/data/analytic_journal_data.xml b/mrp_production_project_estimated_cost/data/analytic_journal_data.xml new file mode 100644 index 000000000..56a9f588d --- /dev/null +++ b/mrp_production_project_estimated_cost/data/analytic_journal_data.xml @@ -0,0 +1,26 @@ + + + + + + Materials + MAT + general + True + + + + Operators + OPE + general + True + + + + Machines + MACH + general + True + + + diff --git a/mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml b/mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml new file mode 100644 index 000000000..c6091eeb9 --- /dev/null +++ b/mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml @@ -0,0 +1,15 @@ + + + + + Fictitious MRP Production + fictitious.mrp.production + + + Fictitious MRP Production + fictitious.mrp.production + + FMO + + + diff --git a/mrp_production_project_estimated_cost/i18n/es.po b/mrp_production_project_estimated_cost/i18n/es.po new file mode 100644 index 000000000..a52ff6d15 --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/es.po @@ -0,0 +1,267 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-02-24 15:19+0000\n" +"PO-Revision-Date: 2015-02-24 16:25+0100\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" +"Plural-Forms: \n" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 +#, python-format +msgid "%s-%s" +msgstr "%s-%s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:187 +#, python-format +msgid "%s-%s Post-operation" +msgstr "%s-%s Post-operación" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:178 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "%s-%s Pre-operación" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:238 +#, python-format +msgid "%s-%s-%s" +msgstr "%s-%s-%s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:200 +#, python-format +msgid "%s-%s-C-%s" +msgstr "%s-%s-C-%s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:215 +#, python-format +msgid "%s-%s-H-%s" +msgstr "%s-%s-H-%s" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Activa" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "Línea analítica" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "Creación automática" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Lista de material" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Cancelar" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "Líneas de costes" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "Crear costes estimados" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "Crea OF ficticia" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "CrearOF ficticia" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Creado el" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,partner:0 +msgid "Customer" +msgstr "Cliente" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Estim. Costs" +msgstr "Costes estim." + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "Coste medio estimado" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "Coste medio estimado por unidad" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "Costes estimados" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "Coste estándar estimado" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "Coste estándar estimado por unidad" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "Costes estimados desde orden de producción" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Extra Information" +msgstr "Información extra" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "Órdenes de producción ficiticias para estimar costes" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Contabilidad general" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Cost on Product" +msgstr "Cargar coste en el producto" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "Cargar coste en el producto" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "Coste estándar manual" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Órden de producción" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Costes de fabricación" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:164 +#, python-format +msgid "One consume line has no product assigned." +msgstr "Una de las líneas de consumo no tiene producto asignado." + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Plantilla de producto" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "Información de la fabricación" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Proyecto" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "Fecha programada" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:198 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:213 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:233 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "Esta máquina no tiene un producto asignado: %s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:257 +#, python-format +msgid "You must define Income account in the product \"%s\", or in the product category" +msgstr "Debe definir la cuenta de entrada en el producto \"%s\", o en la categoría del producto" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:261 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Debe definir una cuenta analítica para esta MO: %s" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "o" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" + diff --git a/mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot b/mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot new file mode 100644 index 000000000..8ca00b888 --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot @@ -0,0 +1,267 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-02-24 15:18+0000\n" +"PO-Revision-Date: 2015-02-24 15:18+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_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:187 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:178 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:238 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:200 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:215 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,partner:0 +msgid "Customer" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Estim. Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Extra Information" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Cost on Product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:164 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:198 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:213 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:233 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:257 +#, python-format +msgid "You must define Income account in the product \"%s\", or in the product category" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:261 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" + diff --git a/mrp_production_project_estimated_cost/models/__init__.py b/mrp_production_project_estimated_cost/models/__init__.py new file mode 100644 index 000000000..7db71fe6f --- /dev/null +++ b/mrp_production_project_estimated_cost/models/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import account_analytic_line +from . import mrp_production +from . import product +from . import project_project +from . import mrp_bom diff --git a/mrp_production_project_estimated_cost/models/account_analytic_line.py b/mrp_production_project_estimated_cost/models/account_analytic_line.py new file mode 100644 index 000000000..9f545a822 --- /dev/null +++ b/mrp_production_project_estimated_cost/models/account_analytic_line.py @@ -0,0 +1,28 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from openerp import models, fields +import openerp.addons.decimal_precision as dp + + +class AccountAnalyticLine(models.Model): + _inherit = 'account.analytic.line' + + estim_std_cost = fields.Float(string='Estimated Standard Cost', + digits=dp.get_precision('Product Price')) + estim_avg_cost = fields.Float(string='Estimated Average Cost', + digits=dp.get_precision('Product Price')) diff --git a/mrp_production_project_estimated_cost/models/mrp_bom.py b/mrp_production_project_estimated_cost/models/mrp_bom.py new file mode 100644 index 000000000..3e55eca2d --- /dev/null +++ b/mrp_production_project_estimated_cost/models/mrp_bom.py @@ -0,0 +1,30 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +from openerp import models, fields + + +class MrpBom(models.Model): + + _inherit = "mrp.bom" + + product_standard_price = fields.Float(string="Product Standard Price", + related="product_id.standard_price") + product_manual_standard_price = fields.Float( + string="Product Manual Standard Price", + related="product_id.manual_standard_cost") diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py new file mode 100644 index 000000000..8f422ef1d --- /dev/null +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -0,0 +1,286 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from openerp import models, fields, api, exceptions, _ + + +class MrpProduction(models.Model): + _inherit = 'mrp.production' + + @api.one + @api.depends('analytic_line_ids', 'analytic_line_ids.estim_std_cost', + 'product_qty') + def get_unit_std_cost(self): + self.std_cost = sum([line.estim_std_cost for line in + self.analytic_line_ids]) + self.unit_std_cost = self.std_cost / self.product_qty + + @api.one + @api.depends('analytic_line_ids', 'analytic_line_ids.estim_avg_cost', + 'product_qty') + def get_unit_avg_cost(self): + self.avg_cost = sum([line.estim_avg_cost for line in + self.analytic_line_ids]) + self.unit_avg_cost = self.avg_cost / self.product_qty + + @api.one + def _count_created_estimated_cost(self): + analytic_line_obj = self.env['account.analytic.line'] + cond = [('mrp_production_id', '=', self.id), + ('task_id', '=', False)] + analytic_lines = analytic_line_obj.search(cond) + self.created_estimated_cost = len(analytic_lines) + + active = fields.Boolean( + 'Active', default=lambda self: self.env.context.get('default_active', + True)) + name = fields.Char( + string='Referencen', required=True, readonly=True, copy="False", + states={'draft': [('readonly', False)]}, default="/") + created_estimated_cost = fields.Integer( + compute="_count_created_estimated_cost", string="Estimated Costs") + std_cost = fields.Float(string="Estimated Standard Cost", + compute="get_unit_std_cost", store=True) + avg_cost = fields.Float(string="Estimated Average Cost", + compute="get_unit_avg_cost", store=True) + unit_std_cost = fields.Float(string="Estimated Standard Unit Cost", + compute="get_unit_std_cost", store=True) + unit_avg_cost = fields.Float(string="Estimated Average Unit Cost", + compute="get_unit_avg_cost", store=True) + product_manual_cost = fields.Float( + string="Product Manual Cost", + related="product_id.manual_standard_cost") + product_cost = fields.Float(string="Product Cost", + related="product_id.standard_price") + analytic_line_ids = fields.One2many("account.analytic.line", + "mrp_production_id", + string="Cost Lines") + + @api.model + def create(self, values): + sequence_obj = self.pool['ir.sequence'] + if 'active' not in values or values['active']: + values['active'] = True + values['name'] = sequence_obj.get(self._cr, self._uid, + 'mrp.production') + else: + values['name'] = sequence_obj.get(self._cr, self._uid, + 'fictitious.mrp.production') + return super(MrpProduction, self).create(values) + + @api.multi + def unlink(self): + analytic_line_obj = self.env['account.analytic.line'] + for production in self: + cond = [('mrp_production_id', '=', production.id)] + analytic_line_obj.search(cond).unlink() + if production.project_id.automatic_creation: + production.project_id.unlink() + analytic_lines = analytic_line_obj.search( + [('account_id', '=', production.analytic_account_id.id)]) + if not analytic_lines: + production.analytic_account_id.unlink() + return super(MrpProduction, self).unlink() + + @api.multi + def action_confirm(self): + res = super(MrpProduction, self).action_confirm() + self.calculate_production_estimated_cost() + return res + + @api.multi + def action_compute(self, properties=None): + project_obj = self.env['project.project'] + res = super(MrpProduction, self).action_compute(properties=properties) + for record in self: + if not record.project_id: + project = project_obj.search([('name', '=', record.name)], + limit=1) + if not project: + project_vals = {'name': record.name, + 'use_tasks': True, + 'use_timesheets': True, + 'use_issues': True, + 'automatic_creation': True, + } + project = project_obj.create(project_vals) + record.project_id = project.id + record.analytic_account_id = project.analytic_account_id.id + return res + + @api.multi + def action_show_estimated_costs(self): + self.ensure_one() + analytic_line_obj = self.env['account.analytic.line'] + id2 = self.env.ref( + 'mrp_production_project_estimated_cost.estimated_cost_list_view') + search_view = self.env.ref('mrp_project_link.account_analytic_line' + '_mrp_search_view') + analytic_line_list = analytic_line_obj.search( + [('mrp_production_id', '=', self.id), + ('task_id', '=', False)]) + self = self.with_context(search_default_group_production=1, + search_default_group_workorder=1, + search_default_group_journal=1) + return { + 'view_type': 'form', + 'view_mode': 'tree', + 'res_model': 'account.analytic.line', + 'views': [(id2.id, 'tree')], + 'search_view_id': search_view.id, + 'view_id': False, + 'type': 'ir.actions.act_window', + 'target': 'new', + 'domain': "[('id','in',[" + + ','.join(map(str, analytic_line_list.ids)) + "])]", + 'context': self.env.context + } + + @api.multi + def calculate_production_estimated_cost(self): + analytic_line_obj = self.env['account.analytic.line'] + for record in self: + cond = [('mrp_production_id', '=', record.id)] + analytic_line_obj.search(cond).unlink() + journal = record.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_materials', False) + for line in record.product_lines: + if not line.product_id: + raise exceptions.Warning( + _("One consume line has no product assigned.")) + name = _('%s-%s' % (record.name, line.work_order.name or '')) + vals = record._prepare_estim_cost_analytic_line( + journal, name, record, line.work_order, line.product_id, + line.product_qty) + analytic_line_obj.create(vals) + journal = record.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_machines', False) + for line in record.workcenter_lines: + op_wc_lines = line.routing_wc_line.op_wc_lines + wc = op_wc_lines.filtered(lambda r: r.workcenter == + line.workcenter_id) or \ + line.workcenter_id + if (wc.time_start and line.workcenter_id.pre_op_product): + name = (_('%s-%s Pre-operation') % + (record.name, line.workcenter_id.name)) + vals = record._prepare_estim_cost_analytic_line( + journal, name, record, line, + line.workcenter_id.pre_op_product, wc.time_start) + amount = line.workcenter_id.pre_op_product.standard_price + vals['amount'] = amount + analytic_line_obj.create(vals) + if (wc.time_stop and line.workcenter_id.post_op_product): + name = (_('%s-%s Post-operation') % + (record.name, line.workcenter_id.name)) + vals = record._prepare_estim_cost_analytic_line( + journal, name, record, line, + line.workcenter_id.post_op_product, wc.time_stop) + amount = line.workcenter_id.post_op_product.standard_price + vals['amount'] = amount + analytic_line_obj.create(vals) + if line.cycle and line.workcenter_id.costs_cycle: + if not line.workcenter_id.product_id: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % line.workcenter_id.name) + name = (_('%s-%s-C-%s') % + (record.name, line.routing_wc_line.operation.code, + line.workcenter_id.name)) + vals = record._prepare_estim_cost_analytic_line( + journal, name, record, line, + line.workcenter_id.product_id, line.cycle) + cost = line.workcenter_id.costs_cycle + vals['estim_avg_cost'] = line.cycle * cost + vals['estim_std_cost'] = vals['estim_avg_cost'] + analytic_line_obj.create(vals) + if line.hour and line.workcenter_id.costs_hour: + if not line.workcenter_id.product_id: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % line.workcenter_id.name) + name = (_('%s-%s-H-%s') % + (record.name, line.routing_wc_line.operation.code, + line.workcenter_id.name)) + hour = line.hour + if wc.time_stop and not line.workcenter_id.post_op_product: + hour += wc.time_stop + if wc.time_start and not line.workcenter_id.pre_op_product: + hour += wc.time_start + vals = record._prepare_estim_cost_analytic_line( + journal, name, record, line, + line.workcenter_id.product_id, hour) + cost = line.workcenter_id.costs_hour + vals['estim_avg_cost'] = hour * cost + vals['estim_std_cost'] = vals['estim_avg_cost'] + analytic_line_obj.create(vals) + if wc.op_number > 0 and line.hour: + if not line.workcenter_id.product_id: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % line.workcenter_id.name) + journal_wk = record.env.ref( + 'mrp_production_project_estimated_cost.analytic_' + 'journal_operators', False) + name = (_('%s-%s-%s') % + (record.name, line.routing_wc_line.operation.code, + line.workcenter_id.product_id.name)) + vals = record._prepare_estim_cost_analytic_line( + journal_wk, name, record, line, + line.workcenter_id.product_id, + line.hour * wc.op_number) + vals['estim_avg_cost'] = (wc.op_number * wc.op_avg_cost * + line.hour) + vals['estim_std_cost'] = vals['estim_avg_cost'] + analytic_line_obj.create(vals) + + def _prepare_estim_cost_analytic_line(self, journal, name, production, + workorder, product, qty): + analytic_line_obj = self.env['account.analytic.line'] + general_account = (product.property_account_income or + product.categ_id.property_account_income_categ or + False) + if not general_account: + raise exceptions.Warning( + _('You must define Income account in the product "%s", or in' + ' the product category') % (product.name)) + if not self.analytic_account_id: + raise exceptions.Warning( + _('You must define one Analytic Account for this MO: %s') % + (production.name)) + vals = { + 'name': name, + 'mrp_production_id': production.id, + 'workorder': workorder.id, + 'account_id': self.analytic_account_id.id, + 'journal_id': journal.id, + 'user_id': self._uid, + 'date': analytic_line_obj._get_default_date(), + 'product_id': product.id, + 'unit_amount': qty, + 'product_uom_id': product.uom_id.id, + 'general_account_id': general_account.id, + 'estim_std_cost': qty * product.manual_standard_cost, + 'estim_avg_cost': qty * product.standard_price, + } + return vals + + @api.multi + def load_product_std_price(self): + for record in self: + product = record.product_id + if record.unit_std_cost: + product.manual_standard_cost = record.unit_std_cost diff --git a/mrp_production_project_estimated_cost/models/product.py b/mrp_production_project_estimated_cost/models/product.py new file mode 100644 index 000000000..8c2306e39 --- /dev/null +++ b/mrp_production_project_estimated_cost/models/product.py @@ -0,0 +1,28 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +from openerp import models, fields +import openerp.addons.decimal_precision as dp + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + manual_standard_cost = fields.Float( + string='Manual Standard Cost', digits=dp.get_precision('Product Price') + ) diff --git a/mrp_production_project_estimated_cost/models/project_project.py b/mrp_production_project_estimated_cost/models/project_project.py new file mode 100644 index 000000000..1c5c05013 --- /dev/null +++ b/mrp_production_project_estimated_cost/models/project_project.py @@ -0,0 +1,26 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published +# by the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## + +from openerp import models, fields + + +class ProjectProject(models.Model): + + _inherit = 'project.project' + + automatic_creation = fields.Boolean('Automatic Creation') diff --git a/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml b/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml new file mode 100644 index 000000000..95c9f7cd4 --- /dev/null +++ b/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml @@ -0,0 +1,53 @@ + + + + + view.account.analytic.line.form.inh.estimatedcost + account.analytic.line + + + + + + + + + + + + + view.account.analytic.line.tree.inh.estimatedcost + account.analytic.line + + + + + + + + + + + estimated.cost.list.view + account.analytic.line + + + + + + + + + + + + + + + + + + + + + diff --git a/mrp_production_project_estimated_cost/views/mrp_bom_view.xml b/mrp_production_project_estimated_cost/views/mrp_bom_view.xml new file mode 100644 index 000000000..256462531 --- /dev/null +++ b/mrp_production_project_estimated_cost/views/mrp_bom_view.xml @@ -0,0 +1,30 @@ + + + + + mrp.bom.tree.parent.view + mrp.bom + + + + + + + + + + mrp.bom.product.tree.view + mrp.bom + + + + + + + + + + + + + diff --git a/mrp_production_project_estimated_cost/views/mrp_production_view.xml b/mrp_production_project_estimated_cost/views/mrp_production_view.xml new file mode 100644 index 000000000..2ff2db9c2 --- /dev/null +++ b/mrp_production_project_estimated_cost/views/mrp_production_view.xml @@ -0,0 +1,110 @@ + + + + + mrp.production.project.form.view.inh.estimatedcost + mrp.production + + + + + + + + + + mrp.production.form.view.inh.estimatedcost + mrp.production + + + + + + + + + + + + + + + + + + + + + + + + + mrp.production.tree.view.inh.estimatedcost + mrp.production + + + + + + + + + + + Estimated costs from production order + account.analytic.line + tree,form + [('mrp_production_id','=',active_id),('task_id','=',False)] + + + + mrp.production.buttons + mrp.production + + +
+
+
+
+
+
+ + + mrp.production.buttons.inh.estimatedcost + mrp.production + + +
+ +
+
+
+ + + Fictitious Manufacturing Orders to estimate costs + ir.actions.act_window + mrp.production + form + tree,form,calendar,graph,gantt + + + {'default_active': False} + [('active','=',False)] + + + + +
+
diff --git a/mrp_production_project_estimated_cost/views/product_view.xml b/mrp_production_project_estimated_cost/views/product_view.xml new file mode 100644 index 000000000..ffabc299a --- /dev/null +++ b/mrp_production_project_estimated_cost/views/product_view.xml @@ -0,0 +1,41 @@ + + + + + product.template.form.view.inh.estimatedcost + product.template + + + + + + + + + product.product.form.view.bom.button.inh.estimatedcost + product.product + + + + + + + product.template.form.view.bom.button.inh.estimatedcost + product.template + + + + + + + diff --git a/mrp_production_project_estimated_cost/wizard/__init__.py b/mrp_production_project_estimated_cost/wizard/__init__.py new file mode 100644 index 000000000..3b124e3fe --- /dev/null +++ b/mrp_production_project_estimated_cost/wizard/__init__.py @@ -0,0 +1,18 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +############################################################################## +from . import wiz_create_fictitious_of diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py new file mode 100644 index 000000000..9d2811d8e --- /dev/null +++ b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +############################################################################## +# For copyright and license notices, see __openerp__.py file in root directory +############################################################################## +from openerp import models, fields, api + + +class WizCreateFictitiousOf(models.TransientModel): + _name = "wiz.create.fictitious.of" + + date_planned = fields.Datetime( + string='Scheduled Date', required=True, default=fields.Datetime.now()) + load_on_product = fields.Boolean("Load cost on product") + project_id = fields.Many2one("project.project", string="Project") + + @api.multi + def do_create_fictitious_of(self): + production_obj = self.env['mrp.production'] + product_obj = self.env['product.product'] + self.ensure_one() + active_ids = self.env.context['active_ids'] + active_model = self.env.context['active_model'] + production_list = [] + if active_model == 'product.template': + cond = [('product_tmpl_id', 'in', active_ids)] + product_list = product_obj.search(cond) + else: + product_list = product_obj.browse(active_ids) + for product in product_list: + vals = {'product_id': product.id, + 'product_template': product.product_tmpl_id.id, + 'product_qty': 1, + 'date_planned': self.date_planned, + 'user_id': self._uid, + 'active': False, + 'product_uom': product.uom_id.id, + 'project_id': self.project_id.id + } + new_production = production_obj.create(vals) + new_production.action_compute() + production_list.append(new_production.id) + if self.load_on_product: + for production_id in production_list: + try: + production = production_obj.browse(production_id) + production.calculate_production_estimated_cost() + production.load_product_std_price() + except: + continue + return {'view_type': 'form', + 'view_mode': 'tree,form', + 'res_model': 'mrp.production', + 'type': 'ir.actions.act_window', + 'domain': "[('id','in'," + str(production_list) + "), " + "('active','=',False)]" + } diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml new file mode 100644 index 000000000..04f7535cb --- /dev/null +++ b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml @@ -0,0 +1,45 @@ + + + + + wiz.create.fictitious.of.view + wiz.create.fictitious.of + +
+ + + + + +
+
+
+
+
+ + Create fictitious MO + wiz.create.fictitious.of + form + form + + new + + + +
+
From c26c328fd888c75484863ca48fd7df01653c957c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Mozeti=C4=8D?= Date: Tue, 14 Apr 2015 08:22:50 +0200 Subject: [PATCH 02/20] Slovene translations added --- .../i18n/sl.po | 274 ++++++++++++++++++ 1 file changed, 274 insertions(+) create mode 100644 mrp_production_project_estimated_cost/i18n/sl.po diff --git a/mrp_production_project_estimated_cost/i18n/sl.po b/mrp_production_project_estimated_cost/i18n/sl.po new file mode 100644 index 000000000..45880904d --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/sl.po @@ -0,0 +1,274 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +# Matjaž Mozetič , 2015. +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-02-24 15:18+0000\n" +"PO-Revision-Date: 2015-04-14 08:14+0200\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" +"Language: sl\n" +"X-Generator: Lokalize 1.5\n" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 +#, python-format +msgid "%s-%s" +msgstr "%s-%s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:187 +#, python-format +msgid "%s-%s Post-operation" +msgstr "%s-%s po operaciji" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:178 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "%s-%s pred operacijo" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:238 +#, python-format +msgid "%s-%s-%s" +msgstr "%s-%s-%s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:200 +#, python-format +msgid "%s-%s-C-%s" +msgstr "%s-%s-C-%s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:215 +#, python-format +msgid "%s-%s-H-%s" +msgstr "%s-%s-H-%s" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Aktivno" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "Analitična postavka" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "Samodejno ustvarjanje" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Kosovnica" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Preklic" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "Stroškovne postavke" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "Ustvari oceno stroškov" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "Ustvari navidezni proizvodni nalog" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "Ustvari navidezni proizvodni nalog" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Ustvaril" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,partner:0 +msgid "Customer" +msgstr "Kupec" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Estim. Costs" +msgstr "Ocena stroškov" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "Ocena povprečnih stroškov" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "Ocena povprečnega stroška enote" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "Ocena stroškov" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "Ocena stroška standardnega" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "Ocena stroška standardne enote" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "Ocena stroškov iz proizvodnega naloga" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Extra Information" +msgstr "Dodatne informacije" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "Navidezni proizvodni nalogi za oceno stroškov" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Glavna knjiga" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Zadnjič posodobil" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Cost on Product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "Standardni strošek ročno" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Proizvodni nalog" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Proizvodni stroški" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:164 +#, python-format +msgid "One consume line has no product assigned." +msgstr "Ena postavka porabe nima dodeljenega proizvoda." + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Predloga proizvoda" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "Informacije o proizvodnji" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Projekt" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "Načrtovani datum" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:198 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:213 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:233 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "Vsaj ta delovni center nima proizvoda: %s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:257 +#, python-format +msgid "" +"You must define Income account in the product \"%s\", or in the product " +"category" +msgstr "" +"Za proizvod \"%s\", ali kategorijo proizvoda morate določiti konto prihodkov" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:261 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Potrebno je določiti analitični konto za proizvodni nalog: %s" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "ali" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" + + From 12ff139a024311d163eade0d0c7f382db0087f7b Mon Sep 17 00:00:00 2001 From: oihane Date: Wed, 15 Apr 2015 10:22:05 +0200 Subject: [PATCH 03/20] [FIX] Not taking PK as sequential code --- .../models/mrp_production.py | 36 +++++++++---------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index 8f422ef1d..e8c26be62 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -48,9 +48,7 @@ class MrpProduction(models.Model): active = fields.Boolean( 'Active', default=lambda self: self.env.context.get('default_active', True)) - name = fields.Char( - string='Referencen', required=True, readonly=True, copy="False", - states={'draft': [('readonly', False)]}, default="/") + name = fields.Char(default="/") created_estimated_cost = fields.Integer( compute="_count_created_estimated_cost", string="Estimated Costs") std_cost = fields.Float(string="Estimated Standard Cost", @@ -64,22 +62,21 @@ class MrpProduction(models.Model): product_manual_cost = fields.Float( string="Product Manual Cost", related="product_id.manual_standard_cost") - product_cost = fields.Float(string="Product Cost", - related="product_id.standard_price") - analytic_line_ids = fields.One2many("account.analytic.line", - "mrp_production_id", - string="Cost Lines") + product_cost = fields.Float( + string="Product Cost", related="product_id.standard_price") + analytic_line_ids = fields.One2many( + comodel_name="account.analytic.line", inverse_name="mrp_production_id", + string="Cost Lines") @api.model def create(self, values): - sequence_obj = self.pool['ir.sequence'] + sequence_obj = self.env['ir.sequence'] if 'active' not in values or values['active']: values['active'] = True - values['name'] = sequence_obj.get(self._cr, self._uid, - 'mrp.production') + if values.get('name', '/') == '/': + values['name'] = sequence_obj.get('mrp.production') else: - values['name'] = sequence_obj.get(self._cr, self._uid, - 'fictitious.mrp.production') + values['name'] = sequence_obj.get('fictitious.mrp.production') return super(MrpProduction, self).create(values) @api.multi @@ -111,12 +108,13 @@ class MrpProduction(models.Model): project = project_obj.search([('name', '=', record.name)], limit=1) if not project: - project_vals = {'name': record.name, - 'use_tasks': True, - 'use_timesheets': True, - 'use_issues': True, - 'automatic_creation': True, - } + project_vals = { + 'name': record.name, + 'use_tasks': True, + 'use_timesheets': True, + 'use_issues': True, + 'automatic_creation': True, + } project = project_obj.create(project_vals) record.project_id = project.id record.analytic_account_id = project.analytic_account_id.id From da972db6cedf43dfc2c4f14bb4b442cdeea8500f Mon Sep 17 00:00:00 2001 From: oihane Date: Wed, 15 Apr 2015 14:46:43 +0200 Subject: [PATCH 04/20] [MOD] First search MO name --- mrp_production_project_estimated_cost/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index e8c26be62..733dd6d0e 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -71,7 +71,7 @@ class MrpProduction(models.Model): @api.model def create(self, values): sequence_obj = self.env['ir.sequence'] - if 'active' not in values or values['active']: + if values.get('active', True): values['active'] = True if values.get('name', '/') == '/': values['name'] = sequence_obj.get('mrp.production') From 31589bb887e9e32c59a1d965c2a0256738b05800 Mon Sep 17 00:00:00 2001 From: Eric Caudal Date: Wed, 20 May 2015 01:40:42 +0200 Subject: [PATCH 05/20] [IMP] Improve some README files --- .../README.rst | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/mrp_production_project_estimated_cost/README.rst b/mrp_production_project_estimated_cost/README.rst index 5bf2d33c9..9964faa5a 100644 --- a/mrp_production_project_estimated_cost/README.rst +++ b/mrp_production_project_estimated_cost/README.rst @@ -1,24 +1,29 @@ Estimated costs in manufacturing orders ======================================= -With this module when a production order is confirmed, some analytic lines -are automatically generated, in order to estimate the costs of the production + +Thanks to this module, when a Manufacturing Order is confirmed, analytic lines +are automatically generated in order to estimate the costs of the production order. -At the same time, the estimated allocation of materials, machinery operators -and costs will be made. +At the same time, the estimated allocation of raw materials, machine operators +time and costs will be made as followed: -In materials case, an analytic line will be generated for each material to -consume in the order. For operators imputation in each operation, it will -be generated one line, so that the number of lines will be equal to the number -of operators in the operation. In machines case, there will be created two -analytic lines for each operation in the associated routing, one per hour cost -and the other per cycle cost. +* Raw Material cost: an analytic line will be generated for each material to + be consumed in the order. +* Operators time: One line will be generated for the time recorded by the + operators in each operation, so that the number of lines will be equal to + the number of operators in the operation. +* Cost associated to machines: two analytic lines for each operation will be + created in the associated routing, one for hourly cost and the other for per + cycle cost. -It has also created the new menu option "Fictitious Manufacturing Orders to -estimate costs". When a new MO is created and the new field "active" is equal -to false, the MO will be considered as a fictional MO, what with can not be -confirmed, and only is valid to estimate costs. To estimate costs will have to -press the "Compute data" button in tab "Work Orders". These fictitious MO will -have a different sequence. -From the product form may create a fictitious MO. +A new menu is available "Virtual Manufacturing Orders for cost estimation" +where the user can managed virtual MO: +* When a new MO is created and the new field "active" is false, the MO will be + considered virtual. It is only used for cost estimation and can not be + confirmed. +* To estimate the cost of the MO, the user has to press the button "Compute + data" in the tab "Work Orders". +* These virtual MO have a separate sequence number. +* The user can create a virtual MO directly from the product form. From 03cd3f889586e251c86796d515c4ff4e7e56fe7c Mon Sep 17 00:00:00 2001 From: agaldona Date: Thu, 28 May 2015 17:56:28 +0200 Subject: [PATCH 06/20] [ADD] product_variant_cost: Module for cost at variant level --- .../__openerp__.py | 1 + .../models/mrp_bom.py | 2 +- .../models/mrp_production.py | 143 ++++++++++-------- .../views/account_analytic_line_view.xml | 18 +++ .../views/mrp_production_view.xml | 8 +- .../wizard/wiz_create_fictitious_of.py | 18 ++- 6 files changed, 121 insertions(+), 69 deletions(-) diff --git a/mrp_production_project_estimated_cost/__openerp__.py b/mrp_production_project_estimated_cost/__openerp__.py index 87703d2cf..134022270 100644 --- a/mrp_production_project_estimated_cost/__openerp__.py +++ b/mrp_production_project_estimated_cost/__openerp__.py @@ -36,6 +36,7 @@ "mrp", "mrp_operations_extension", "mrp_project_link", + "product_variant_cost" ], "data": [ "data/analytic_journal_data.xml", diff --git a/mrp_production_project_estimated_cost/models/mrp_bom.py b/mrp_production_project_estimated_cost/models/mrp_bom.py index 3e55eca2d..6209cd794 100644 --- a/mrp_production_project_estimated_cost/models/mrp_bom.py +++ b/mrp_production_project_estimated_cost/models/mrp_bom.py @@ -24,7 +24,7 @@ class MrpBom(models.Model): _inherit = "mrp.bom" product_standard_price = fields.Float(string="Product Standard Price", - related="product_id.standard_price") + related="product_id.cost_price") product_manual_standard_price = fields.Float( string="Product Manual Standard Price", related="product_id.manual_standard_cost") diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index 733dd6d0e..d868a686b 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -63,7 +63,7 @@ class MrpProduction(models.Model): string="Product Manual Cost", related="product_id.manual_standard_cost") product_cost = fields.Float( - string="Product Cost", related="product_id.standard_price") + string="Product Cost", related="product_id.cost_price") analytic_line_ids = fields.One2many( comodel_name="account.analytic.line", inverse_name="mrp_production_id", string="Cost Lines") @@ -148,6 +148,39 @@ class MrpProduction(models.Model): 'context': self.env.context } + def _prepare_cost_analytic_line(self, journal, name, production, product, + general_account=None, workorder=None, + qty=1, amount=0, estim_std=0, estim_avg=0): + analytic_line_obj = self.env['account.analytic.line'] + property_obj = self.env['ir.property'] + if not general_account: + general_account = ( + product.property_account_income or + product.categ_id.property_account_income_categ or + property_obj.get('property_account_expense_categ', + 'product.category')) + if not self.analytic_account_id: + raise exceptions.Warning( + _('You must define one Analytic Account for this MO: %s') % + (production.name)) + vals = { + 'name': name, + 'mrp_production_id': production.id, + 'workorder': workorder and workorder.id or False, + 'account_id': self.analytic_account_id.id, + 'journal_id': journal.id, + 'user_id': self.env.uid, + 'date': analytic_line_obj._get_default_date(), + 'product_id': product and product.id or False, + 'unit_amount': qty, + 'amount': amount, + 'product_uom_id': product and product.uom_id.id or False, + 'general_account_id': general_account.id, + 'estim_std_cost': estim_std, + 'estim_avg_cost': estim_avg, + } + return vals + @api.multi def calculate_production_estimated_cost(self): analytic_line_obj = self.env['account.analytic.line'] @@ -161,9 +194,12 @@ class MrpProduction(models.Model): raise exceptions.Warning( _("One consume line has no product assigned.")) name = _('%s-%s' % (record.name, line.work_order.name or '')) - vals = record._prepare_estim_cost_analytic_line( - journal, name, record, line.work_order, line.product_id, - line.product_qty) + product = line.product_id + qty = line.product_qty + vals = record._prepare_cost_analytic_line( + journal, name, record, product, workorder=line.work_order, + qty=qty, estim_std=-(qty * product.manual_standard_cost), + estim_avg=-(qty * product.cost_price)) analytic_line_obj.create(vals) journal = record.env.ref('mrp_production_project_estimated_cost.' 'analytic_journal_machines', False) @@ -175,20 +211,26 @@ class MrpProduction(models.Model): if (wc.time_start and line.workcenter_id.pre_op_product): name = (_('%s-%s Pre-operation') % (record.name, line.workcenter_id.name)) - vals = record._prepare_estim_cost_analytic_line( - journal, name, record, line, - line.workcenter_id.pre_op_product, wc.time_start) - amount = line.workcenter_id.pre_op_product.standard_price - vals['amount'] = amount + product = line.workcenter_id.pre_op_product + amount = product.cost_price * wc.time_start + qty = wc.time_start + vals = record._prepare_cost_analytic_line( + journal, name, record, product, workorder=line, + qty=qty, amount=-amount, + estim_std=-(qty * product.manual_standard_cost), + estim_avg=-(amount)) analytic_line_obj.create(vals) if (wc.time_stop and line.workcenter_id.post_op_product): name = (_('%s-%s Post-operation') % (record.name, line.workcenter_id.name)) - vals = record._prepare_estim_cost_analytic_line( - journal, name, record, line, - line.workcenter_id.post_op_product, wc.time_stop) - amount = line.workcenter_id.post_op_product.standard_price - vals['amount'] = amount + product = line.workcenter_id.post_op_product + amount = product.cost_price * wc.time_stop + qty = wc.time_stop + vals = record._prepare_cost_analytic_line( + journal, name, record, product, workorder=line, + qty=qty, amount=-amount, + estim_std=-(qty * product.manual_standard_cost), + estim_avg=-(amount)) analytic_line_obj.create(vals) if line.cycle and line.workcenter_id.costs_cycle: if not line.workcenter_id.product_id: @@ -198,12 +240,12 @@ class MrpProduction(models.Model): name = (_('%s-%s-C-%s') % (record.name, line.routing_wc_line.operation.code, line.workcenter_id.name)) - vals = record._prepare_estim_cost_analytic_line( - journal, name, record, line, - line.workcenter_id.product_id, line.cycle) - cost = line.workcenter_id.costs_cycle - vals['estim_avg_cost'] = line.cycle * cost - vals['estim_std_cost'] = vals['estim_avg_cost'] + product = line.workcenter_id.product_id + estim_cost = -(line.workcenter_id.costs_cycle * line.cycle) + vals = record._prepare_cost_analytic_line( + journal, name, record, product, workorder=line, + qty=line.cycle, estim_std=estim_cost, + estim_avg=estim_cost) analytic_line_obj.create(vals) if line.hour and line.workcenter_id.costs_hour: if not line.workcenter_id.product_id: @@ -218,67 +260,38 @@ class MrpProduction(models.Model): hour += wc.time_stop if wc.time_start and not line.workcenter_id.pre_op_product: hour += wc.time_start - vals = record._prepare_estim_cost_analytic_line( - journal, name, record, line, - line.workcenter_id.product_id, hour) - cost = line.workcenter_id.costs_hour - vals['estim_avg_cost'] = hour * cost - vals['estim_std_cost'] = vals['estim_avg_cost'] + estim_cost = -(hour * line.workcenter_id.costs_hour) + vals = record._prepare_cost_analytic_line( + journal, name, record, line.workcenter_id.product_id, + workorder=line, qty=hour, + estim_std=estim_cost, estim_avg=estim_cost) analytic_line_obj.create(vals) if wc.op_number > 0 and line.hour: if not line.workcenter_id.product_id: raise exceptions.Warning( _("There is at least this workcenter without " "product: %s") % line.workcenter_id.name) - journal_wk = record.env.ref( + journal = record.env.ref( 'mrp_production_project_estimated_cost.analytic_' 'journal_operators', False) name = (_('%s-%s-%s') % (record.name, line.routing_wc_line.operation.code, line.workcenter_id.product_id.name)) - vals = record._prepare_estim_cost_analytic_line( - journal_wk, name, record, line, - line.workcenter_id.product_id, - line.hour * wc.op_number) - vals['estim_avg_cost'] = (wc.op_number * wc.op_avg_cost * - line.hour) - vals['estim_std_cost'] = vals['estim_avg_cost'] + estim_cost = -(wc.op_number * wc.op_avg_cost * line.hour) + qty = line.hour * wc.op_number + vals = record._prepare_cost_analytic_line( + journal, name, record, line.workcenter_id.product_id, + workorder=line, qty=qty, estim_std=estim_cost, + estim_avg=estim_cost) analytic_line_obj.create(vals) - def _prepare_estim_cost_analytic_line(self, journal, name, production, - workorder, product, qty): - analytic_line_obj = self.env['account.analytic.line'] - general_account = (product.property_account_income or - product.categ_id.property_account_income_categ or - False) - if not general_account: - raise exceptions.Warning( - _('You must define Income account in the product "%s", or in' - ' the product category') % (product.name)) - if not self.analytic_account_id: - raise exceptions.Warning( - _('You must define one Analytic Account for this MO: %s') % - (production.name)) - vals = { - 'name': name, - 'mrp_production_id': production.id, - 'workorder': workorder.id, - 'account_id': self.analytic_account_id.id, - 'journal_id': journal.id, - 'user_id': self._uid, - 'date': analytic_line_obj._get_default_date(), - 'product_id': product.id, - 'unit_amount': qty, - 'product_uom_id': product.uom_id.id, - 'general_account_id': general_account.id, - 'estim_std_cost': qty * product.manual_standard_cost, - 'estim_avg_cost': qty * product.standard_price, - } - return vals - @api.multi def load_product_std_price(self): for record in self: product = record.product_id if record.unit_std_cost: product.manual_standard_cost = record.unit_std_cost + + @api.multi + def _get_min_qty_for_production(self, routing=False): + return 1 diff --git a/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml b/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml index 95c9f7cd4..d658d458f 100644 --- a/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml +++ b/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml @@ -20,6 +20,9 @@ account.analytic.line + + + @@ -36,6 +39,7 @@ + @@ -49,5 +53,19 @@ + + Production Analytic Lines + ir.actions.act_window + account.analytic.line + form + tree,form + + {'default_mrp_production_id': active_id, + 'search_default_group_production': 1, + 'search_default_group_workorder': 1, + 'search_default_group_journal': 1} + [('mrp_production_id','=',active_id)] + + diff --git a/mrp_production_project_estimated_cost/views/mrp_production_view.xml b/mrp_production_project_estimated_cost/views/mrp_production_view.xml index 2ff2db9c2..214df2194 100644 --- a/mrp_production_project_estimated_cost/views/mrp_production_view.xml +++ b/mrp_production_project_estimated_cost/views/mrp_production_view.xml @@ -83,10 +83,16 @@
+
diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py index 9d2811d8e..613c96d81 100644 --- a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py +++ b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py @@ -9,7 +9,7 @@ class WizCreateFictitiousOf(models.TransientModel): _name = "wiz.create.fictitious.of" date_planned = fields.Datetime( - string='Scheduled Date', required=True, default=fields.Datetime.now()) + string='Scheduled Date', required=True, default=fields.Datetime.now) load_on_product = fields.Boolean("Load cost on product") project_id = fields.Many2one("project.project", string="Project") @@ -17,6 +17,7 @@ class WizCreateFictitiousOf(models.TransientModel): def do_create_fictitious_of(self): production_obj = self.env['mrp.production'] product_obj = self.env['product.product'] + routing_obj = self.env['mrp.routing'] self.ensure_one() active_ids = self.env.context['active_ids'] active_model = self.env.context['active_model'] @@ -34,8 +35,21 @@ class WizCreateFictitiousOf(models.TransientModel): 'user_id': self._uid, 'active': False, 'product_uom': product.uom_id.id, - 'project_id': self.project_id.id + 'project_id': self.project_id.id, + 'analytic_account_id': ( + self.project_id.analytic_account_id.id) } + prod_vals = production_obj.product_id_change(product.id, + 1)['value'] + vals.update(prod_vals) + if 'routing_id' in vals: + routing = routing_obj.browse(vals['routing_id']) + product_qty = production_obj._get_min_qty_for_production( + routing) + vals['product_qty'] = product_qty + prod_vals = production_obj.product_id_change( + product.id, product_qty)['value'] + vals.update(prod_vals) new_production = production_obj.create(vals) new_production.action_compute() production_list.append(new_production.id) From adf3fc0ef48c9aeb0d600f985bd361f0b3846b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Mozeti=C4=8D?= Date: Sun, 2 Aug 2015 08:42:13 +0200 Subject: [PATCH 07/20] Translations and templates sync and fixes --- .../i18n/sl.po | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mrp_production_project_estimated_cost/i18n/sl.po b/mrp_production_project_estimated_cost/i18n/sl.po index 45880904d..d9d5054d7 100644 --- a/mrp_production_project_estimated_cost/i18n/sl.po +++ b/mrp_production_project_estimated_cost/i18n/sl.po @@ -1,22 +1,22 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost +# * mrp_production_project_estimated_cost # # Matjaž Mozetič , 2015. msgid "" msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-02-24 15:18+0000\n" -"PO-Revision-Date: 2015-04-14 08:14+0200\n" -"Last-Translator: Matjaž Mozetič \n" +"POT-Creation-Date: 2015-08-02 08:18+0200\n" +"PO-Revision-Date: 2015-08-02 08:19+0200\n" +"Last-Translator: Matjaz Mozetic \n" "Language-Team: Slovenian \n" +"Language: sl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" +"Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -"Language: sl\n" -"X-Generator: Lokalize 1.5\n" +"X-Generator: Poedit 1.8.2\n" #. module: mrp_production_project_estimated_cost #: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 @@ -189,12 +189,12 @@ msgstr "Zadnjič posodobljeno" #. module: mrp_production_project_estimated_cost #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost msgid "Load Cost on Product" -msgstr "" +msgstr "Naloži strošek na proizvod" #. module: mrp_production_project_estimated_cost #: field:wiz.create.fictitious.of,load_on_product:0 msgid "Load cost on product" -msgstr "" +msgstr "Naloži strošek na proizvod" #. module: mrp_production_project_estimated_cost #: field:product.template,manual_standard_cost:0 @@ -270,5 +270,3 @@ msgstr "ali" #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" - - From e59097a1272d6e00f79fed808c8fab6617f3ba60 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 4 Sep 2015 01:10:34 +0200 Subject: [PATCH 08/20] [FIX/IMP] mrp_production_project_estimated_cost: Fix some calculations + refactor methods --- .../models/mrp_production.py | 248 +++++++++++------- 1 file changed, 146 insertions(+), 102 deletions(-) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index d868a686b..0cb02b2a9 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -148,9 +148,26 @@ class MrpProduction(models.Model): 'context': self.env.context } - def _prepare_cost_analytic_line(self, journal, name, production, product, - general_account=None, workorder=None, - qty=1, amount=0, estim_std=0, estim_avg=0): + @api.model + def _prepare_cost_analytic_line( + self, journal, name, production, product, general_account=None, + workorder=None, qty=1, std_cost=0, avg_cost=0): + """ + Prepare the vals for creating an analytic entry for stimated cost + :param journal: Journal of the entry + :param name: Name of the entry + :param production: Origin product + :param product: Product for the entry + :param general_account: General account for the entry + :param workorder: Origin workorder + :param qty: Quantity for the entry. This quantity will multiply both + standard and average costs for the entry costs. + :param std_cost: Cost for calculating estimated standard cost. If 0, + then product manual standard cost will be used. + :param avg_cost: Cost for calculating estimated average cost. If 0, + then product cost will be used. + :return: Dictionary with the analytic entry vals. + """ analytic_line_obj = self.env['account.analytic.line'] property_obj = self.env['ir.property'] if not general_account: @@ -159,11 +176,11 @@ class MrpProduction(models.Model): product.categ_id.property_account_income_categ or property_obj.get('property_account_expense_categ', 'product.category')) - if not self.analytic_account_id: + if not production.analytic_account_id: raise exceptions.Warning( _('You must define one Analytic Account for this MO: %s') % (production.name)) - vals = { + return { 'name': name, 'mrp_production_id': production.id, 'workorder': workorder and workorder.id or False, @@ -173,13 +190,121 @@ class MrpProduction(models.Model): 'date': analytic_line_obj._get_default_date(), 'product_id': product and product.id or False, 'unit_amount': qty, - 'amount': amount, - 'product_uom_id': product and product.uom_id.id or False, + 'amount': 0, + 'product_uom_id': product.uom_id.id, 'general_account_id': general_account.id, - 'estim_std_cost': estim_std, - 'estim_avg_cost': estim_avg, + 'estim_std_cost': -qty * (std_cost or + product.manual_standard_cost), + 'estim_avg_cost': -qty * (avg_cost or product.cost_price), } - return vals + + @api.model + def _create_material_estimated_cost(self, prod, product_line): + if not product_line.product_id: + raise exceptions.Warning( + _("One consume line has no product assigned.")) + journal = self.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_materials', False) + name = _('%s-%s' % (prod.name, product_line.work_order.name or '')) + product = product_line.product_id + qty = product_line.product_qty + vals = self._prepare_cost_analytic_line( + journal, name, prod, product, workorder=product_line.work_order, + qty=qty) + return self.env['account.analytic.line'].create(vals) + + @api.model + def _create_pre_operation_estimated_cost(self, prod, wc, workorder): + if (wc.time_start and workorder.workcenter_id.pre_op_product): + product = workorder.workcenter_id.pre_op_product + if not product: + raise exceptions.Warning( + _("Workcenter '%s' doesn't have pre-operation costing " + "product.") % workorder.workcenter_id.name) + journal = self.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_machines', False) + name = (_('%s-%s Pre-operation') % + (prod.name, workorder.workcenter_id.name)) + vals = self._prepare_cost_analytic_line( + journal, name, prod, product, workorder=workorder, + qty=wc.time_start) + return self.env['account.analytic.line'].create(vals) + + @api.model + def _create_post_operation_estimated_cost(self, prod, wc, workorder): + if (wc.time_stop and workorder.workcenter_id.post_op_product): + product = workorder.workcenter_id.post_op_product + if not product: + raise exceptions.Warning( + _("Workcenter '%s' doesn't have post-operation costing " + "product.") % workorder.workcenter_id.name) + journal = self.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_machines', False) + name = (_('%s-%s Post-operation') % + (prod.name, workorder.workcenter_id.name)) + vals = self._prepare_cost_analytic_line( + journal, name, prod, product, workorder=workorder, + qty=wc.time_stop) + return self.env['account.analytic.line'].create(vals) + + @api.model + def _create_worcenter_cycles_estimated_cost(self, prod, wc, workorder): + if workorder.cycle and workorder.workcenter_id.costs_cycle: + journal = prod.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_machines', False) + product = workorder.workcenter_id.product_id + if not product: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % workorder.workcenter_id.name) + name = (_('%s-%s-C-%s') % + (prod.name, workorder.routing_wc_line.operation.code, + workorder.workcenter_id.name)) + cost = workorder.workcenter_id.costs_cycle + vals = self._prepare_cost_analytic_line( + journal, name, prod, product, workorder=workorder, + qty=workorder.cycle, std_cost=cost, avg_cost=cost) + return self.env['account.analytic.line'].create(vals) + + @api.model + def _create_worcenter_hours_estimated_cost(self, prod, wc, workorder): + if workorder.hour and workorder.workcenter_id.costs_hour: + product = workorder.workcenter_id.product_id + if not product: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % workorder.workcenter_id.name) + journal = self.env.ref('mrp_production_project_estimated_cost.' + 'analytic_journal_machines', False) + name = (_('%s-%s-H-%s') % + (prod.name, workorder.routing_wc_line.operation.code, + workorder.workcenter_id.name)) + cost = workorder.workcenter_id.costs_hour + vals = self._prepare_cost_analytic_line( + journal, name, prod, product, workorder=workorder, + qty=workorder.hour, std_cost=cost, avg_cost=cost) + return self.env['account.analytic.line'].create(vals) + + @api.model + def _create_operators_estimated_cost(self, prod, wc, workorder): + if wc.op_number > 0 and workorder.hour: + product = workorder.workcenter_id.product_id + if not product: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % workorder.workcenter_id.name) + journal = self.env.ref( + 'mrp_production_project_estimated_cost.' + 'analytic_journal_operators', False) + name = (_('%s-%s-%s') % + (prod.name, workorder.routing_wc_line.operation.code, + product.name)) + cost = wc.op_avg_cost + qty = workorder.hour * wc.op_number + vals = self._prepare_cost_analytic_line( + journal, name, prod, product, workorder=workorder, qty=qty, + std_cost=cost, avg_cost=cost) + return self.env['account.analytic.line'].create(vals) @api.multi def calculate_production_estimated_cost(self): @@ -187,103 +312,22 @@ class MrpProduction(models.Model): for record in self: cond = [('mrp_production_id', '=', record.id)] analytic_line_obj.search(cond).unlink() - journal = record.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_materials', False) - for line in record.product_lines: - if not line.product_id: - raise exceptions.Warning( - _("One consume line has no product assigned.")) - name = _('%s-%s' % (record.name, line.work_order.name or '')) - product = line.product_id - qty = line.product_qty - vals = record._prepare_cost_analytic_line( - journal, name, record, product, workorder=line.work_order, - qty=qty, estim_std=-(qty * product.manual_standard_cost), - estim_avg=-(qty * product.cost_price)) - analytic_line_obj.create(vals) - journal = record.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_machines', False) + for product_line in record.product_lines: + self._create_material_estimated_cost( + self, record, product_line) for line in record.workcenter_lines: op_wc_lines = line.routing_wc_line.op_wc_lines wc = op_wc_lines.filtered(lambda r: r.workcenter == line.workcenter_id) or \ line.workcenter_id - if (wc.time_start and line.workcenter_id.pre_op_product): - name = (_('%s-%s Pre-operation') % - (record.name, line.workcenter_id.name)) - product = line.workcenter_id.pre_op_product - amount = product.cost_price * wc.time_start - qty = wc.time_start - vals = record._prepare_cost_analytic_line( - journal, name, record, product, workorder=line, - qty=qty, amount=-amount, - estim_std=-(qty * product.manual_standard_cost), - estim_avg=-(amount)) - analytic_line_obj.create(vals) - if (wc.time_stop and line.workcenter_id.post_op_product): - name = (_('%s-%s Post-operation') % - (record.name, line.workcenter_id.name)) - product = line.workcenter_id.post_op_product - amount = product.cost_price * wc.time_stop - qty = wc.time_stop - vals = record._prepare_cost_analytic_line( - journal, name, record, product, workorder=line, - qty=qty, amount=-amount, - estim_std=-(qty * product.manual_standard_cost), - estim_avg=-(amount)) - analytic_line_obj.create(vals) - if line.cycle and line.workcenter_id.costs_cycle: - if not line.workcenter_id.product_id: - raise exceptions.Warning( - _("There is at least this workcenter without " - "product: %s") % line.workcenter_id.name) - name = (_('%s-%s-C-%s') % - (record.name, line.routing_wc_line.operation.code, - line.workcenter_id.name)) - product = line.workcenter_id.product_id - estim_cost = -(line.workcenter_id.costs_cycle * line.cycle) - vals = record._prepare_cost_analytic_line( - journal, name, record, product, workorder=line, - qty=line.cycle, estim_std=estim_cost, - estim_avg=estim_cost) - analytic_line_obj.create(vals) - if line.hour and line.workcenter_id.costs_hour: - if not line.workcenter_id.product_id: - raise exceptions.Warning( - _("There is at least this workcenter without " - "product: %s") % line.workcenter_id.name) - name = (_('%s-%s-H-%s') % - (record.name, line.routing_wc_line.operation.code, - line.workcenter_id.name)) - hour = line.hour - if wc.time_stop and not line.workcenter_id.post_op_product: - hour += wc.time_stop - if wc.time_start and not line.workcenter_id.pre_op_product: - hour += wc.time_start - estim_cost = -(hour * line.workcenter_id.costs_hour) - vals = record._prepare_cost_analytic_line( - journal, name, record, line.workcenter_id.product_id, - workorder=line, qty=hour, - estim_std=estim_cost, estim_avg=estim_cost) - analytic_line_obj.create(vals) - if wc.op_number > 0 and line.hour: - if not line.workcenter_id.product_id: - raise exceptions.Warning( - _("There is at least this workcenter without " - "product: %s") % line.workcenter_id.name) - journal = record.env.ref( - 'mrp_production_project_estimated_cost.analytic_' - 'journal_operators', False) - name = (_('%s-%s-%s') % - (record.name, line.routing_wc_line.operation.code, - line.workcenter_id.product_id.name)) - estim_cost = -(wc.op_number * wc.op_avg_cost * line.hour) - qty = line.hour * wc.op_number - vals = record._prepare_cost_analytic_line( - journal, name, record, line.workcenter_id.product_id, - workorder=line, qty=qty, estim_std=estim_cost, - estim_avg=estim_cost) - analytic_line_obj.create(vals) + self._create_pre_operation_estimated_cost(record, wc, line) + self._create_post_operation_estimated_cost(record, wc, line) + done = self._create_worcenter_cycles_estimated_cost( + record, wc, line) + if not done: + self._create_worcenter_hours_estimated_cost( + record, wc, line) + self._create_operators_estimated_cost(record, wc, line) @api.multi def load_product_std_price(self): From 87752867fddd41ef74c7cdf3e0e932127b45a652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matja=C5=BE=20Mozeti=C4=8D?= Date: Thu, 10 Sep 2015 07:15:51 +0200 Subject: [PATCH 09/20] Fix typo in translation --- mrp_production_project_estimated_cost/i18n/sl.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mrp_production_project_estimated_cost/i18n/sl.po b/mrp_production_project_estimated_cost/i18n/sl.po index d9d5054d7..7cefad2f5 100644 --- a/mrp_production_project_estimated_cost/i18n/sl.po +++ b/mrp_production_project_estimated_cost/i18n/sl.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2015-08-02 08:18+0200\n" -"PO-Revision-Date: 2015-08-02 08:19+0200\n" +"PO-Revision-Date: 2015-09-09 19:12+0200\n" "Last-Translator: Matjaz Mozetic \n" "Language-Team: Slovenian \n" "Language: sl\n" @@ -16,7 +16,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -"X-Generator: Poedit 1.8.2\n" +"X-Generator: Poedit 1.8.4\n" #. module: mrp_production_project_estimated_cost #: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 @@ -143,7 +143,7 @@ msgstr "Ocena stroškov" #: field:account.analytic.line,estim_std_cost:0 #: field:mrp.production,std_cost:0 msgid "Estimated Standard Cost" -msgstr "Ocena stroška standardnega" +msgstr "Ocena standardnih stroškov" #. module: mrp_production_project_estimated_cost #: field:mrp.production,unit_std_cost:0 From 0233cc9a9968c85295c722c67416bf899769b2a2 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Thu, 10 Sep 2015 11:51:56 +0200 Subject: [PATCH 10/20] [FIX] Call _create_material_estimated_cost method without self --- mrp_production_project_estimated_cost/models/mrp_production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index 0cb02b2a9..ae5eedcce 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -314,7 +314,7 @@ class MrpProduction(models.Model): analytic_line_obj.search(cond).unlink() for product_line in record.product_lines: self._create_material_estimated_cost( - self, record, product_line) + record, product_line) for line in record.workcenter_lines: op_wc_lines = line.routing_wc_line.op_wc_lines wc = op_wc_lines.filtered(lambda r: r.workcenter == From 25041631f46595d8d9fb44852c9398b1b1cdd99a Mon Sep 17 00:00:00 2001 From: alfredoavanzosc Date: Thu, 10 Sep 2015 12:11:35 +0200 Subject: [PATCH 11/20] [IMP] mrp_production_project_estimated_cost: Show "Estimated Average Cost" field in mrp.production tree view. [IMP] mrp_production_real_cost: Show "Total Real Cost" field in mrp.production tree view. --- .../models/mrp_production.py | 4 ++-- .../views/mrp_production_view.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index ae5eedcce..0aecc3d4e 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -151,7 +151,7 @@ class MrpProduction(models.Model): @api.model def _prepare_cost_analytic_line( self, journal, name, production, product, general_account=None, - workorder=None, qty=1, std_cost=0, avg_cost=0): + workorder=None, qty=1, std_cost=0, avg_cost=0, amount=0): """ Prepare the vals for creating an analytic entry for stimated cost :param journal: Journal of the entry @@ -190,7 +190,7 @@ class MrpProduction(models.Model): 'date': analytic_line_obj._get_default_date(), 'product_id': product and product.id or False, 'unit_amount': qty, - 'amount': 0, + 'amount': amount, 'product_uom_id': product.uom_id.id, 'general_account_id': general_account.id, 'estim_std_cost': -qty * (std_cost or diff --git a/mrp_production_project_estimated_cost/views/mrp_production_view.xml b/mrp_production_project_estimated_cost/views/mrp_production_view.xml index 214df2194..72b797fde 100644 --- a/mrp_production_project_estimated_cost/views/mrp_production_view.xml +++ b/mrp_production_project_estimated_cost/views/mrp_production_view.xml @@ -52,6 +52,7 @@ + From 7b779c04b7779e1ad9952d37ad491abc6383df99 Mon Sep 17 00:00:00 2001 From: agaldona Date: Fri, 11 Sep 2015 11:51:59 +0200 Subject: [PATCH 12/20] [IMP] mrp_production_estimated_cost: load estimated cost in creation of Fictitious MO --- .../data/analytic_journal_data.xml | 6 +-- .../models/mrp_production.py | 37 ++++++++----------- .../views/mrp_production_view.xml | 37 ++++++++++++------- .../wizard/wiz_create_fictitious_of.py | 2 +- 4 files changed, 42 insertions(+), 40 deletions(-) diff --git a/mrp_production_project_estimated_cost/data/analytic_journal_data.xml b/mrp_production_project_estimated_cost/data/analytic_journal_data.xml index 56a9f588d..b081d3b6f 100644 --- a/mrp_production_project_estimated_cost/data/analytic_journal_data.xml +++ b/mrp_production_project_estimated_cost/data/analytic_journal_data.xml @@ -2,21 +2,21 @@ - + Materials MAT general True - + Operators OPE general True - + Machines MACH general diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index 0aecc3d4e..9f4463519 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -149,9 +149,9 @@ class MrpProduction(models.Model): } @api.model - def _prepare_cost_analytic_line( + def _prepare_estimated_cost_analytic_line( self, journal, name, production, product, general_account=None, - workorder=None, qty=1, std_cost=0, avg_cost=0, amount=0): + workorder=None, qty=1, std_cost=0, avg_cost=0): """ Prepare the vals for creating an analytic entry for stimated cost :param journal: Journal of the entry @@ -190,7 +190,7 @@ class MrpProduction(models.Model): 'date': analytic_line_obj._get_default_date(), 'product_id': product and product.id or False, 'unit_amount': qty, - 'amount': amount, + 'amount': 0, 'product_uom_id': product.uom_id.id, 'general_account_id': general_account.id, 'estim_std_cost': -qty * (std_cost or @@ -203,12 +203,11 @@ class MrpProduction(models.Model): if not product_line.product_id: raise exceptions.Warning( _("One consume line has no product assigned.")) - journal = self.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_materials', False) + journal = self.env.ref('mrp.analytic_journal_materials', False) name = _('%s-%s' % (prod.name, product_line.work_order.name or '')) product = product_line.product_id qty = product_line.product_qty - vals = self._prepare_cost_analytic_line( + vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=product_line.work_order, qty=qty) return self.env['account.analytic.line'].create(vals) @@ -221,11 +220,10 @@ class MrpProduction(models.Model): raise exceptions.Warning( _("Workcenter '%s' doesn't have pre-operation costing " "product.") % workorder.workcenter_id.name) - journal = self.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_machines', False) + journal = self.env.ref('mrp.analytic_journal_machines', False) name = (_('%s-%s Pre-operation') % (prod.name, workorder.workcenter_id.name)) - vals = self._prepare_cost_analytic_line( + vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, qty=wc.time_start) return self.env['account.analytic.line'].create(vals) @@ -238,11 +236,10 @@ class MrpProduction(models.Model): raise exceptions.Warning( _("Workcenter '%s' doesn't have post-operation costing " "product.") % workorder.workcenter_id.name) - journal = self.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_machines', False) + journal = self.env.ref('mrp.analytic_journal_machines', False) name = (_('%s-%s Post-operation') % (prod.name, workorder.workcenter_id.name)) - vals = self._prepare_cost_analytic_line( + vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, qty=wc.time_stop) return self.env['account.analytic.line'].create(vals) @@ -250,8 +247,7 @@ class MrpProduction(models.Model): @api.model def _create_worcenter_cycles_estimated_cost(self, prod, wc, workorder): if workorder.cycle and workorder.workcenter_id.costs_cycle: - journal = prod.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_machines', False) + journal = prod.env.ref('mrp.analytic_journal_machines', False) product = workorder.workcenter_id.product_id if not product: raise exceptions.Warning( @@ -261,7 +257,7 @@ class MrpProduction(models.Model): (prod.name, workorder.routing_wc_line.operation.code, workorder.workcenter_id.name)) cost = workorder.workcenter_id.costs_cycle - vals = self._prepare_cost_analytic_line( + vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, qty=workorder.cycle, std_cost=cost, avg_cost=cost) return self.env['account.analytic.line'].create(vals) @@ -274,13 +270,12 @@ class MrpProduction(models.Model): raise exceptions.Warning( _("There is at least this workcenter without " "product: %s") % workorder.workcenter_id.name) - journal = self.env.ref('mrp_production_project_estimated_cost.' - 'analytic_journal_machines', False) + journal = self.env.ref('mrp.analytic_journal_machines', False) name = (_('%s-%s-H-%s') % (prod.name, workorder.routing_wc_line.operation.code, workorder.workcenter_id.name)) cost = workorder.workcenter_id.costs_hour - vals = self._prepare_cost_analytic_line( + vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, qty=workorder.hour, std_cost=cost, avg_cost=cost) return self.env['account.analytic.line'].create(vals) @@ -293,15 +288,13 @@ class MrpProduction(models.Model): raise exceptions.Warning( _("There is at least this workcenter without " "product: %s") % workorder.workcenter_id.name) - journal = self.env.ref( - 'mrp_production_project_estimated_cost.' - 'analytic_journal_operators', False) + journal = self.env.ref('mrp.analytic_journal_operators', False) name = (_('%s-%s-%s') % (prod.name, workorder.routing_wc_line.operation.code, product.name)) cost = wc.op_avg_cost qty = workorder.hour * wc.op_number - vals = self._prepare_cost_analytic_line( + vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, qty=qty, std_cost=cost, avg_cost=cost) return self.env['account.analytic.line'].create(vals) diff --git a/mrp_production_project_estimated_cost/views/mrp_production_view.xml b/mrp_production_project_estimated_cost/views/mrp_production_view.xml index 72b797fde..268fb4751 100644 --- a/mrp_production_project_estimated_cost/views/mrp_production_view.xml +++ b/mrp_production_project_estimated_cost/views/mrp_production_view.xml @@ -12,10 +12,21 @@ + + mrp.production.form.view.costs + mrp.production + + + + + + + + mrp.production.form.view.inh.estimatedcost mrp.production - + - - - - - - - - - - - - + + + + + + - + + + + + diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py index 613c96d81..b294b476d 100644 --- a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py +++ b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py @@ -52,12 +52,12 @@ class WizCreateFictitiousOf(models.TransientModel): vals.update(prod_vals) new_production = production_obj.create(vals) new_production.action_compute() + new_production.calculate_production_estimated_cost() production_list.append(new_production.id) if self.load_on_product: for production_id in production_list: try: production = production_obj.browse(production_id) - production.calculate_production_estimated_cost() production.load_product_std_price() except: continue From 9304baf440489a068043dbb41df0ffbffdae94ed Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 9 Oct 2015 18:18:26 +0200 Subject: [PATCH 13/20] OCA Transbot updated translations from Transifex --- .../i18n/es.po | 90 +++--- .../i18n/fr.po | 279 ++++++++++++++++++ .../i18n/pt_BR.po | 279 ++++++++++++++++++ .../i18n/sl.po | 96 +++--- 4 files changed, 661 insertions(+), 83 deletions(-) create mode 100644 mrp_production_project_estimated_cost/i18n/fr.po create mode 100644 mrp_production_project_estimated_cost/i18n/pt_BR.po diff --git a/mrp_production_project_estimated_cost/i18n/es.po b/mrp_production_project_estimated_cost/i18n/es.po index a52ff6d15..dfd948f5e 100644 --- a/mrp_production_project_estimated_cost/i18n/es.po +++ b/mrp_production_project_estimated_cost/i18n/es.po @@ -1,52 +1,54 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# +# * mrp_production_project_estimated_cost +# +# Translators: msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: odoomrp-wip (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-02-24 15:19+0000\n" -"PO-Revision-Date: 2015-02-24 16:25+0100\n" -"Last-Translator: \n" -"Language-Team: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-10-09 10:50+0000\n" +"Last-Translator: Pedro M. Baeza \n" +"Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: \n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 #, python-format msgid "%s-%s" msgstr "%s-%s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:187 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 #, python-format msgid "%s-%s Post-operation" msgstr "%s-%s Post-operación" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:178 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 #, python-format msgid "%s-%s Pre-operation" msgstr "%s-%s Pre-operación" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:238 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 #, python-format msgid "%s-%s-%s" msgstr "%s-%s-%s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:200 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 #, python-format msgid "%s-%s-C-%s" msgstr "%s-%s-C-%s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:215 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 #, python-format msgid "%s-%s-H-%s" msgstr "%s-%s-H-%s" @@ -81,6 +83,11 @@ msgstr "Cancelar" msgid "Cost Lines" msgstr "Líneas de costes" +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + #. module: mrp_production_project_estimated_cost #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost msgid "Create Estimated Costs" @@ -100,6 +107,11 @@ msgstr "Crea OF ficticia" msgid "Create fictitious MO" msgstr "CrearOF ficticia" +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + #. module: mrp_production_project_estimated_cost #: field:wiz.create.fictitious.of,create_uid:0 msgid "Created by" @@ -110,16 +122,6 @@ msgstr "Creado por" msgid "Created on" msgstr "Creado el" -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,partner:0 -msgid "Customer" -msgstr "Cliente" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Estim. Costs" -msgstr "Costes estim." - #. module: mrp_production_project_estimated_cost #: field:account.analytic.line,estim_avg_cost:0 #: field:mrp.production,avg_cost:0 @@ -152,11 +154,6 @@ msgstr "Coste estándar estimado por unidad" msgid "Estimated costs from production order" msgstr "Costes estimados desde orden de producción" -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Extra Information" -msgstr "Información extra" - #. module: mrp_production_project_estimated_cost #: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action #: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action @@ -209,7 +206,7 @@ msgid "Manufacturing costs" msgstr "Costes de fabricación" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:164 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 #, python-format msgid "One consume line has no product assigned." msgstr "Una de las líneas de consumo no tiene producto asignado." @@ -219,6 +216,16 @@ msgstr "Una de las líneas de consumo no tiene producto asignado." msgid "Product Template" msgstr "Plantilla de producto" +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + #. module: mrp_production_project_estimated_cost #: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost msgid "Production Information" @@ -236,21 +243,27 @@ msgid "Scheduled Date" msgstr "Fecha programada" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:198 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:213 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:233 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 #, python-format msgid "There is at least this workcenter without product: %s" msgstr "Esta máquina no tiene un producto asignado: %s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:257 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 #, python-format -msgid "You must define Income account in the product \"%s\", or in the product category" -msgstr "Debe definir la cuenta de entrada en el producto \"%s\", o en la categoría del producto" +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:261 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 #, python-format msgid "You must define one Analytic Account for this MO: %s" msgstr "Debe definir una cuenta analítica para esta MO: %s" @@ -264,4 +277,3 @@ msgstr "o" #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" - diff --git a/mrp_production_project_estimated_cost/i18n/fr.po b/mrp_production_project_estimated_cost/i18n/fr.po new file mode 100644 index 000000000..97d10692f --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/fr.po @@ -0,0 +1,279 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-10-04 00:01+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: French (http://www.transifex.com/oca/odoomrp-wip-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Annuler" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Créé par" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Créé le" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "Id." + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Mis à jour par" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Mis à jour le" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Cost on Product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "ou" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/pt_BR.po b/mrp_production_project_estimated_cost/i18n/pt_BR.po new file mode 100644 index 000000000..8c037286c --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/pt_BR.po @@ -0,0 +1,279 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-10-09 03:39+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Ativo" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Lista de materiais" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Cancelar" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Criado por" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Criado em" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Última atualização por" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Última atualização em" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Cost on Product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Ordem de Produção" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Projeto" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "ou" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/sl.po b/mrp_production_project_estimated_cost/i18n/sl.po index 7cefad2f5..008556332 100644 --- a/mrp_production_project_estimated_cost/i18n/sl.po +++ b/mrp_production_project_estimated_cost/i18n/sl.po @@ -1,55 +1,55 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Matjaž Mozetič , 2015. +# * mrp_production_project_estimated_cost +# +# Translators: +# Matjaž Mozetič , 2015 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: odoomrp-wip (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-08-02 08:18+0200\n" -"PO-Revision-Date: 2015-09-09 19:12+0200\n" -"Last-Translator: Matjaz Mozetic \n" -"Language-Team: Slovenian \n" -"Language: sl\n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-10-04 00:01+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/sl/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: \n" -"X-Generator: Poedit 1.8.4\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 #, python-format msgid "%s-%s" msgstr "%s-%s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:187 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 #, python-format msgid "%s-%s Post-operation" msgstr "%s-%s po operaciji" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:178 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 #, python-format msgid "%s-%s Pre-operation" msgstr "%s-%s pred operacijo" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:238 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 #, python-format msgid "%s-%s-%s" msgstr "%s-%s-%s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:200 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 #, python-format msgid "%s-%s-C-%s" msgstr "%s-%s-C-%s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:215 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 #, python-format msgid "%s-%s-H-%s" msgstr "%s-%s-H-%s" @@ -84,6 +84,11 @@ msgstr "Preklic" msgid "Cost Lines" msgstr "Stroškovne postavke" +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "Analiza stroškov" + #. module: mrp_production_project_estimated_cost #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost msgid "Create Estimated Costs" @@ -103,6 +108,11 @@ msgstr "Ustvari navidezni proizvodni nalog" msgid "Create fictitious MO" msgstr "Ustvari navidezni proizvodni nalog" +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "Ustvari fiktiven proizvodni nalog" + #. module: mrp_production_project_estimated_cost #: field:wiz.create.fictitious.of,create_uid:0 msgid "Created by" @@ -113,16 +123,6 @@ msgstr "Ustvaril" msgid "Created on" msgstr "Ustvarjeno" -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,partner:0 -msgid "Customer" -msgstr "Kupec" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Estim. Costs" -msgstr "Ocena stroškov" - #. module: mrp_production_project_estimated_cost #: field:account.analytic.line,estim_avg_cost:0 #: field:mrp.production,avg_cost:0 @@ -155,11 +155,6 @@ msgstr "Ocena stroška standardne enote" msgid "Estimated costs from production order" msgstr "Ocena stroškov iz proizvodnega naloga" -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Extra Information" -msgstr "Dodatne informacije" - #. module: mrp_production_project_estimated_cost #: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action #: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action @@ -212,7 +207,7 @@ msgid "Manufacturing costs" msgstr "Proizvodni stroški" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:164 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 #, python-format msgid "One consume line has no product assigned." msgstr "Ena postavka porabe nima dodeljenega proizvoda." @@ -222,6 +217,16 @@ msgstr "Ena postavka porabe nima dodeljenega proizvoda." msgid "Product Template" msgstr "Predloga proizvoda" +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "Proizvodne analitične postavke" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "Proizvodni stroški" + #. module: mrp_production_project_estimated_cost #: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost msgid "Production Information" @@ -239,24 +244,27 @@ msgid "Scheduled Date" msgstr "Načrtovani datum" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:198 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:213 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:233 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 #, python-format msgid "There is at least this workcenter without product: %s" msgstr "Vsaj ta delovni center nima proizvoda: %s" #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:257 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 #, python-format -msgid "" -"You must define Income account in the product \"%s\", or in the product " -"category" -msgstr "" -"Za proizvod \"%s\", ali kategorijo proizvoda morate določiti konto prihodkov" +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "Delovni center '%s' nima po-operativnega stroškovnega proizvoda." #. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:261 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "Delovni center '%s' nima pred operativnega stroškovnega proizvoda." + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 #, python-format msgid "You must define one Analytic Account for this MO: %s" msgstr "Potrebno je določiti analitični konto za proizvodni nalog: %s" From 023932550442e467baa058b073fe084068f884ac Mon Sep 17 00:00:00 2001 From: agaldona Date: Fri, 9 Oct 2015 11:39:43 +0200 Subject: [PATCH 14/20] [IMP] mrp_production_estimated_cost: Cost load in positive + sumatory values --- .../models/mrp_production.py | 8 ++++---- .../views/account_analytic_line_view.xml | 8 ++++---- .../views/mrp_production_view.xml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index 9f4463519..25267486c 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -25,16 +25,16 @@ class MrpProduction(models.Model): @api.depends('analytic_line_ids', 'analytic_line_ids.estim_std_cost', 'product_qty') def get_unit_std_cost(self): - self.std_cost = sum([line.estim_std_cost for line in - self.analytic_line_ids]) + self.std_cost = -(sum([line.estim_std_cost for line in + self.analytic_line_ids])) self.unit_std_cost = self.std_cost / self.product_qty @api.one @api.depends('analytic_line_ids', 'analytic_line_ids.estim_avg_cost', 'product_qty') def get_unit_avg_cost(self): - self.avg_cost = sum([line.estim_avg_cost for line in - self.analytic_line_ids]) + self.avg_cost = -(sum([line.estim_avg_cost for line in + self.analytic_line_ids])) self.unit_avg_cost = self.avg_cost / self.product_qty @api.one diff --git a/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml b/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml index d658d458f..ae6a5620c 100644 --- a/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml +++ b/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml @@ -24,8 +24,8 @@ - - + + @@ -41,8 +41,8 @@ - - + + diff --git a/mrp_production_project_estimated_cost/views/mrp_production_view.xml b/mrp_production_project_estimated_cost/views/mrp_production_view.xml index 268fb4751..486ca81cc 100644 --- a/mrp_production_project_estimated_cost/views/mrp_production_view.xml +++ b/mrp_production_project_estimated_cost/views/mrp_production_view.xml @@ -34,7 +34,7 @@ From c17bfb57653a2e1ca3041120c0f659f2e503626d Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 20 Nov 2015 21:39:04 +0100 Subject: [PATCH 15/20] OCA Transbot updated translations from Transifex --- .../i18n/es.po | 22 +- .../i18n/it.po | 291 ++++++++++++++++++ .../i18n/pt_BR.po | 22 +- .../i18n/ro.po | 291 ++++++++++++++++++ .../i18n/sl.po | 20 +- 5 files changed, 632 insertions(+), 14 deletions(-) create mode 100644 mrp_production_project_estimated_cost/i18n/it.po create mode 100644 mrp_production_project_estimated_cost/i18n/ro.po diff --git a/mrp_production_project_estimated_cost/i18n/es.po b/mrp_production_project_estimated_cost/i18n/es.po index dfd948f5e..3b410379e 100644 --- a/mrp_production_project_estimated_cost/i18n/es.po +++ b/mrp_production_project_estimated_cost/i18n/es.po @@ -7,9 +7,9 @@ msgid "" msgstr "" "Project-Id-Version: odoomrp-wip (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-10-09 10:50+0000\n" -"Last-Translator: Pedro M. Baeza \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-20 18:13+0000\n" +"Last-Translator: OCA Transbot \n" "Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/es/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -122,6 +122,18 @@ msgstr "Creado por" msgid "Created on" msgstr "Creado el" +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + #. module: mrp_production_project_estimated_cost #: field:account.analytic.line,estim_avg_cost:0 #: field:mrp.production,avg_cost:0 @@ -182,8 +194,8 @@ msgstr "Última actualización el" #. module: mrp_production_project_estimated_cost #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Cost on Product" -msgstr "Cargar coste en el producto" +msgid "Load Estimated Cost on Product" +msgstr "" #. module: mrp_production_project_estimated_cost #: field:wiz.create.fictitious.of,load_on_product:0 diff --git a/mrp_production_project_estimated_cost/i18n/it.po b/mrp_production_project_estimated_cost/i18n/it.po new file mode 100644 index 000000000..febaf523b --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/it.po @@ -0,0 +1,291 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Italian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Distinta base" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Ordine di produzione" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Costi di produzione" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Template prodotto" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Bisogna definire un conto analitico per questo MO: %s" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/pt_BR.po b/mrp_production_project_estimated_cost/i18n/pt_BR.po index 8c037286c..b15a4c103 100644 --- a/mrp_production_project_estimated_cost/i18n/pt_BR.po +++ b/mrp_production_project_estimated_cost/i18n/pt_BR.po @@ -7,9 +7,9 @@ msgid "" msgstr "" "Project-Id-Version: odoomrp-wip (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-10-09 03:39+0000\n" -"Last-Translator: danimaribeiro \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-0/language/pt_BR/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -122,6 +122,18 @@ msgstr "Criado por" msgid "Created on" msgstr "Criado em" +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + #. module: mrp_production_project_estimated_cost #: field:account.analytic.line,estim_avg_cost:0 #: field:mrp.production,avg_cost:0 @@ -182,7 +194,7 @@ msgstr "Última atualização em" #. module: mrp_production_project_estimated_cost #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Cost on Product" +msgid "Load Estimated Cost on Product" msgstr "" #. module: mrp_production_project_estimated_cost @@ -214,7 +226,7 @@ msgstr "" #. module: mrp_production_project_estimated_cost #: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template msgid "Product Template" -msgstr "" +msgstr "Produto Modelo" #. module: mrp_production_project_estimated_cost #: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines diff --git a/mrp_production_project_estimated_cost/i18n/ro.po b/mrp_production_project_estimated_cost/i18n/ro.po new file mode 100644 index 000000000..9c9422f7d --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/ro.po @@ -0,0 +1,291 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Listă de materiale" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Anulare" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Creat de" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Creat în" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Contabilitate generală" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Ultima actualizare de" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Ultima actualizare în" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Comandă fabricație" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Costuri fabricație" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Produs șablon" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Proiect" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "sau" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/sl.po b/mrp_production_project_estimated_cost/i18n/sl.po index 008556332..68bfd7d18 100644 --- a/mrp_production_project_estimated_cost/i18n/sl.po +++ b/mrp_production_project_estimated_cost/i18n/sl.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: odoomrp-wip (8.0)\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-10-04 00:01+0000\n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" "Last-Translator: OCA Transbot \n" "Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/sl/)\n" "MIME-Version: 1.0\n" @@ -123,6 +123,18 @@ msgstr "Ustvaril" msgid "Created on" msgstr "Ustvarjeno" +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + #. module: mrp_production_project_estimated_cost #: field:account.analytic.line,estim_avg_cost:0 #: field:mrp.production,avg_cost:0 @@ -183,8 +195,8 @@ msgstr "Zadnjič posodobljeno" #. module: mrp_production_project_estimated_cost #: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Cost on Product" -msgstr "Naloži strošek na proizvod" +msgid "Load Estimated Cost on Product" +msgstr "Zadnja ocena stroška proizvoda" #. module: mrp_production_project_estimated_cost #: field:wiz.create.fictitious.of,load_on_product:0 From 63dc1aa58735e6fb17db6872c36fc2c0ff8deb1b Mon Sep 17 00:00:00 2001 From: agaldona Date: Mon, 23 Nov 2015 10:11:20 +0100 Subject: [PATCH 16/20] [FIX] mrp_production_project_estimated_cost: convert attribute lines for the creation of a MO. --- .../wizard/wiz_create_fictitious_of.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py index b294b476d..b345f0ab1 100644 --- a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py +++ b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py @@ -45,11 +45,13 @@ class WizCreateFictitiousOf(models.TransientModel): if 'routing_id' in vals: routing = routing_obj.browse(vals['routing_id']) product_qty = production_obj._get_min_qty_for_production( - routing) + routing) or 1 vals['product_qty'] = product_qty prod_vals = production_obj.product_id_change( product.id, product_qty)['value'] vals.update(prod_vals) + vals['product_attributes'] = [tuple([0, 0, line]) for line in + vals.get('product_attributes', [])] new_production = production_obj.create(vals) new_production.action_compute() new_production.calculate_production_estimated_cost() From 1cef0f20d95c23994eb3785eda7ec2653190c6ee Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Fri, 20 Nov 2015 23:42:48 +0100 Subject: [PATCH 17/20] [IMP] mrp_project_link/mrp_operations_project/mrp_project_link_mto: Refactorization + integration in one module --- .../models/__init__.py | 1 - .../models/mrp_production.py | 22 ---------------- .../models/project_project.py | 26 ------------------- 3 files changed, 49 deletions(-) delete mode 100644 mrp_production_project_estimated_cost/models/project_project.py diff --git a/mrp_production_project_estimated_cost/models/__init__.py b/mrp_production_project_estimated_cost/models/__init__.py index 7db71fe6f..4199c5cfa 100644 --- a/mrp_production_project_estimated_cost/models/__init__.py +++ b/mrp_production_project_estimated_cost/models/__init__.py @@ -18,5 +18,4 @@ from . import account_analytic_line from . import mrp_production from . import product -from . import project_project from . import mrp_bom diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_project_estimated_cost/models/mrp_production.py index 25267486c..6419e43c4 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_project_estimated_cost/models/mrp_production.py @@ -86,7 +86,6 @@ class MrpProduction(models.Model): cond = [('mrp_production_id', '=', production.id)] analytic_line_obj.search(cond).unlink() if production.project_id.automatic_creation: - production.project_id.unlink() analytic_lines = analytic_line_obj.search( [('account_id', '=', production.analytic_account_id.id)]) if not analytic_lines: @@ -99,27 +98,6 @@ class MrpProduction(models.Model): self.calculate_production_estimated_cost() return res - @api.multi - def action_compute(self, properties=None): - project_obj = self.env['project.project'] - res = super(MrpProduction, self).action_compute(properties=properties) - for record in self: - if not record.project_id: - project = project_obj.search([('name', '=', record.name)], - limit=1) - if not project: - project_vals = { - 'name': record.name, - 'use_tasks': True, - 'use_timesheets': True, - 'use_issues': True, - 'automatic_creation': True, - } - project = project_obj.create(project_vals) - record.project_id = project.id - record.analytic_account_id = project.analytic_account_id.id - return res - @api.multi def action_show_estimated_costs(self): self.ensure_one() diff --git a/mrp_production_project_estimated_cost/models/project_project.py b/mrp_production_project_estimated_cost/models/project_project.py deleted file mode 100644 index 1c5c05013..000000000 --- a/mrp_production_project_estimated_cost/models/project_project.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published -# by the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## - -from openerp import models, fields - - -class ProjectProject(models.Model): - - _inherit = 'project.project' - - automatic_creation = fields.Boolean('Automatic Creation') From 72fdc29887b03730397122a80b28389f6b149e59 Mon Sep 17 00:00:00 2001 From: davidtranhp Date: Fri, 4 Dec 2015 20:46:49 +0700 Subject: [PATCH 18/20] [Add] Vietnamese translations --- .../i18n/vi_VN.po | 278 ++++++++++++++++++ 1 file changed, 278 insertions(+) create mode 100644 mrp_production_project_estimated_cost/i18n/vi_VN.po diff --git a/mrp_production_project_estimated_cost/i18n/vi_VN.po b/mrp_production_project_estimated_cost/i18n/vi_VN.po new file mode 100644 index 000000000..1a7dcd2ef --- /dev/null +++ b/mrp_production_project_estimated_cost/i18n/vi_VN.po @@ -0,0 +1,278 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_project_estimated_cost +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-28 09:13+0000\n" +"PO-Revision-Date: 2015-11-28 09: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" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Có hiệu lực" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "Analytic Line" + +#. module: mrp_production_project_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "Tạo dự động" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Định mức Nguyên liệu" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Hủy" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "Chi tiết chi phí" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "Phân tích chi phí" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "Tạo chi phí dự kiến" + +#. module: mrp_production_project_estimated_cost +#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "Tạo Lệnh sản xuất giả lập" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "Tạo Lệnh sản xuất giả lập" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "Tạo Lệnh sản xuất giả lập" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Tạo bởi" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Tạo vào" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "Chi phí trung bình dự kiến" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "Chi phí đơn vị trung bình dự kiến" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "Chi phí dự kiến" + +#. module: mrp_production_project_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "Chi phí tiêu chuẩn dự kiến" + +#. module: mrp_production_project_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "Chi phí đơn vị tiêu chuẩn dự kiến" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "Chi phí dự kiến từ các lệnh sản xuất" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "Lệnh sản xuất giả lập để dự toán chi phí" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Kế toán Tổng hợp" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Cập nhật lần cuối bởi" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Cập nhật lần cuối vào" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "Load Estimated Cost on Product" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "Lấy giá vốn từ sản phẩm" + +#. module: mrp_production_project_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "Giá tiêu chuẩn (tính thủ công)" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Lệnh sản xuất" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Chi phí sản xuất" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "Một dòng tiêu thụ không có sản phẩm nào được gán." + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Mẫu sản phẩm" + +#. module: mrp_production_project_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "Production Analytic Lines" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "Chi phí sản xuất" + +#. module: mrp_production_project_estimated_cost +#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "Thông tin sản xuất" + +#. module: mrp_production_project_estimated_cost +#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Dự án" + +#. module: mrp_production_project_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "Ngày theo kế hoạch" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "There is at least this workcenter without product: %s" + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "Workcenter '%s' doesn't have post-operation costing product." + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "Workcenter '%s' doesn't have pre-operation costing product." + +#. module: mrp_production_project_estimated_cost +#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Bạn phải định nghĩa một Tài khoản quản trị cho MO này: %s" + +#. module: mrp_production_project_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "hoặc" + +#. module: mrp_production_project_estimated_cost +#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" + From 72402ea265362a289b5a8cea80032230787d5a17 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 8 Dec 2015 20:44:15 +0100 Subject: [PATCH 19/20] [IMP] mrp_production_estimated_cost: Adaptation to OCA --- mrp_production_estimated_cost/README.rst | 98 +++++ mrp_production_estimated_cost/__init__.py | 7 + mrp_production_estimated_cost/__openerp__.py | 37 ++ .../data/analytic_journal_data.xml | 0 .../data/virtual_mrp_production_sequence.xml | 15 + mrp_production_estimated_cost/i18n/es.po | 279 ++++++++++++++ mrp_production_estimated_cost/i18n/fr.po | 279 ++++++++++++++ mrp_production_estimated_cost/i18n/it.po | 291 ++++++++++++++ mrp_production_estimated_cost/i18n/pt_BR.po | 291 ++++++++++++++ mrp_production_estimated_cost/i18n/ro.po | 291 ++++++++++++++ mrp_production_estimated_cost/i18n/sl.po | 292 +++++++++++++++ mrp_production_estimated_cost/i18n/vi_VN.po | 278 ++++++++++++++ .../models/__init__.py | 8 + .../models/account_analytic_line.py | 16 + .../models/mrp_production.py | 135 +++---- .../models/product.py | 15 + .../static/description/icon.png | Bin 0 -> 10499 bytes .../static/description/icon.svg | 354 ++++++++++++++++++ .../tests/__init__.py | 6 + .../test_mrp_production_estimated_cost.py | 33 ++ .../views/account_analytic_line_view.xml | 0 .../views/mrp_production_view.xml | 51 +-- .../views/product_view.xml | 22 +- .../wizard/__init__.py | 6 + .../wizard/wiz_create_virtual_mo.py | 66 ++++ .../wizard/wiz_create_virtual_mo_view.xml | 52 +++ .../README.rst | 29 -- .../__init__.py | 19 - .../__openerp__.py | 51 --- .../fictitious_mrp_production_sequence.xml | 15 - .../i18n/es.po | 291 -------------- .../i18n/fr.po | 279 -------------- .../i18n/it.po | 291 -------------- .../mrp_production_project_estimated_cost.pot | 267 ------------- .../i18n/pt_BR.po | 291 -------------- .../i18n/ro.po | 291 -------------- .../i18n/sl.po | 292 --------------- .../i18n/vi_VN.po | 278 -------------- .../models/__init__.py | 21 -- .../models/account_analytic_line.py | 28 -- .../models/mrp_bom.py | 30 -- .../models/product.py | 28 -- .../views/mrp_bom_view.xml | 30 -- .../wizard/__init__.py | 18 - .../wizard/wiz_create_fictitious_of.py | 72 ---- .../wizard/wiz_create_fictitious_of_view.xml | 45 --- oca_dependencies.txt | 1 - 47 files changed, 2803 insertions(+), 2786 deletions(-) create mode 100644 mrp_production_estimated_cost/README.rst create mode 100644 mrp_production_estimated_cost/__init__.py create mode 100644 mrp_production_estimated_cost/__openerp__.py rename {mrp_production_project_estimated_cost => mrp_production_estimated_cost}/data/analytic_journal_data.xml (100%) create mode 100644 mrp_production_estimated_cost/data/virtual_mrp_production_sequence.xml create mode 100644 mrp_production_estimated_cost/i18n/es.po create mode 100644 mrp_production_estimated_cost/i18n/fr.po create mode 100644 mrp_production_estimated_cost/i18n/it.po create mode 100644 mrp_production_estimated_cost/i18n/pt_BR.po create mode 100644 mrp_production_estimated_cost/i18n/ro.po create mode 100644 mrp_production_estimated_cost/i18n/sl.po create mode 100644 mrp_production_estimated_cost/i18n/vi_VN.po create mode 100644 mrp_production_estimated_cost/models/__init__.py create mode 100644 mrp_production_estimated_cost/models/account_analytic_line.py rename {mrp_production_project_estimated_cost => mrp_production_estimated_cost}/models/mrp_production.py (68%) create mode 100644 mrp_production_estimated_cost/models/product.py create mode 100644 mrp_production_estimated_cost/static/description/icon.png create mode 100644 mrp_production_estimated_cost/static/description/icon.svg create mode 100644 mrp_production_estimated_cost/tests/__init__.py create mode 100644 mrp_production_estimated_cost/tests/test_mrp_production_estimated_cost.py rename {mrp_production_project_estimated_cost => mrp_production_estimated_cost}/views/account_analytic_line_view.xml (100%) rename {mrp_production_project_estimated_cost => mrp_production_estimated_cost}/views/mrp_production_view.xml (75%) rename {mrp_production_project_estimated_cost => mrp_production_estimated_cost}/views/product_view.xml (71%) create mode 100644 mrp_production_estimated_cost/wizard/__init__.py create mode 100644 mrp_production_estimated_cost/wizard/wiz_create_virtual_mo.py create mode 100644 mrp_production_estimated_cost/wizard/wiz_create_virtual_mo_view.xml delete mode 100644 mrp_production_project_estimated_cost/README.rst delete mode 100644 mrp_production_project_estimated_cost/__init__.py delete mode 100644 mrp_production_project_estimated_cost/__openerp__.py delete mode 100644 mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml delete mode 100644 mrp_production_project_estimated_cost/i18n/es.po delete mode 100644 mrp_production_project_estimated_cost/i18n/fr.po delete mode 100644 mrp_production_project_estimated_cost/i18n/it.po delete mode 100644 mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot delete mode 100644 mrp_production_project_estimated_cost/i18n/pt_BR.po delete mode 100644 mrp_production_project_estimated_cost/i18n/ro.po delete mode 100644 mrp_production_project_estimated_cost/i18n/sl.po delete mode 100644 mrp_production_project_estimated_cost/i18n/vi_VN.po delete mode 100644 mrp_production_project_estimated_cost/models/__init__.py delete mode 100644 mrp_production_project_estimated_cost/models/account_analytic_line.py delete mode 100644 mrp_production_project_estimated_cost/models/mrp_bom.py delete mode 100644 mrp_production_project_estimated_cost/models/product.py delete mode 100644 mrp_production_project_estimated_cost/views/mrp_bom_view.xml delete mode 100644 mrp_production_project_estimated_cost/wizard/__init__.py delete mode 100644 mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py delete mode 100644 mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml diff --git a/mrp_production_estimated_cost/README.rst b/mrp_production_estimated_cost/README.rst new file mode 100644 index 000000000..9632fe983 --- /dev/null +++ b/mrp_production_estimated_cost/README.rst @@ -0,0 +1,98 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +======================================= +Estimated costs in manufacturing orders +======================================= + +This module extends the functionality of MRP adding estimates for Manufacturing +Orders costs, as followed: + +* Raw Material cost: for each material to be consumed in the MO, an analytic + line is generated at product cos +* Operators time: for the time recorded by the operators during each operation, + one analytic line will be generated (number of lines to be equal to the + number of operators). +* Machine time: for each operation, one analytic line will be created in the + associated routing, taking whether the hourly cost or, if missing, the cost + per cycle. + +This module also allows to create some manufacturing orders called "virtual", +that don't permit to be confirmed, but include the buttons for estimating the +costs of the selected manufactured product. + +Installation +============ + +This module depends on the module *product_variant_cost_price*, that is +available in: + +https://github.com/OCA/product-variant + +Usage +===== + +When the manufacturing order is confirmed, analytic lines +are automatically generated in order to estimate the costs of the production + +A new menu is available "Virtual Manufacturing Orders for cost estimation" +where the user can managed virtual MO: + +* When a new MO is created and the new field "active" is false, the MO will be + considered virtual. It is only used for cost estimation and can not be + confirmed. +* To estimate the cost of the MO, the user has to press the button "Compute + data" in the tab "Work Orders". +* These virtual MO have a separate sequence number. +* The user can create a virtual MO directly from the product form. + + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/129/8.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed `feedback +`_. + +Credits +======= + +Contributors +------------ + +* Alfredo de la Fuente +* Pedro M. Baeza +* Ana Juaristi +* Oihane Crucelaegui +* Ainara Galdona + +Images +------ + +* Original Odoo MRP icon +* Thanks to https://openclipart.org/detail/120511/budget + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/mrp_production_estimated_cost/__init__.py b/mrp_production_estimated_cost/__init__.py new file mode 100644 index 000000000..aaebe2bed --- /dev/null +++ b/mrp_production_estimated_cost/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import models +from . import wizard diff --git a/mrp_production_estimated_cost/__openerp__.py b/mrp_production_estimated_cost/__openerp__.py new file mode 100644 index 000000000..6efc7edd6 --- /dev/null +++ b/mrp_production_estimated_cost/__openerp__.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# (c) 2015 Antiun Ingeniería +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +{ + "name": "Estimated costs in manufacturing orders", + "version": "8.0.1.0.0", + "category": "Manufacturing", + "author": "OdooMRP team, " + "AvanzOSC, " + "Serv. Tecnol. Avanzados - Pedro M. Baeza, " + "Antiun Ingenería S.L.," + "Odoo Community Association (OCA)", + "website": "http://www.odoomrp.com", + "contributors": [ + "Alfredo de la Fuente ", + "Pedro M. Baeza ", + "Ana Juaristi ", + "Oihane Crucelaegui ", + ], + "depends": [ + "mrp_operations_project", + "product_variant_cost_price", + ], + "data": [ + "data/analytic_journal_data.xml", + "data/virtual_mrp_production_sequence.xml", + "wizard/wiz_create_virtual_mo_view.xml", + "views/account_analytic_line_view.xml", + "views/mrp_production_view.xml", + "views/product_view.xml", + ], + "installable": True, + "license": "AGPL-3", +} diff --git a/mrp_production_project_estimated_cost/data/analytic_journal_data.xml b/mrp_production_estimated_cost/data/analytic_journal_data.xml similarity index 100% rename from mrp_production_project_estimated_cost/data/analytic_journal_data.xml rename to mrp_production_estimated_cost/data/analytic_journal_data.xml diff --git a/mrp_production_estimated_cost/data/virtual_mrp_production_sequence.xml b/mrp_production_estimated_cost/data/virtual_mrp_production_sequence.xml new file mode 100644 index 000000000..61fc2bffe --- /dev/null +++ b/mrp_production_estimated_cost/data/virtual_mrp_production_sequence.xml @@ -0,0 +1,15 @@ + + + + + Virtual MRP Production + virtual.mrp.production + + + Virtual MRP Production + virtual.mrp.production + + VMO + + + diff --git a/mrp_production_estimated_cost/i18n/es.po b/mrp_production_estimated_cost/i18n/es.po new file mode 100644 index 000000000..7bfa1cdb3 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/es.po @@ -0,0 +1,279 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-20 18:13+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "%s-%s Post-operación" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "%s-%s Pre-operación" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "%s-%s-C-%s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "%s-%s-H-%s" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Activa" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "Línea analítica" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "Creación automática" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Lista de material" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Cancelar" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "Líneas de costes" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "Crear costes estimados" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "Crea OF ficticia" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "CrearOF ficticia" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Creado el" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "Coste medio estimado" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "Coste medio estimado por unidad" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "Costes estimados" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "Coste estándar estimado" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "Coste estándar estimado por unidad" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "Costes estimados desde orden de producción" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "Órdenes de producción ficiticias para estimar costes" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Contabilidad general" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "Cargar coste en el producto" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "Coste estándar manual" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Órden de producción" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Costes de fabricación" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "Una de las líneas de consumo no tiene producto asignado." + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Plantilla de producto" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "Información de la fabricación" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Proyecto" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "Fecha programada" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "Esta máquina no tiene un producto asignado: %s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Debe definir una cuenta analítica para esta MO: %s" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "o" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" diff --git a/mrp_production_estimated_cost/i18n/fr.po b/mrp_production_estimated_cost/i18n/fr.po new file mode 100644 index 000000000..b4f1aefa8 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/fr.po @@ -0,0 +1,279 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-10-07 10:44+0000\n" +"PO-Revision-Date: 2015-10-04 00:01+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: French (http://www.transifex.com/oca/odoomrp-wip-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Annuler" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Créé par" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Créé le" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "Id." + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Mis à jour par" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Mis à jour le" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Cost on Product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "ou" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_estimated_cost/i18n/it.po b/mrp_production_estimated_cost/i18n/it.po new file mode 100644 index 000000000..d27992481 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/it.po @@ -0,0 +1,291 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Italian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Distinta base" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Ordine di produzione" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Costi di produzione" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Template prodotto" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Bisogna definire un conto analitico per questo MO: %s" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_estimated_cost/i18n/pt_BR.po b/mrp_production_estimated_cost/i18n/pt_BR.po new file mode 100644 index 000000000..27dd97c4f --- /dev/null +++ b/mrp_production_estimated_cost/i18n/pt_BR.po @@ -0,0 +1,291 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Ativo" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Lista de materiais" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Cancelar" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Criado por" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Criado em" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Última atualização por" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Última atualização em" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Ordem de Produção" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Produto Modelo" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Projeto" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "ou" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_estimated_cost/i18n/ro.po b/mrp_production_estimated_cost/i18n/ro.po new file mode 100644 index 000000000..39e609fd5 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/ro.po @@ -0,0 +1,291 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8s.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Listă de materiale" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Anulare" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Creat de" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Creat în" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Contabilitate generală" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Ultima actualizare de" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Ultima actualizare în" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Comandă fabricație" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Costuri fabricație" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Produs șablon" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Proiect" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "sau" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "" diff --git a/mrp_production_estimated_cost/i18n/sl.po b/mrp_production_estimated_cost/i18n/sl.po new file mode 100644 index 000000000..98bc01c27 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/sl.po @@ -0,0 +1,292 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +# Translators: +# Matjaž Mozetič , 2015 +msgid "" +msgstr "" +"Project-Id-Version: odoomrp-wip (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-20 18:10+0000\n" +"PO-Revision-Date: 2015-11-19 16:26+0000\n" +"Last-Translator: OCA Transbot \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "%s-%s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "%s-%s po operaciji" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "%s-%s pred operacijo" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "%s-%s-%s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "%s-%s-C-%s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "%s-%s-H-%s" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Aktivno" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "Analitična postavka" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "Samodejno ustvarjanje" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Kosovnica" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Preklic" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "Stroškovne postavke" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "Analiza stroškov" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "Ustvari oceno stroškov" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "Ustvari navidezni proizvodni nalog" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "Ustvari navidezni proizvodni nalog" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "Ustvari fiktiven proizvodni nalog" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Ustvaril" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. AVG" +msgstr "" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost +msgid "Estim. STD" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "Ocena povprečnih stroškov" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "Ocena povprečnega stroška enote" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "Ocena stroškov" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "Ocena standardnih stroškov" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "Ocena stroška standardne enote" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "Ocena stroškov iz proizvodnega naloga" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "Navidezni proizvodni nalogi za oceno stroškov" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Glavna knjiga" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Zadnjič posodobil" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "Zadnja ocena stroška proizvoda" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "Naloži strošek na proizvod" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "Standardni strošek ročno" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Proizvodni nalog" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Proizvodni stroški" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "Ena postavka porabe nima dodeljenega proizvoda." + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Predloga proizvoda" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "Proizvodne analitične postavke" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "Proizvodni stroški" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "Informacije o proizvodnji" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Projekt" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "Načrtovani datum" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "Vsaj ta delovni center nima proizvoda: %s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "Delovni center '%s' nima po-operativnega stroškovnega proizvoda." + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "Delovni center '%s' nima pred operativnega stroškovnega proizvoda." + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Potrebno je določiti analitični konto za proizvodni nalog: %s" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "ali" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" diff --git a/mrp_production_estimated_cost/i18n/vi_VN.po b/mrp_production_estimated_cost/i18n/vi_VN.po new file mode 100644 index 000000000..4bf874657 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/vi_VN.po @@ -0,0 +1,278 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * mrp_production_estimated_cost +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-28 09:13+0000\n" +"PO-Revision-Date: 2015-11-28 09: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" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:207 +#, python-format +msgid "%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:240 +#, python-format +msgid "%s-%s Post-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:224 +#, python-format +msgid "%s-%s Pre-operation" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:292 +#, python-format +msgid "%s-%s-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:256 +#, python-format +msgid "%s-%s-C-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:274 +#, python-format +msgid "%s-%s-H-%s" +msgstr "" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,active:0 +msgid "Active" +msgstr "Có hiệu lực" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_account_analytic_line +msgid "Analytic Line" +msgstr "Analytic Line" + +#. module: mrp_production_estimated_cost +#: field:project.project,automatic_creation:0 +msgid "Automatic Creation" +msgstr "Tạo dự động" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_bom +msgid "Bill of Material" +msgstr "Định mức Nguyên liệu" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Cancel" +msgstr "Hủy" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,analytic_line_ids:0 +msgid "Cost Lines" +msgstr "Chi tiết chi phí" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Costs analysis" +msgstr "Phân tích chi phí" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Create Estimated Costs" +msgstr "Tạo chi phí dự kiến" + +#. module: mrp_production_estimated_cost +#: view:product.product:mrp_production_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost +#: view:product.template:mrp_production_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost +msgid "Create Fictitious MO" +msgstr "Tạo Lệnh sản xuất giả lập" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.act_product_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_create_fictitious_of +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitious MO" +msgstr "Tạo Lệnh sản xuất giả lập" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "Create fictitius MO" +msgstr "Tạo Lệnh sản xuất giả lập" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_uid:0 +msgid "Created by" +msgstr "Tạo bởi" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,create_date:0 +msgid "Created on" +msgstr "Tạo vào" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_avg_cost:0 +#: field:mrp.production,avg_cost:0 +msgid "Estimated Average Cost" +msgstr "Chi phí trung bình dự kiến" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_avg_cost:0 +msgid "Estimated Average Unit Cost" +msgstr "Chi phí đơn vị trung bình dự kiến" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.estimated_cost_list_view +msgid "Estimated Costs" +msgstr "Chi phí dự kiến" + +#. module: mrp_production_estimated_cost +#: field:account.analytic.line,estim_std_cost:0 +#: field:mrp.production,std_cost:0 +msgid "Estimated Standard Cost" +msgstr "Chi phí tiêu chuẩn dự kiến" + +#. module: mrp_production_estimated_cost +#: field:mrp.production,unit_std_cost:0 +msgid "Estimated Standard Unit Cost" +msgstr "Chi phí đơn vị tiêu chuẩn dự kiến" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_estimated_costs_per_production +msgid "Estimated costs from production order" +msgstr "Chi phí dự kiến từ các lệnh sản xuất" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.mrp_fictitious_production_action +#: model:ir.ui.menu,name:mrp_production_estimated_cost.menu_mrp_fictitious_production_action +msgid "Fictitious Manufacturing Orders to estimate costs" +msgstr "Lệnh sản xuất giả lập để dự toán chi phí" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "General Accounting" +msgstr "Kế toán Tổng hợp" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,id:0 +msgid "ID" +msgstr "ID" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_uid:0 +msgid "Last Updated by" +msgstr "Cập nhật lần cuối bởi" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,write_date:0 +msgid "Last Updated on" +msgstr "Cập nhật lần cuối vào" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Load Estimated Cost on Product" +msgstr "Load Estimated Cost on Product" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,load_on_product:0 +msgid "Load cost on product" +msgstr "Lấy giá vốn từ sản phẩm" + +#. module: mrp_production_estimated_cost +#: field:product.template,manual_standard_cost:0 +msgid "Manual Standard Cost" +msgstr "Giá tiêu chuẩn (tính thủ công)" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_mrp_production +msgid "Manufacturing Order" +msgstr "Lệnh sản xuất" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "Manufacturing costs" +msgstr "Chi phí sản xuất" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:205 +#, python-format +msgid "One consume line has no product assigned." +msgstr "Một dòng tiêu thụ không có sản phẩm nào được gán." + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_product_template +msgid "Product Template" +msgstr "Mẫu sản phẩm" + +#. module: mrp_production_estimated_cost +#: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_show_production_anaytic_lines +msgid "Production Analytic Lines" +msgstr "Production Analytic Lines" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost +msgid "Production Costs" +msgstr "Chi phí sản xuất" + +#. module: mrp_production_estimated_cost +#: view:account.analytic.line:mrp_production_estimated_cost.view_account_analytic_line_form_inh_estimatedcost +msgid "Production Information" +msgstr "Thông tin sản xuất" + +#. module: mrp_production_estimated_cost +#: model:ir.model,name:mrp_production_estimated_cost.model_project_project +#: field:wiz.create.fictitious.of,project_id:0 +msgid "Project" +msgstr "Dự án" + +#. module: mrp_production_estimated_cost +#: field:wiz.create.fictitious.of,date_planned:0 +msgid "Scheduled Date" +msgstr "Ngày theo kế hoạch" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:254 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:271 +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:289 +#, python-format +msgid "There is at least this workcenter without product: %s" +msgstr "There is at least this workcenter without product: %s" + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:237 +#, python-format +msgid "Workcenter '%s' doesn't have post-operation costing product." +msgstr "Workcenter '%s' doesn't have post-operation costing product." + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:221 +#, python-format +msgid "Workcenter '%s' doesn't have pre-operation costing product." +msgstr "Workcenter '%s' doesn't have pre-operation costing product." + +#. module: mrp_production_estimated_cost +#: code:addons/mrp_production_estimated_cost/models/mrp_production.py:181 +#, python-format +msgid "You must define one Analytic Account for this MO: %s" +msgstr "Bạn phải định nghĩa một Tài khoản quản trị cho MO này: %s" + +#. module: mrp_production_estimated_cost +#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view +msgid "or" +msgstr "hoặc" + +#. module: mrp_production_estimated_cost +#: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost +msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" +msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" + diff --git a/mrp_production_estimated_cost/models/__init__.py b/mrp_production_estimated_cost/models/__init__.py new file mode 100644 index 000000000..44ae13b31 --- /dev/null +++ b/mrp_production_estimated_cost/models/__init__.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import account_analytic_line +from . import mrp_production +from . import product diff --git a/mrp_production_estimated_cost/models/account_analytic_line.py b/mrp_production_estimated_cost/models/account_analytic_line.py new file mode 100644 index 000000000..48884ca95 --- /dev/null +++ b/mrp_production_estimated_cost/models/account_analytic_line.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import models, fields +import openerp.addons.decimal_precision as dp + + +class AccountAnalyticLine(models.Model): + _inherit = 'account.analytic.line' + + estim_std_cost = fields.Float(string='Estimated Standard Cost', + digits=dp.get_precision('Product Price')) + estim_avg_cost = fields.Float(string='Estimated Average Cost', + digits=dp.get_precision('Product Price')) diff --git a/mrp_production_project_estimated_cost/models/mrp_production.py b/mrp_production_estimated_cost/models/mrp_production.py similarity index 68% rename from mrp_production_project_estimated_cost/models/mrp_production.py rename to mrp_production_estimated_cost/models/mrp_production.py index 6419e43c4..eff129b75 100644 --- a/mrp_production_project_estimated_cost/models/mrp_production.py +++ b/mrp_production_estimated_cost/models/mrp_production.py @@ -1,21 +1,9 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -from openerp import models, fields, api, exceptions, _ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import api, exceptions, fields, models, _ class MrpProduction(models.Model): @@ -24,17 +12,15 @@ class MrpProduction(models.Model): @api.one @api.depends('analytic_line_ids', 'analytic_line_ids.estim_std_cost', 'product_qty') - def get_unit_std_cost(self): - self.std_cost = -(sum([line.estim_std_cost for line in - self.analytic_line_ids])) + def _compute_unit_std_cost(self): + self.std_cost = -sum(self.analytic_line_ids.mapped('estim_std_cost')) self.unit_std_cost = self.std_cost / self.product_qty @api.one @api.depends('analytic_line_ids', 'analytic_line_ids.estim_avg_cost', 'product_qty') - def get_unit_avg_cost(self): - self.avg_cost = -(sum([line.estim_avg_cost for line in - self.analytic_line_ids])) + def _compute_unit_avg_cost(self): + self.avg_cost = -sum(self.analytic_line_ids.mapped('estim_avg_cost')) self.unit_avg_cost = self.avg_cost / self.product_qty @api.one @@ -42,28 +28,28 @@ class MrpProduction(models.Model): analytic_line_obj = self.env['account.analytic.line'] cond = [('mrp_production_id', '=', self.id), ('task_id', '=', False)] - analytic_lines = analytic_line_obj.search(cond) - self.created_estimated_cost = len(analytic_lines) + self.created_estimated_cost = len(analytic_line_obj.search(cond)) - active = fields.Boolean( - 'Active', default=lambda self: self.env.context.get('default_active', - True)) + active = fields.Boolean(string='Active', default=True) name = fields.Char(default="/") created_estimated_cost = fields.Integer( compute="_count_created_estimated_cost", string="Estimated Costs") - std_cost = fields.Float(string="Estimated Standard Cost", - compute="get_unit_std_cost", store=True) - avg_cost = fields.Float(string="Estimated Average Cost", - compute="get_unit_avg_cost", store=True) - unit_std_cost = fields.Float(string="Estimated Standard Unit Cost", - compute="get_unit_std_cost", store=True) + std_cost = fields.Float( + string="Estimated Standard Cost", compute="_compute_unit_std_cost", + store=True) + avg_cost = fields.Float( + string="Estimated Average Cost", compute="_compute_unit_avg_cost", + store=True) + unit_std_cost = fields.Float( + string="Estimated Standard Unit Cost", + compute="_compute_unit_std_cost", store=True) unit_avg_cost = fields.Float(string="Estimated Average Unit Cost", - compute="get_unit_avg_cost", store=True) + compute="_compute_unit_avg_cost", store=True) product_manual_cost = fields.Float( string="Product Manual Cost", related="product_id.manual_standard_cost") product_cost = fields.Float( - string="Product Cost", related="product_id.cost_price") + string="Product Cost", related="product_id.standard_price") analytic_line_ids = fields.One2many( comodel_name="account.analytic.line", inverse_name="mrp_production_id", string="Cost Lines") @@ -76,22 +62,9 @@ class MrpProduction(models.Model): if values.get('name', '/') == '/': values['name'] = sequence_obj.get('mrp.production') else: - values['name'] = sequence_obj.get('fictitious.mrp.production') + values['name'] = sequence_obj.get('virtual.mrp.production') return super(MrpProduction, self).create(values) - @api.multi - def unlink(self): - analytic_line_obj = self.env['account.analytic.line'] - for production in self: - cond = [('mrp_production_id', '=', production.id)] - analytic_line_obj.search(cond).unlink() - if production.project_id.automatic_creation: - analytic_lines = analytic_line_obj.search( - [('account_id', '=', production.analytic_account_id.id)]) - if not analytic_lines: - production.analytic_account_id.unlink() - return super(MrpProduction, self).unlink() - @api.multi def action_confirm(self): res = super(MrpProduction, self).action_confirm() @@ -103,9 +76,9 @@ class MrpProduction(models.Model): self.ensure_one() analytic_line_obj = self.env['account.analytic.line'] id2 = self.env.ref( - 'mrp_production_project_estimated_cost.estimated_cost_list_view') - search_view = self.env.ref('mrp_project_link.account_analytic_line' - '_mrp_search_view') + 'mrp_production_estimated_cost.estimated_cost_list_view') + search_view = self.env.ref( + 'mrp_project.account_analytic_line_mrp_search_view') analytic_line_list = analytic_line_obj.search( [('mrp_production_id', '=', self.id), ('task_id', '=', False)]) @@ -121,10 +94,9 @@ class MrpProduction(models.Model): 'view_id': False, 'type': 'ir.actions.act_window', 'target': 'new', - 'domain': "[('id','in',[" + - ','.join(map(str, analytic_line_list.ids)) + "])]", + 'domain': [('id', 'in', analytic_line_list.ids)], 'context': self.env.context - } + } @api.model def _prepare_estimated_cost_analytic_line( @@ -173,7 +145,7 @@ class MrpProduction(models.Model): 'general_account_id': general_account.id, 'estim_std_cost': -qty * (std_cost or product.manual_standard_cost), - 'estim_avg_cost': -qty * (avg_cost or product.cost_price), + 'estim_avg_cost': -qty * (avg_cost or product.standard_price), } @api.model @@ -182,7 +154,7 @@ class MrpProduction(models.Model): raise exceptions.Warning( _("One consume line has no product assigned.")) journal = self.env.ref('mrp.analytic_journal_materials', False) - name = _('%s-%s' % (prod.name, product_line.work_order.name or '')) + name = '%s-%s' % (prod.name, product_line.work_order.name or '') product = product_line.product_id qty = product_line.product_qty vals = self._prepare_estimated_cost_analytic_line( @@ -192,34 +164,26 @@ class MrpProduction(models.Model): @api.model def _create_pre_operation_estimated_cost(self, prod, wc, workorder): - if (wc.time_start and workorder.workcenter_id.pre_op_product): + if workorder.time_start: product = workorder.workcenter_id.pre_op_product - if not product: - raise exceptions.Warning( - _("Workcenter '%s' doesn't have pre-operation costing " - "product.") % workorder.workcenter_id.name) journal = self.env.ref('mrp.analytic_journal_machines', False) name = (_('%s-%s Pre-operation') % (prod.name, workorder.workcenter_id.name)) vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, - qty=wc.time_start) + qty=workorder.time_start) return self.env['account.analytic.line'].create(vals) @api.model def _create_post_operation_estimated_cost(self, prod, wc, workorder): - if (wc.time_stop and workorder.workcenter_id.post_op_product): + if workorder.time_stop: product = workorder.workcenter_id.post_op_product - if not product: - raise exceptions.Warning( - _("Workcenter '%s' doesn't have post-operation costing " - "product.") % workorder.workcenter_id.name) journal = self.env.ref('mrp.analytic_journal_machines', False) name = (_('%s-%s Post-operation') % (prod.name, workorder.workcenter_id.name)) vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, - qty=wc.time_stop) + qty=workorder.time_stop) return self.env['account.analytic.line'].create(vals) @api.model @@ -260,18 +224,15 @@ class MrpProduction(models.Model): @api.model def _create_operators_estimated_cost(self, prod, wc, workorder): - if wc.op_number > 0 and workorder.hour: + data_source = wc if wc.custom_data else wc.workcenter + if data_source.op_number > 0 and workorder.hour: product = workorder.workcenter_id.product_id - if not product: - raise exceptions.Warning( - _("There is at least this workcenter without " - "product: %s") % workorder.workcenter_id.name) journal = self.env.ref('mrp.analytic_journal_operators', False) - name = (_('%s-%s-%s') % + name = ('%s-%s-%s' % (prod.name, workorder.routing_wc_line.operation.code, product.name)) - cost = wc.op_avg_cost - qty = workorder.hour * wc.op_number + cost = data_source.op_avg_cost + qty = workorder.hour * data_source.op_number vals = self._prepare_estimated_cost_analytic_line( journal, name, prod, product, workorder=workorder, qty=qty, std_cost=cost, avg_cost=cost) @@ -284,13 +245,11 @@ class MrpProduction(models.Model): cond = [('mrp_production_id', '=', record.id)] analytic_line_obj.search(cond).unlink() for product_line in record.product_lines: - self._create_material_estimated_cost( - record, product_line) + self._create_material_estimated_cost(record, product_line) for line in record.workcenter_lines: op_wc_lines = line.routing_wc_line.op_wc_lines - wc = op_wc_lines.filtered(lambda r: r.workcenter == - line.workcenter_id) or \ - line.workcenter_id + wc = op_wc_lines.filtered( + lambda r: r.workcenter == line.workcenter_id) self._create_pre_operation_estimated_cost(record, wc, line) self._create_post_operation_estimated_cost(record, wc, line) done = self._create_worcenter_cycles_estimated_cost( @@ -302,10 +261,10 @@ class MrpProduction(models.Model): @api.multi def load_product_std_price(self): - for record in self: - product = record.product_id - if record.unit_std_cost: - product.manual_standard_cost = record.unit_std_cost + for production in self: + if production.unit_std_cost: + production.product_id.manual_standard_cost = ( + production.unit_std_cost) @api.multi def _get_min_qty_for_production(self, routing=False): diff --git a/mrp_production_estimated_cost/models/product.py b/mrp_production_estimated_cost/models/product.py new file mode 100644 index 000000000..c34cc694f --- /dev/null +++ b/mrp_production_estimated_cost/models/product.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import models, fields +import openerp.addons.decimal_precision as dp + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + manual_standard_cost = fields.Float( + string='Manual Standard Cost', digits=dp.get_precision('Product Price') + ) diff --git a/mrp_production_estimated_cost/static/description/icon.png b/mrp_production_estimated_cost/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..d3d3e419e4340d42721f42b031caa8b802c7344d GIT binary patch literal 10499 zcmV+eDg4%nP)dN#WI9tfDlL^PDn_Agd`*^*)Sw=5-_oaH#xE;Tehry zX|<&8e%<|+s(a^;TlLm@uUm`TGV0Tx`+2Wl-Kx4(_g81Xr^H&zB0ak#BJZ}={?>Cn zjx>@*06hC7B0H_M8=vcOq>*~A2e3%bEqM!hG7&jbjp8ox)6dYW4$nGimfuLJ zdO!?FuSSOY{hv{4uuV=7!Z8+_v3e{^{4 z%&+bFO$(|7+Sm_ZB8ySBAsE!!IaUCzrGvEyAP)wmpW5BS3;P0(g6E@^?#L+|St4tg z4XaF5O4#ZwS5))g1{MMEY?4+|W70Nq_PsK5srI%hASBX^gsoe*N;b&KaJIlDeHSxQ z7$NIrQPRn>b%3fyRZf(~**AHBlf`5Be)fV+j9oYmpadIFg0+^&m<}Ak{nls#T4;6! zipUmwr~3A9X4FW2DeIT4XZ7G3a(0 zL=V0WP%3*t+n5UifRMzSCpFVfOgmd|C2JhFz=9z5Nt(?-g#yuN?W47aQXY~xH&epP z7K_#qT6wOCM(GY3<^@6v8x16}0xUA88CXvkv5=|^I)9NgD2x`7m}S(Ij(UHK#X7qZ zv0WTd7Z5FcI5?K=GN*^Ht^{zUC^~L=N&E3 z)yEkj4XI%6LGAVgCRRYwO@Q@HJwyb9d$J>Ih-`@1be+yU{T5>l76*XtCgX)c3ugty znLXCfzyZ2b;x$as0;E+-JD^&9IVe2uQ)bZKpC7J~(>5mql-*4EVm zW?mv7K4#4R0Ynt|=i&mNzqIhK;8+JB0;IDXc9S0a0c;uzc#I~eku^k(RzU4Qb<9{G zvQZrZiy~m5a{^nHezJ{|?KZ0U0XkU$iNyfc^{k$& z>wA9E!s-AxMbOwdGekN+gqDV+&=ierhdU^VkH2OHc98vv6%bj2ZO{QObXuTbP-K(k ze@Q49sLg37A>iT$F|*JX$M)+~d)jf6ADO6ggpsR*~V#glClM^NI4Bc80bA^}M@5FHaj z63JjMFB*;iRkV9}6f`K77LyWUZstd}<_CZ{ zA>{&JY~BU{V^H`3CfAQG3?Z3b@B&EU?2YkuiJz<}!j_9LJ&v9p$5yoinD_RKKzYK}txb0}<`pqu;`ITo&9t{f3GCo5j6=mvvyYOPK&%k9H4~eF4OM1T zW{#wU|K!vTfQH0cu@Qt7h{{ML!n z>3V>v%yd3WwQlRzl0rH$-i8OWt|mxqHni}7TEDsu&^+nQX+hRf;{dg77q%Oq82}>i zd> z4IVz51^{Zub3k!CqMO(7LZK!ASZnR>pBb{ELc~r(R0Zvk_}mrsBu#3TfWlbI@sq{0 z;}h@fO2P>>Q_xw6DVja?Ku$BKNCS(4Lg@Z- zO|;Y;vhLfL_e6YoPsBrG5!=TMGoA0`hM&Ca-mi=-tuQ=%6&GK0HA73+bq)g6HpHI5 zglmZK^cPRc=FQ3W2V(pP^>DE1kX({{Y4!xVlU>k8Kw2z7HOOFFOR*9QRRe#$E97?{ z2-z_{|AL*7u}cph+s5Hz+t|JX3WX6~aK(?aZr#l&)jWhou57H!BXnV7Si5|%K3fks zdG1!7J0;Lq(^h7tc3k&MEhn(e@pOSwI{*~5S!ldJAKV`DTiZeo6wm&NnVvqzefR$% zJ9d1U@44#Dti9w1YTKIp{*6hYDL#I;F2GGcNwQ~$;UzwZWMz`OJ_UYs*4OiVru6(N zky?uo{@2&4-2RQ~Ihp)MDo!8a-g|$W2Os)KOVLP6k}_Z|SWz_UfCBJ9jMbV|k@)#- zTZ>}xV2B*2kj0Fkgyzf#c+*!a{PoUfS53*B{pC4(?FedCkmt3^a|0=yOdZ0 z1~5(0z&3YqoIq-m)h5CPZw97t09AYXKlykxugM?D3s)}fxW;l`Jobqv{*L|o@2$Il z8^ghXa)kn$DRBkIIzWAah)WN%wd|jGTg_Yqo8%)dCWWSu2*+nFKmGMe#~m{oZoAUw zXRqwfgRA7lCQ7sY|ZMpIE@wIsz6 zBqY<1Sd+@u8)A~N8`#u#Po;POTeohNEx>0t?dU2jZhhs8mj*_M4d4!@hm@aM49C zujLjcPNTG2s>KO&S5h_>0dyAu#wL*f3kotSZ0huPe>i-T{UJxV>MT>z~;lfwaMDNqSqqhB#t0!4Mv;} z&>jk|`<9)#XkCB_h1VnlMAVZ0*JMV_+qJfM+DC~`d+tI5#qMQm3{e!Jq6*>B;Jt`E z^nBn1?Euh_uA=50Ln^aoS>9UFTjE+j3nhL3aF zrQOO{S4md;DQig29jwO$l3W0%1GIVqErA+UfuA9hSw$uoMd=($X{?o03?%swQBPP*N@*{P_6vAk4y`lT2JdLvr7P<=kQer#RTd#sx88bd_ZxDaP$~x)&Uc>8f7(-J zY}U5-nFjz=!`)lA_U%AOKEIS~pa^_W+6U#ku#=6`J!*P@;vV3pc>jB9M~WRs#$uJ} zm_eNA1=iM!M1T;PmK{Wi5}71?D$OzR7!XdRC;?FlK?(OfCbhwy$CR28bm>rM z|4?Y)=l*4u=~~^FgtyNj0+1RP5D~Ju<>d0KfDBQj;^NT})|gnUx3zRIL7;WbAGpPx zaRNy4WSiE%7N0=f3UI^LEmnXMWnJVl0zyQpI87m~Rk7A>7or*n)br?#ys0A{DX6Yo z;8TxPxcbkh*mfjp0YPVKocy{tP=F#bnkdq4DVT|qHj@%@@l2_-RlhYqKyzkrQ;QYE z#0lgCMUtSB5{?$)1*QfFV?CwXrNuy?ir`izS?~E1V(bXjw_TO#y5o~4B3}F#ll8~MiWI6yJ@31WLvKkYEu^dC7d})3QP7esm;XzOcG%d_cE$x zGvLGZu@YfxPkGp-IUtCHh>B3k;(5=XR~vS81l@jZj^DelMA+q8LIZ!hv%=r*?CdeD zAF{3lwrq)It#nSSKdheLu}fVhzi}(n0|)$tgaT zt8YeK)_0>2!JrfSb}aTSn&c6@#7*71|h6z^hPwsVsHJ-XPe+C+JPrYR|q4Oi-8+hN``&&i<6ut&0^$1BJSl<4y5}~ z>(r400Q}$o(!;KC!{6;n_u9>qR(;~zd+r_@xPv82Z(?}(2C|vqlyd^H_HS&2N>VqC zCb9~vbgjq)z&Gy!e#DJ6Q39oFI#}|1QdY|87rJF#fL2(S?dG^p;=7oeLVEn81o{x( zrPDVK^=*X%cN$~hcizJi_VGS+?gsSmmFS@!Y6UINbyiXc(Znp?*iQCO-$hnF$*}F1 zuh-EP3@+{OFMp($*L=?MW?zIfilGz`OioyKJy9j9 zy4A_otP`$SI|yd*MuZy=J~7VyUpvYz*9~C(RqqmSC8*^fnffu4pvO5Q3siGNV^>q% z`FqUnyM!_MwN4;N5do^n5FzUS&0#X5{J z2Bj3%MjSorvF-kTqDY90<)WcMSU*l&g_1*0ZRZpJaFjQxfQ{F$btkSo4Q7J6_L+=1 zQ3d7;hE9DwP`#iAKwqB6dbcz6)E$tSt)y7$K*XdP0D z&5rXWI4i)!@q#&?Ah9*zB%xywk&l1;7E^AdP)`Nh*nWZ3?YTfra4+8FGEB_k1q{!_pdcuPUD z8>!~52fomHJG$xs-Dvfo=3Or>@UE8@c2A6!KRIDxa=j2jUA)6x0hTl&w+yn8D6@Cz58;MW*=eiGfxmj8jE7|vJ$I@bl1fO zA@DmNg@HbJ{j1@w&%lrU5UgGz-2Q6;2ab7YEhr@@QHTHn0S|uu4KOeq0b`&G1(g3i%ntyH^w?`>x^#)hE7xVt8UO&r;vSxQ z>f>B~`OmhGtCft2!?6Y{k$b&t61Huzu4_6$O*arwkndSlc-74}|J=~v&^1?Vx}3?$ zDWJ^bj~yn+^fS=k&&=#J{r!F9^93d*PBGBm&sesfz0YVK-M#}8fkClxa29%0*F3|> z!p^7MlWHsR(v}dSl3{FYiX%te_>HZ-HNEDv5`@UY?4(dGhDZRRfM|DFM%?kA*bkq( z8*cf2STy7v=f7h){M)UH^m%vKFcCeZg z*503oz5rAidYtCj_m_`PPIB=K`l{kk@9KVmVikzo0R-|eHCL0$Z4NFIl9o<TmQv^`5L(D&0)oH?(S*?i>n|;H`0xs?bVK4*5Q!q6HkL{oPUXJv`Y!OOXSThVI#{h|}6D`Y@!SWGU zI|LIaW2vW@Cje;n0|3laExX1-vOZis+#wxo&U}EnCa-md@4fDK_}0JPMzOdzwg1e_ zp(f2g?eHqL0t`<6#pXAvwwx{bbnHH3wFP!Q38hk%Y!nejAu3cTt*M3~+Kae)^Ahxo9RO8?6R}z*8kVLU zuMGhA?JE!6JyqfHv5=i(Rd$Y5**_6sE&R}iEMIv`iW?W^)EioZL7tam+2~8z-4OtX zn@zveETqK#N&a^accX(nu1Jf-o<(qM*wri)sKPVPJabq?-T@Tu`n}8ExAOAdpO~1i z?B9QYiBm@z85!ls(Ifc2&p`hG$HtD)QwTAp58n?k#(67Cr7|a~hA4?4rICfv*uXhe zgo_3o7{tJ@{`ao0$*YkP2bxnwSTP7eCN?X5@G^jbsUvXmILww{$&irk(N)HV+m7A_ zfZgNOfjho(GWEpwJY8lcguI`2b*BdafT5u);HeJ%m2LsR{EnG6tcKFWwcjitMljBe zfVFl8n0fr)zGrq|$iw#|-uMQe>1pWgouOD1lrrS=C8no^d_JI1C~@GxK`IsJvOcO0 zv%EJViaLy!^qj((m}6*hZ9X(Lo!kSMnWbheSe#BQz{7jt(f#n+7kgo!pV>}Ij$#`C zUVC-Vory`^a7Nr#Z{falfv5{%k^CLvE0DS%HC7#){mul7B_`}{&)~qx{X(0&<<^2=c5dQD$0vu%1h^Oe+oZ9gbw|HljReCRvr6+b?*t;nl4X?>qcV+U}`l;A^icbOgW`AD`uSzctA_ zZ|rY5b9WYyIskJJ(K1_ic)}>=~t`DoT}7)8Px7~I0Xs2sPH3M&0n`5L$r-}i9cYpOHSFgni~8o16kG$qRB<2w@xZTBEOs_{H>`g>TDRmRc32p4Hie$tzRhN>s73&s z1~(BHUXx>ZO^%+tzwK2&|HMavHls(4J${`NQK6viIOaJiX`h7}MEM&Si&Lcj=F|O>DZXKaE;{ z9ju5}QV2@v_ReklcHWl8KsNuned@ohT=}bojDBKCuJXD~gA*^fZdHj~#y z8Ccfm+`UTNadiCI0tTamuf6N9?O9Deba4guW;7pt?Fg^@@S(1@=_7|KJaTBf+d0<$ z#us*c8~)FngYo@dUUtI=@clx{h|=w=X)h1ZzyZ$m(49oc!Gj0)0lzuAa`ioX zP7MClt|LcRzxjGYUlvNCn_Qtj*-Zdw-~?KsL@{z^qiY#!+b^2fMuJyt$nnwFj-)1I zoCbN+6W}_M)&V!X^bZ&qSl^sBuHu$*gv69fYib^?lMbM@Yf7D2>ym8`z_CO79?oWh zhqmqa`252zHjwe0iI@!_>q9PpobUe6wKbs-cvpY&oy*#vl+&a+qk(U^z7J0eKlzzs z%vPTrT{#m1j408o~okRQ$D`!{ly01)8az?+jFdb6spH=}wx?GQ#*O_ohi4y|{l&I}Q; zo)?6Hm#HeH<_9MmMpHAzrWkThpT7(}4~?x0l_o1=VPtFZyMaD$FrU{cuFfvJo(%v1 z2y{tAK~xs%0<5XYaB6BgYILMrVy$gL__}rLHb+r(!{lU9u3ldD-*H3n2TRtzv}(yD z6P-+aqZObPcv=`3T}$7{>UXbw{ny@i`d8g>8E0C=LPUJvg}{sA_A+2aN>>Z)1|9{z zi_5+IrnPh1s2395^GmXH{|SCUG{4xNCun-=8@>k~^kt!UWG&gz7k+xWukWpEZu(ei zai;mu83Um0Kq9XLK9#a*m$i1|IXTIHa(eF%%SD4(zO;5!Upd-u@O+EXPNmf1H0hk@ zvVe5Y3i4}S@o<#sxq0}eKk1xZGY36?)-hiIF-l|M?$?CH?=OO^kBiiyATgeC92ZTX3OK$;s@-Bn8uK<~>Yf1s81g6@nGyNOR z=A4TFIL|1T;X$p;Nu{#*qRGU`o>Ao1n-~ke4_a4{a4MsM!lpS7+J(;Lt7CTo?@#%? zVG>7`a2}GM;bChkW0BSFU5&9Xz>9qWqGC%Rn#Pt- z^jPegGdOE0dSs@Qf#x)>@-O@JmCORw**9h@)%Sn zR&d}CvS)Ojb3E=vI!B~^9u-?XXiS9Cs-6{;H0{<8O7$cXj*oDBvU^>>4zvh>^OUO7 z9QCx>j;WwTyONqU)=&NaXbLHhFTp#x2!Q`gv>8gG)L})rodf8GPcwm(kB%@kc1AIQ zMF5jU!*D^62%Fyu3NKb&_L;F!JK+CmHvzQ#tT1&$$X9Pzprbi zZbIiQA7GKrfIj;g%~jt!i1t@w^(F&XNmRWO;RTcqFK7R!gxUS=>n<7>JvRQXJn#zB z=={BC@1x8{|Hv%|ySj)M0q|VW?hmXoCb~_iyiy1+A)Fbo)nbNl3Mr4nJC3mRFDJQi zljXKsEMBrwrLk1cd_KkH41D=t;UDjZJKtov@+!$N+JhwpoMo`=>Ntu;!;OWtrL zuRzoV43YAKQQmI5(t&-38v!%;e76I@aP%d!qUi5w6v2`0U zJ2OS)RD~dL9^FROT*a)vT&duDe%s0|mm#Dml}q@(k5Y1OO!J$O}oF>WHEJwyw zIrV+_I@%x;0K(|#2otAH@$}Ps7#+>y2Y%BFulxJ@D3wZ_*t?J6;bA=AYuX<80r`B6 zUAuPC)6+vwZ!guVqHHSE%ZjJdA^( zPEBDa=T1q48jxR|KK@5D=hun2$#lKRUGDqR` zT=BBmY;UPl@^LlHEAeM2B9XP$E&`yL5&-x>7Wd?2;{Ou>B>hPFo<^;%)=(*x@qJ%{ zAV4YAG{JrlI2NA*007@l+3tIkX5IP$PdgD|j6rMd8)JIo@mGM^c)S)cBC^N<5^7QI z1UKOx?&c)`IJ;UYj;!`|=m&ubf{fBy<9U8$!2SnCN1D;MKN|1d7eimn~q;#LD#&jc9IY#~U?Z;ktr^4sZvpw+L? z`djOES|`0}0E+-PcQl8a_)HbYt`pR4a_2*f0Jy;E{{zWNp@s%ofhPa}002ovPDHLk FV1kvv1|I+b literal 0 HcmV?d00001 diff --git a/mrp_production_estimated_cost/static/description/icon.svg b/mrp_production_estimated_cost/static/description/icon.svg new file mode 100644 index 000000000..51bcee8f6 --- /dev/null +++ b/mrp_production_estimated_cost/static/description/icon.svg @@ -0,0 +1,354 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mrp_production_estimated_cost/tests/__init__.py b/mrp_production_estimated_cost/tests/__init__.py new file mode 100644 index 000000000..07016c008 --- /dev/null +++ b/mrp_production_estimated_cost/tests/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# © 2015 Pedro M. Baeza +# © 2015 Antiun Ingeniería +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import test_mrp_production_estimated_cost diff --git a/mrp_production_estimated_cost/tests/test_mrp_production_estimated_cost.py b/mrp_production_estimated_cost/tests/test_mrp_production_estimated_cost.py new file mode 100644 index 000000000..221ef51f7 --- /dev/null +++ b/mrp_production_estimated_cost/tests/test_mrp_production_estimated_cost.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# © 2015 Pedro M. Baeza +# © 2015 Antiun Ingeniería +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp.tests import common + + +class TestMrpProductionEstimatedCost(common.TransactionCase): + def setUp(self): + super(TestMrpProductionEstimatedCost, self).setUp() + self.production = self.env.ref( + 'mrp_operations_extension.mrp_production_opeext') + self.journal_materials = self.env.ref('mrp.analytic_journal_materials') + self.journal_machines = self.env.ref('mrp.analytic_journal_machines') + self.journal_operators = self.env.ref('mrp.analytic_journal_operators') + + def test_flow(self): + self.production.action_compute() + self.production.workcenter_lines[0].op_number = 1 + self.production.signal_workflow('button_confirm') + self.production.force_production() + self.assertTrue(self.production.analytic_line_ids.filtered( + lambda x: x.journal_id == self.journal_materials)) + self.assertTrue(self.production.analytic_line_ids.filtered( + lambda x: x.journal_id == self.journal_machines)) + self.assertTrue(self.production.analytic_line_ids.filtered( + lambda x: x.journal_id == self.journal_operators)) + self.assertEqual(self.production.created_estimated_cost, 11) + + def test_show_action(self): + action = self.production.action_show_estimated_costs + self.assertTrue(action) diff --git a/mrp_production_project_estimated_cost/views/account_analytic_line_view.xml b/mrp_production_estimated_cost/views/account_analytic_line_view.xml similarity index 100% rename from mrp_production_project_estimated_cost/views/account_analytic_line_view.xml rename to mrp_production_estimated_cost/views/account_analytic_line_view.xml diff --git a/mrp_production_project_estimated_cost/views/mrp_production_view.xml b/mrp_production_estimated_cost/views/mrp_production_view.xml similarity index 75% rename from mrp_production_project_estimated_cost/views/mrp_production_view.xml rename to mrp_production_estimated_cost/views/mrp_production_view.xml index 486ca81cc..4c4a48e37 100644 --- a/mrp_production_project_estimated_cost/views/mrp_production_view.xml +++ b/mrp_production_estimated_cost/views/mrp_production_view.xml @@ -1,12 +1,13 @@ - - mrp.production.project.form.view.inh.estimatedcost + + + Manufacturing order form (active field) mrp.production - + - + @@ -18,23 +19,30 @@ - - + + mrp.production.form.view.inh.estimatedcost mrp.production @@ -48,8 +56,6 @@ - - @@ -67,7 +73,7 @@ - Estimated costs from production order + Estimated costs from manufacturing order account.analytic.line tree,form [('mrp_production_id','=',active_id),('task_id','=',False)] @@ -79,8 +85,7 @@
-
-
+
@@ -95,20 +100,18 @@ type="object" string="Costs analysis" name="action_show_estimated_costs" - icon="fa-bar-chart"> - + icon="fa-bar-chart"/> + icon="fa-list"/>
- - Fictitious Manufacturing Orders to estimate costs + + Virtual Manufacturing Orders to estimate costs ir.actions.act_window mrp.production form @@ -119,8 +122,10 @@ [('active','=',False)] - +
diff --git a/mrp_production_project_estimated_cost/views/product_view.xml b/mrp_production_estimated_cost/views/product_view.xml similarity index 71% rename from mrp_production_project_estimated_cost/views/product_view.xml rename to mrp_production_estimated_cost/views/product_view.xml index ffabc299a..6b8180e02 100644 --- a/mrp_production_project_estimated_cost/views/product_view.xml +++ b/mrp_production_estimated_cost/views/product_view.xml @@ -1,6 +1,7 @@ + product.template.form.view.inh.estimatedcost product.template @@ -11,31 +12,36 @@
+ product.product.form.view.bom.button.inh.estimatedcost product.product + product.template.form.view.bom.button.inh.estimatedcost product.template + diff --git a/mrp_production_estimated_cost/wizard/__init__.py b/mrp_production_estimated_cost/wizard/__init__.py new file mode 100644 index 000000000..5c4aca0d9 --- /dev/null +++ b/mrp_production_estimated_cost/wizard/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import wiz_create_virtual_mo diff --git a/mrp_production_estimated_cost/wizard/wiz_create_virtual_mo.py b/mrp_production_estimated_cost/wizard/wiz_create_virtual_mo.py new file mode 100644 index 000000000..3fac24df4 --- /dev/null +++ b/mrp_production_estimated_cost/wizard/wiz_create_virtual_mo.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +# (c) 2014-2015 Avanzosc +# (c) 2014-2015 Pedro M. Baeza +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from openerp import api, fields, models + + +class WizCreateVirtualMo(models.TransientModel): + _name = "wiz.create.virtual.mo" + + date_planned = fields.Datetime( + string='Scheduled Date', required=True, default=fields.Datetime.now) + load_on_product = fields.Boolean("Load cost on product") + analytic_account_id = fields.Many2one( + comodel_name="account.analytic.account", string="Analytic account") + + @api.multi + def do_create_virtual_mo(self): + self.ensure_one() + production_obj = self.env['mrp.production'] + product_obj = self.env['product.product'] + routing_obj = self.env['mrp.routing'] + active_ids = self.env.context['active_ids'] + if self.env.context['active_model'] == 'product.template': + cond = [('product_tmpl_id', 'in', active_ids)] + products = product_obj.search(cond) + else: + products = product_obj.browse(active_ids) + productions = self.env['mrp.production'] + for product in products: + vals = { + 'product_id': product.id, + 'product_template': product.product_tmpl_id.id, + 'product_qty': 1, + 'date_planned': self.date_planned, + 'user_id': self._uid, + 'active': False, + 'product_uom': product.uom_id.id, + 'analytic_account_id': self.analytic_account_id.id, + } + vals.update(production_obj.product_id_change( + product.id, 1)['value']) + if 'routing_id' in vals: + routing = routing_obj.browse(vals['routing_id']) + product_qty = production_obj._get_min_qty_for_production( + routing) or 1 + vals['product_qty'] = product_qty + prod_vals = production_obj.product_id_change( + product.id, product_qty)['value'] + vals.update(prod_vals) + vals['product_attributes'] = [tuple([0, 0, line]) for line in + vals.get('product_attributes', [])] + new_production = production_obj.create(vals) + new_production.action_compute() + productions |= new_production + if self.load_on_product: + productions.load_product_std_price() + return { + 'view_type': 'form', + 'view_mode': 'tree,form', + 'res_model': 'mrp.production', + 'type': 'ir.actions.act_window', + 'domain': ("[('id', 'in', %s), ('active','=',False)]" % + productions.ids) + } diff --git a/mrp_production_estimated_cost/wizard/wiz_create_virtual_mo_view.xml b/mrp_production_estimated_cost/wizard/wiz_create_virtual_mo_view.xml new file mode 100644 index 000000000..f3aaf8520 --- /dev/null +++ b/mrp_production_estimated_cost/wizard/wiz_create_virtual_mo_view.xml @@ -0,0 +1,52 @@ + + + + + wiz.create.virtual.mo.view + wiz.create.virtual.mo + +
+ + + + + +
+
+
+
+
+ + Create virtual MO + wiz.create.virtual.mo + form + form + + new + + + +
+
diff --git a/mrp_production_project_estimated_cost/README.rst b/mrp_production_project_estimated_cost/README.rst deleted file mode 100644 index 9964faa5a..000000000 --- a/mrp_production_project_estimated_cost/README.rst +++ /dev/null @@ -1,29 +0,0 @@ -Estimated costs in manufacturing orders -======================================= - -Thanks to this module, when a Manufacturing Order is confirmed, analytic lines -are automatically generated in order to estimate the costs of the production -order. - -At the same time, the estimated allocation of raw materials, machine operators -time and costs will be made as followed: - -* Raw Material cost: an analytic line will be generated for each material to - be consumed in the order. -* Operators time: One line will be generated for the time recorded by the - operators in each operation, so that the number of lines will be equal to - the number of operators in the operation. -* Cost associated to machines: two analytic lines for each operation will be - created in the associated routing, one for hourly cost and the other for per - cycle cost. - -A new menu is available "Virtual Manufacturing Orders for cost estimation" -where the user can managed virtual MO: - -* When a new MO is created and the new field "active" is false, the MO will be - considered virtual. It is only used for cost estimation and can not be - confirmed. -* To estimate the cost of the MO, the user has to press the button "Compute - data" in the tab "Work Orders". -* These virtual MO have a separate sequence number. -* The user can create a virtual MO directly from the product form. diff --git a/mrp_production_project_estimated_cost/__init__.py b/mrp_production_project_estimated_cost/__init__.py deleted file mode 100644 index 4270b1259..000000000 --- a/mrp_production_project_estimated_cost/__init__.py +++ /dev/null @@ -1,19 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -from . import models -from . import wizard diff --git a/mrp_production_project_estimated_cost/__openerp__.py b/mrp_production_project_estimated_cost/__openerp__.py deleted file mode 100644 index 134022270..000000000 --- a/mrp_production_project_estimated_cost/__openerp__.py +++ /dev/null @@ -1,51 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## - -{ - "name": "Estimated costs in manufacturing orders", - "version": "1.0", - "category": "Manufacturing", - "author": "OdooMRP team," - "AvanzOSC," - "Serv. Tecnol. Avanzados - Pedro M. Baeza", - "website": "http://www.odoomrp.com", - "contributors": [ - "Alfredo de la Fuente ", - "Pedro M. Baeza ", - "Ana Juaristi ", - "Oihane Crucelaegui ", - ], - "depends": [ - "product", - "analytic", - "mrp", - "mrp_operations_extension", - "mrp_project_link", - "product_variant_cost" - ], - "data": [ - "data/analytic_journal_data.xml", - "data/fictitious_mrp_production_sequence.xml", - "wizard/wiz_create_fictitious_of_view.xml", - "views/account_analytic_line_view.xml", - "views/mrp_production_view.xml", - "views/product_view.xml", - "views/mrp_bom_view.xml" - ], - "installable": True, -} diff --git a/mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml b/mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml deleted file mode 100644 index c6091eeb9..000000000 --- a/mrp_production_project_estimated_cost/data/fictitious_mrp_production_sequence.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Fictitious MRP Production - fictitious.mrp.production - - - Fictitious MRP Production - fictitious.mrp.production - - FMO - - - diff --git a/mrp_production_project_estimated_cost/i18n/es.po b/mrp_production_project_estimated_cost/i18n/es.po deleted file mode 100644 index 3b410379e..000000000 --- a/mrp_production_project_estimated_cost/i18n/es.po +++ /dev/null @@ -1,291 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-11-20 18:13+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Spanish (http://www.transifex.com/oca/odoomrp-wip-8-0/language/es/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: es\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "%s-%s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "%s-%s Post-operación" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "%s-%s Pre-operación" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "%s-%s-%s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "%s-%s-C-%s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "%s-%s-H-%s" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "Activa" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "Línea analítica" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "Creación automática" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "Lista de material" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "Cancelar" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "Líneas de costes" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "Crear costes estimados" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "Crea OF ficticia" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "CrearOF ficticia" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "Creado por" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "Creado el" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. AVG" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. STD" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "Coste medio estimado" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "Coste medio estimado por unidad" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "Costes estimados" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "Coste estándar estimado" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "Coste estándar estimado por unidad" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "Costes estimados desde orden de producción" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "Órdenes de producción ficiticias para estimar costes" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "Contabilidad general" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "ID" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "Última actualización por" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "Última actualización el" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Estimated Cost on Product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "Cargar coste en el producto" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "Coste estándar manual" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "Órden de producción" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "Costes de fabricación" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "Una de las líneas de consumo no tiene producto asignado." - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "Plantilla de producto" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "Información de la fabricación" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "Proyecto" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "Fecha programada" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "Esta máquina no tiene un producto asignado: %s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "Debe definir una cuenta analítica para esta MO: %s" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "o" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" diff --git a/mrp_production_project_estimated_cost/i18n/fr.po b/mrp_production_project_estimated_cost/i18n/fr.po deleted file mode 100644 index 97d10692f..000000000 --- a/mrp_production_project_estimated_cost/i18n/fr.po +++ /dev/null @@ -1,279 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-10-07 10:44+0000\n" -"PO-Revision-Date: 2015-10-04 00:01+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: French (http://www.transifex.com/oca/odoomrp-wip-8-0/language/fr/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: fr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "Annuler" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "Créé par" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "Créé le" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "Id." - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "Mis à jour par" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "Mis à jour le" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Cost on Product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "ou" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/it.po b/mrp_production_project_estimated_cost/i18n/it.po deleted file mode 100644 index febaf523b..000000000 --- a/mrp_production_project_estimated_cost/i18n/it.po +++ /dev/null @@ -1,291 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-11-19 16:26+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Italian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/it/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: it\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "Distinta base" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. AVG" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. STD" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Estimated Cost on Product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "Ordine di produzione" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "Costi di produzione" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "Template prodotto" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "Bisogna definire un conto analitico per questo MO: %s" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot b/mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot deleted file mode 100644 index 8ca00b888..000000000 --- a/mrp_production_project_estimated_cost/i18n/mrp_production_project_estimated_cost.pot +++ /dev/null @@ -1,267 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-02-24 15:18+0000\n" -"PO-Revision-Date: 2015-02-24 15:18+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_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:165 -#, python-format -msgid "%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:187 -#, python-format -msgid "%s-%s Post-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:178 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:238 -#, python-format -msgid "%s-%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:200 -#, python-format -msgid "%s-%s-C-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:215 -#, python-format -msgid "%s-%s-H-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,partner:0 -msgid "Customer" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Estim. Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Extra Information" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Cost on Product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:164 -#, python-format -msgid "One consume line has no product assigned." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:198 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:213 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:233 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:257 -#, python-format -msgid "You must define Income account in the product \"%s\", or in the product category" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:261 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "" - diff --git a/mrp_production_project_estimated_cost/i18n/pt_BR.po b/mrp_production_project_estimated_cost/i18n/pt_BR.po deleted file mode 100644 index b15a4c103..000000000 --- a/mrp_production_project_estimated_cost/i18n/pt_BR.po +++ /dev/null @@ -1,291 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-11-19 16:26+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/odoomrp-wip-8-0/language/pt_BR/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: pt_BR\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "Ativo" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "Lista de materiais" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "Cancelar" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "Criado por" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "Criado em" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. AVG" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. STD" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "ID" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "Última atualização por" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "Última atualização em" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Estimated Cost on Product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "Ordem de Produção" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "Produto Modelo" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "Projeto" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "ou" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/ro.po b/mrp_production_project_estimated_cost/i18n/ro.po deleted file mode 100644 index 9c9422f7d..000000000 --- a/mrp_production_project_estimated_cost/i18n/ro.po +++ /dev/null @@ -1,291 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Translators: -msgid "" -msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-11-19 16:26+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/ro/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "Listă de materiale" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "Anulare" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "Creat de" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "Creat în" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. AVG" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. STD" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "Contabilitate generală" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "ID" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "Ultima actualizare de" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "Ultima actualizare în" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Estimated Cost on Product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "Comandă fabricație" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "Costuri fabricație" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "Produs șablon" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "Proiect" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "sau" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "" diff --git a/mrp_production_project_estimated_cost/i18n/sl.po b/mrp_production_project_estimated_cost/i18n/sl.po deleted file mode 100644 index 68bfd7d18..000000000 --- a/mrp_production_project_estimated_cost/i18n/sl.po +++ /dev/null @@ -1,292 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -# Translators: -# Matjaž Mozetič , 2015 -msgid "" -msgstr "" -"Project-Id-Version: odoomrp-wip (8.0)\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-20 18:10+0000\n" -"PO-Revision-Date: 2015-11-19 16:26+0000\n" -"Last-Translator: OCA Transbot \n" -"Language-Team: Slovenian (http://www.transifex.com/oca/odoomrp-wip-8-0/language/sl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: sl\n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "%s-%s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "%s-%s po operaciji" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "%s-%s pred operacijo" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "%s-%s-%s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "%s-%s-C-%s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "%s-%s-H-%s" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "Aktivno" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "Analitična postavka" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "Samodejno ustvarjanje" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "Kosovnica" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "Preklic" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "Stroškovne postavke" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "Analiza stroškov" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "Ustvari oceno stroškov" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "Ustvari navidezni proizvodni nalog" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "Ustvari navidezni proizvodni nalog" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "Ustvari fiktiven proizvodni nalog" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "Ustvaril" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "Ustvarjeno" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. AVG" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_tree_inh_estimatedcost -msgid "Estim. STD" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "Ocena povprečnih stroškov" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "Ocena povprečnega stroška enote" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "Ocena stroškov" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "Ocena standardnih stroškov" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "Ocena stroška standardne enote" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "Ocena stroškov iz proizvodnega naloga" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "Navidezni proizvodni nalogi za oceno stroškov" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "Glavna knjiga" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "ID" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "Zadnjič posodobil" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "Zadnjič posodobljeno" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Estimated Cost on Product" -msgstr "Zadnja ocena stroška proizvoda" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "Naloži strošek na proizvod" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "Standardni strošek ročno" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "Proizvodni nalog" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "Proizvodni stroški" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "Ena postavka porabe nima dodeljenega proizvoda." - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "Predloga proizvoda" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "Proizvodne analitične postavke" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "Proizvodni stroški" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "Informacije o proizvodnji" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "Projekt" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "Načrtovani datum" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "Vsaj ta delovni center nima proizvoda: %s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "Delovni center '%s' nima po-operativnega stroškovnega proizvoda." - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "Delovni center '%s' nima pred operativnega stroškovnega proizvoda." - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "Potrebno je določiti analitični konto za proizvodni nalog: %s" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "ali" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" diff --git a/mrp_production_project_estimated_cost/i18n/vi_VN.po b/mrp_production_project_estimated_cost/i18n/vi_VN.po deleted file mode 100644 index 1a7dcd2ef..000000000 --- a/mrp_production_project_estimated_cost/i18n/vi_VN.po +++ /dev/null @@ -1,278 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_production_project_estimated_cost -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-11-28 09:13+0000\n" -"PO-Revision-Date: 2015-11-28 09: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" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:207 -#, python-format -msgid "%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:240 -#, python-format -msgid "%s-%s Post-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:224 -#, python-format -msgid "%s-%s Pre-operation" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:292 -#, python-format -msgid "%s-%s-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:256 -#, python-format -msgid "%s-%s-C-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:274 -#, python-format -msgid "%s-%s-H-%s" -msgstr "" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,active:0 -msgid "Active" -msgstr "Có hiệu lực" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_account_analytic_line -msgid "Analytic Line" -msgstr "Analytic Line" - -#. module: mrp_production_project_estimated_cost -#: field:project.project,automatic_creation:0 -msgid "Automatic Creation" -msgstr "Tạo dự động" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_bom -msgid "Bill of Material" -msgstr "Định mức Nguyên liệu" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Cancel" -msgstr "Hủy" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,analytic_line_ids:0 -msgid "Cost Lines" -msgstr "Chi tiết chi phí" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Costs analysis" -msgstr "Phân tích chi phí" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Create Estimated Costs" -msgstr "Tạo chi phí dự kiến" - -#. module: mrp_production_project_estimated_cost -#: view:product.product:mrp_production_project_estimated_cost.product_product_form_view_bom_button_inh_estimatedcost -#: view:product.template:mrp_production_project_estimated_cost.product_template_form_view_bom_button_inh_estimatedcost -msgid "Create Fictitious MO" -msgstr "Tạo Lệnh sản xuất giả lập" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.act_product_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_create_fictitious_of -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_run_template_create_fictitious_of -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitious MO" -msgstr "Tạo Lệnh sản xuất giả lập" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "Tạo Lệnh sản xuất giả lập" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_uid:0 -msgid "Created by" -msgstr "Tạo bởi" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,create_date:0 -msgid "Created on" -msgstr "Tạo vào" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_avg_cost:0 -#: field:mrp.production,avg_cost:0 -msgid "Estimated Average Cost" -msgstr "Chi phí trung bình dự kiến" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_avg_cost:0 -msgid "Estimated Average Unit Cost" -msgstr "Chi phí đơn vị trung bình dự kiến" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.estimated_cost_list_view -msgid "Estimated Costs" -msgstr "Chi phí dự kiến" - -#. module: mrp_production_project_estimated_cost -#: field:account.analytic.line,estim_std_cost:0 -#: field:mrp.production,std_cost:0 -msgid "Estimated Standard Cost" -msgstr "Chi phí tiêu chuẩn dự kiến" - -#. module: mrp_production_project_estimated_cost -#: field:mrp.production,unit_std_cost:0 -msgid "Estimated Standard Unit Cost" -msgstr "Chi phí đơn vị tiêu chuẩn dự kiến" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_estimated_costs_per_production -msgid "Estimated costs from production order" -msgstr "Chi phí dự kiến từ các lệnh sản xuất" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.mrp_fictitious_production_action -#: model:ir.ui.menu,name:mrp_production_project_estimated_cost.menu_mrp_fictitious_production_action -msgid "Fictitious Manufacturing Orders to estimate costs" -msgstr "Lệnh sản xuất giả lập để dự toán chi phí" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "General Accounting" -msgstr "Kế toán Tổng hợp" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,id:0 -msgid "ID" -msgstr "ID" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_uid:0 -msgid "Last Updated by" -msgstr "Cập nhật lần cuối bởi" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,write_date:0 -msgid "Last Updated on" -msgstr "Cập nhật lần cuối vào" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Load Estimated Cost on Product" -msgstr "Load Estimated Cost on Product" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,load_on_product:0 -msgid "Load cost on product" -msgstr "Lấy giá vốn từ sản phẩm" - -#. module: mrp_production_project_estimated_cost -#: field:product.template,manual_standard_cost:0 -msgid "Manual Standard Cost" -msgstr "Giá tiêu chuẩn (tính thủ công)" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_mrp_production -msgid "Manufacturing Order" -msgstr "Lệnh sản xuất" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "Manufacturing costs" -msgstr "Chi phí sản xuất" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:205 -#, python-format -msgid "One consume line has no product assigned." -msgstr "Một dòng tiêu thụ không có sản phẩm nào được gán." - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_product_template -msgid "Product Template" -msgstr "Mẫu sản phẩm" - -#. module: mrp_production_project_estimated_cost -#: model:ir.actions.act_window,name:mrp_production_project_estimated_cost.action_show_production_anaytic_lines -msgid "Production Analytic Lines" -msgstr "Production Analytic Lines" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_buttons_inh_estimatedcost -msgid "Production Costs" -msgstr "Chi phí sản xuất" - -#. module: mrp_production_project_estimated_cost -#: view:account.analytic.line:mrp_production_project_estimated_cost.view_account_analytic_line_form_inh_estimatedcost -msgid "Production Information" -msgstr "Thông tin sản xuất" - -#. module: mrp_production_project_estimated_cost -#: model:ir.model,name:mrp_production_project_estimated_cost.model_project_project -#: field:wiz.create.fictitious.of,project_id:0 -msgid "Project" -msgstr "Dự án" - -#. module: mrp_production_project_estimated_cost -#: field:wiz.create.fictitious.of,date_planned:0 -msgid "Scheduled Date" -msgstr "Ngày theo kế hoạch" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:254 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:271 -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:289 -#, python-format -msgid "There is at least this workcenter without product: %s" -msgstr "There is at least this workcenter without product: %s" - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:237 -#, python-format -msgid "Workcenter '%s' doesn't have post-operation costing product." -msgstr "Workcenter '%s' doesn't have post-operation costing product." - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:221 -#, python-format -msgid "Workcenter '%s' doesn't have pre-operation costing product." -msgstr "Workcenter '%s' doesn't have pre-operation costing product." - -#. module: mrp_production_project_estimated_cost -#: code:addons/mrp_production_project_estimated_cost/models/mrp_production.py:181 -#, python-format -msgid "You must define one Analytic Account for this MO: %s" -msgstr "Bạn phải định nghĩa một Tài khoản quản trị cho MO này: %s" - -#. module: mrp_production_project_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_project_estimated_cost.wiz_create_fictitious_of_view -msgid "or" -msgstr "hoặc" - -#. module: mrp_production_project_estimated_cost -#: view:mrp.production:mrp_production_project_estimated_cost.mrp_production_form_view_inh_estimatedcost -msgid "{'invisible':['|',('active','=',False),('state','!=','draft')]}" -msgstr "{'invisible':['|',('active','=',False),('state','!=','draft')]}" - diff --git a/mrp_production_project_estimated_cost/models/__init__.py b/mrp_production_project_estimated_cost/models/__init__.py deleted file mode 100644 index 4199c5cfa..000000000 --- a/mrp_production_project_estimated_cost/models/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -from . import account_analytic_line -from . import mrp_production -from . import product -from . import mrp_bom diff --git a/mrp_production_project_estimated_cost/models/account_analytic_line.py b/mrp_production_project_estimated_cost/models/account_analytic_line.py deleted file mode 100644 index 9f545a822..000000000 --- a/mrp_production_project_estimated_cost/models/account_analytic_line.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -from openerp import models, fields -import openerp.addons.decimal_precision as dp - - -class AccountAnalyticLine(models.Model): - _inherit = 'account.analytic.line' - - estim_std_cost = fields.Float(string='Estimated Standard Cost', - digits=dp.get_precision('Product Price')) - estim_avg_cost = fields.Float(string='Estimated Average Cost', - digits=dp.get_precision('Product Price')) diff --git a/mrp_production_project_estimated_cost/models/mrp_bom.py b/mrp_production_project_estimated_cost/models/mrp_bom.py deleted file mode 100644 index 6209cd794..000000000 --- a/mrp_production_project_estimated_cost/models/mrp_bom.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published -# by the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## - -from openerp import models, fields - - -class MrpBom(models.Model): - - _inherit = "mrp.bom" - - product_standard_price = fields.Float(string="Product Standard Price", - related="product_id.cost_price") - product_manual_standard_price = fields.Float( - string="Product Manual Standard Price", - related="product_id.manual_standard_cost") diff --git a/mrp_production_project_estimated_cost/models/product.py b/mrp_production_project_estimated_cost/models/product.py deleted file mode 100644 index 8c2306e39..000000000 --- a/mrp_production_project_estimated_cost/models/product.py +++ /dev/null @@ -1,28 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## - -from openerp import models, fields -import openerp.addons.decimal_precision as dp - - -class ProductTemplate(models.Model): - _inherit = 'product.template' - - manual_standard_cost = fields.Float( - string='Manual Standard Cost', digits=dp.get_precision('Product Price') - ) diff --git a/mrp_production_project_estimated_cost/views/mrp_bom_view.xml b/mrp_production_project_estimated_cost/views/mrp_bom_view.xml deleted file mode 100644 index 256462531..000000000 --- a/mrp_production_project_estimated_cost/views/mrp_bom_view.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - mrp.bom.tree.parent.view - mrp.bom - - - - - - - - - - mrp.bom.product.tree.view - mrp.bom - - - - - - - - - - - - - diff --git a/mrp_production_project_estimated_cost/wizard/__init__.py b/mrp_production_project_estimated_cost/wizard/__init__.py deleted file mode 100644 index 3b124e3fe..000000000 --- a/mrp_production_project_estimated_cost/wizard/__init__.py +++ /dev/null @@ -1,18 +0,0 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see http://www.gnu.org/licenses/. -# -############################################################################## -from . import wiz_create_fictitious_of diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py deleted file mode 100644 index b345f0ab1..000000000 --- a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of.py +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# For copyright and license notices, see __openerp__.py file in root directory -############################################################################## -from openerp import models, fields, api - - -class WizCreateFictitiousOf(models.TransientModel): - _name = "wiz.create.fictitious.of" - - date_planned = fields.Datetime( - string='Scheduled Date', required=True, default=fields.Datetime.now) - load_on_product = fields.Boolean("Load cost on product") - project_id = fields.Many2one("project.project", string="Project") - - @api.multi - def do_create_fictitious_of(self): - production_obj = self.env['mrp.production'] - product_obj = self.env['product.product'] - routing_obj = self.env['mrp.routing'] - self.ensure_one() - active_ids = self.env.context['active_ids'] - active_model = self.env.context['active_model'] - production_list = [] - if active_model == 'product.template': - cond = [('product_tmpl_id', 'in', active_ids)] - product_list = product_obj.search(cond) - else: - product_list = product_obj.browse(active_ids) - for product in product_list: - vals = {'product_id': product.id, - 'product_template': product.product_tmpl_id.id, - 'product_qty': 1, - 'date_planned': self.date_planned, - 'user_id': self._uid, - 'active': False, - 'product_uom': product.uom_id.id, - 'project_id': self.project_id.id, - 'analytic_account_id': ( - self.project_id.analytic_account_id.id) - } - prod_vals = production_obj.product_id_change(product.id, - 1)['value'] - vals.update(prod_vals) - if 'routing_id' in vals: - routing = routing_obj.browse(vals['routing_id']) - product_qty = production_obj._get_min_qty_for_production( - routing) or 1 - vals['product_qty'] = product_qty - prod_vals = production_obj.product_id_change( - product.id, product_qty)['value'] - vals.update(prod_vals) - vals['product_attributes'] = [tuple([0, 0, line]) for line in - vals.get('product_attributes', [])] - new_production = production_obj.create(vals) - new_production.action_compute() - new_production.calculate_production_estimated_cost() - production_list.append(new_production.id) - if self.load_on_product: - for production_id in production_list: - try: - production = production_obj.browse(production_id) - production.load_product_std_price() - except: - continue - return {'view_type': 'form', - 'view_mode': 'tree,form', - 'res_model': 'mrp.production', - 'type': 'ir.actions.act_window', - 'domain': "[('id','in'," + str(production_list) + "), " - "('active','=',False)]" - } diff --git a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml b/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml deleted file mode 100644 index 04f7535cb..000000000 --- a/mrp_production_project_estimated_cost/wizard/wiz_create_fictitious_of_view.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - wiz.create.fictitious.of.view - wiz.create.fictitious.of - -
- - - - - -
-
-
-
-
- - Create fictitious MO - wiz.create.fictitious.of - form - form - - new - - - -
-
diff --git a/oca_dependencies.txt b/oca_dependencies.txt index 3ca90d77a..69fdd779f 100644 --- a/oca_dependencies.txt +++ b/oca_dependencies.txt @@ -3,4 +3,3 @@ product-attribute account-analytic product-variant - From 6bcbc95c3ff047fd0e839c32f6106b9a75e137f9 Mon Sep 17 00:00:00 2001 From: Oihane Crucelaegui Date: Fri, 22 Jan 2016 00:03:48 +0100 Subject: [PATCH 20/20] [IMP] mrp_production_estimated_cost * added some spanish translations * button cost analysis show only estimated lines * miss typing fixed --- mrp_production_estimated_cost/i18n/es.po | 11 +++-------- .../models/mrp_production.py | 10 +++++----- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/mrp_production_estimated_cost/i18n/es.po b/mrp_production_estimated_cost/i18n/es.po index 7bfa1cdb3..2258b9740 100644 --- a/mrp_production_estimated_cost/i18n/es.po +++ b/mrp_production_estimated_cost/i18n/es.po @@ -74,7 +74,7 @@ msgstr "Líneas de costes" #. module: mrp_production_estimated_cost #: view:mrp.production:mrp_production_estimated_cost.mrp_production_buttons_inh_estimatedcost msgid "Costs analysis" -msgstr "" +msgstr "Análisis de costes" #. module: mrp_production_estimated_cost #: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost @@ -93,12 +93,7 @@ msgstr "Crea OF ficticia" #: model:ir.actions.act_window,name:mrp_production_estimated_cost.action_run_template_create_fictitious_of #: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view msgid "Create fictitious MO" -msgstr "CrearOF ficticia" - -#. module: mrp_production_estimated_cost -#: view:wiz.create.fictitious.of:mrp_production_estimated_cost.wiz_create_fictitious_of_view -msgid "Create fictitius MO" -msgstr "" +msgstr "Crear OF ficticia" #. module: mrp_production_estimated_cost #: field:wiz.create.fictitious.of,create_uid:0 @@ -183,7 +178,7 @@ msgstr "Última actualización el" #. module: mrp_production_estimated_cost #: view:mrp.production:mrp_production_estimated_cost.mrp_production_form_view_inh_estimatedcost msgid "Load Estimated Cost on Product" -msgstr "" +msgstr "Cargar coste estimado en el producto" #. module: mrp_production_estimated_cost #: field:wiz.create.fictitious.of,load_on_product:0 diff --git a/mrp_production_estimated_cost/models/mrp_production.py b/mrp_production_estimated_cost/models/mrp_production.py index eff129b75..1ca9180d1 100644 --- a/mrp_production_estimated_cost/models/mrp_production.py +++ b/mrp_production_estimated_cost/models/mrp_production.py @@ -81,7 +81,7 @@ class MrpProduction(models.Model): 'mrp_project.account_analytic_line_mrp_search_view') analytic_line_list = analytic_line_obj.search( [('mrp_production_id', '=', self.id), - ('task_id', '=', False)]) + ('task_id', '=', False), ('amount', '=', 0)]) self = self.with_context(search_default_group_production=1, search_default_group_workorder=1, search_default_group_journal=1) @@ -187,7 +187,7 @@ class MrpProduction(models.Model): return self.env['account.analytic.line'].create(vals) @api.model - def _create_worcenter_cycles_estimated_cost(self, prod, wc, workorder): + def _create_workcenter_cycles_estimated_cost(self, prod, wc, workorder): if workorder.cycle and workorder.workcenter_id.costs_cycle: journal = prod.env.ref('mrp.analytic_journal_machines', False) product = workorder.workcenter_id.product_id @@ -205,7 +205,7 @@ class MrpProduction(models.Model): return self.env['account.analytic.line'].create(vals) @api.model - def _create_worcenter_hours_estimated_cost(self, prod, wc, workorder): + def _create_workcenter_hours_estimated_cost(self, prod, wc, workorder): if workorder.hour and workorder.workcenter_id.costs_hour: product = workorder.workcenter_id.product_id if not product: @@ -252,10 +252,10 @@ class MrpProduction(models.Model): lambda r: r.workcenter == line.workcenter_id) self._create_pre_operation_estimated_cost(record, wc, line) self._create_post_operation_estimated_cost(record, wc, line) - done = self._create_worcenter_cycles_estimated_cost( + done = self._create_workcenter_cycles_estimated_cost( record, wc, line) if not done: - self._create_worcenter_hours_estimated_cost( + self._create_workcenter_hours_estimated_cost( record, wc, line) self._create_operators_estimated_cost(record, wc, line)