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_estimated_cost/data/analytic_journal_data.xml b/mrp_production_estimated_cost/data/analytic_journal_data.xml new file mode 100644 index 000000000..b081d3b6f --- /dev/null +++ b/mrp_production_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_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..2258b9740 --- /dev/null +++ b/mrp_production_estimated_cost/i18n/es.po @@ -0,0 +1,274 @@ +# 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 "Análisis de costes" + +#. 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 "Crear OF ficticia" + +#. 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 "Cargar coste estimado en el producto" + +#. 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_estimated_cost/models/mrp_production.py b/mrp_production_estimated_cost/models/mrp_production.py new file mode 100644 index 000000000..1ca9180d1 --- /dev/null +++ b/mrp_production_estimated_cost/models/mrp_production.py @@ -0,0 +1,271 @@ +# -*- 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): + _inherit = 'mrp.production' + + @api.one + @api.depends('analytic_line_ids', 'analytic_line_ids.estim_std_cost', + 'product_qty') + 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 _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 + def _count_created_estimated_cost(self): + analytic_line_obj = self.env['account.analytic.line'] + cond = [('mrp_production_id', '=', self.id), + ('task_id', '=', False)] + self.created_estimated_cost = len(analytic_line_obj.search(cond)) + + 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="_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="_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.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.env['ir.sequence'] + if values.get('active', True): + values['active'] = True + if values.get('name', '/') == '/': + values['name'] = sequence_obj.get('mrp.production') + else: + values['name'] = sequence_obj.get('virtual.mrp.production') + return super(MrpProduction, self).create(values) + + @api.multi + def action_confirm(self): + res = super(MrpProduction, self).action_confirm() + self.calculate_production_estimated_cost() + 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_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), ('amount', '=', 0)]) + 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', analytic_line_list.ids)], + 'context': self.env.context + } + + @api.model + def _prepare_estimated_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: + 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 production.analytic_account_id: + raise exceptions.Warning( + _('You must define one Analytic Account for this MO: %s') % + (production.name)) + return { + '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': 0, + 'product_uom_id': product.uom_id.id, + '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.standard_price), + } + + @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.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_estimated_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 workorder.time_start: + product = workorder.workcenter_id.pre_op_product + 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=workorder.time_start) + return self.env['account.analytic.line'].create(vals) + + @api.model + def _create_post_operation_estimated_cost(self, prod, wc, workorder): + if workorder.time_stop: + product = workorder.workcenter_id.post_op_product + 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=workorder.time_stop) + return self.env['account.analytic.line'].create(vals) + + @api.model + 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 + 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_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) + + @api.model + 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: + raise exceptions.Warning( + _("There is at least this workcenter without " + "product: %s") % workorder.workcenter_id.name) + 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_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) + + @api.model + def _create_operators_estimated_cost(self, prod, wc, workorder): + 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 + journal = self.env.ref('mrp.analytic_journal_operators', False) + name = ('%s-%s-%s' % + (prod.name, workorder.routing_wc_line.operation.code, + product.name)) + 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) + return self.env['account.analytic.line'].create(vals) + + @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() + for product_line in record.product_lines: + 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) + self._create_pre_operation_estimated_cost(record, wc, line) + self._create_post_operation_estimated_cost(record, wc, line) + done = self._create_workcenter_cycles_estimated_cost( + record, wc, line) + if not done: + self._create_workcenter_hours_estimated_cost( + record, wc, line) + self._create_operators_estimated_cost(record, wc, line) + + @api.multi + def load_product_std_price(self): + 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): + return 1 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 000000000..d3d3e419e Binary files /dev/null and b/mrp_production_estimated_cost/static/description/icon.png differ 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_estimated_cost/views/account_analytic_line_view.xml b/mrp_production_estimated_cost/views/account_analytic_line_view.xml new file mode 100644 index 000000000..ae6a5620c --- /dev/null +++ b/mrp_production_estimated_cost/views/account_analytic_line_view.xml @@ -0,0 +1,71 @@ + + + + + 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 + + + + + + + + + + + + + + + + + + + + + + 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_estimated_cost/views/mrp_production_view.xml b/mrp_production_estimated_cost/views/mrp_production_view.xml new file mode 100644 index 000000000..4c4a48e37 --- /dev/null +++ b/mrp_production_estimated_cost/views/mrp_production_view.xml @@ -0,0 +1,131 @@ + + + + + + Manufacturing order form (active field) + mrp.production + + + + + + + + + + mrp.production.form.view.costs + mrp.production + + + + + + + + + + mrp.production.form.view.inh.estimatedcost + mrp.production + + + + + + + + + + + + + + + + + + + + + mrp.production.tree.view.inh.estimatedcost + mrp.production + + + + + + + + + + + + Estimated costs from manufacturing 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 + + +
+
+
+
+ + + Virtual 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_estimated_cost/views/product_view.xml b/mrp_production_estimated_cost/views/product_view.xml new file mode 100644 index 000000000..6b8180e02 --- /dev/null +++ b/mrp_production_estimated_cost/views/product_view.xml @@ -0,0 +1,47 @@ + + + + + + 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_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/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 -