Skip to content

Commit

Permalink
Merge 0d0df77 into d9a321b
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Dec 11, 2015
2 parents d9a321b + 0d0df77 commit 35c9abf
Show file tree
Hide file tree
Showing 22 changed files with 1,398 additions and 0 deletions.
85 changes: 85 additions & 0 deletions mrp_production_real_cost/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
.. 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

==================================
Real costs in manufacturing orders
==================================

This module allows to manage the control of Manufacturing Orders actual costs,
by creating analytic lines as defined in the MO (from *mrp_project*).

It also updates product standard price when a manufacturing orders is finished
according this formula:

(Product stock * Product standard price + Production real cost) /
(Product stock + Final product quantity)

Installation
============

This module depends on the module *product_variant_cost_price*, that is
available in:

https://github.com/OCA/product-variant

Usage
=====

Operating with a manufacture order, analytic entries adding costs will be
created when:

* Some raw material is consumed.
* A work order is finished or paused.

Also, thanks to *project_timesheet* modules, users time is also translated to
costs in the linked analytic account.



.. 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
<https://github.com/OCA/manufacture/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
<https://github.com/OCA/
manufacture/issues/new?body=module:%20
mrp_production_real_cost%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======

Contributors
------------

* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Ana Juaristi <ajuaristio@gmail.com>
* Ainara Galdona <agaldona@avanzosc.es>

Images
------

* Original Odoo MRP icon
* Thanks to https://openclipart.org/detail/224801/black-and-white-calculator

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.
6 changes: 6 additions & 0 deletions mrp_production_real_cost/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# © 2014-2015 Avanzosc
# © 2014-2015 Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import models
29 changes: 29 additions & 0 deletions mrp_production_real_cost/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# © 2014-2015 Avanzosc
# © 2014-2015 Antiun Ingeniería
# © 2014-2015 Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Real costs in manufacturing orders",
"version": "8.0.1.0.0",
"depends": [
"project_timesheet",
"mrp_project",
"mrp_operations_extension",
"mrp_operations_time_control",
"stock_account",
"product_variant_cost_price",
],
"author": "OdooMRP team, "
"AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Antiun Ingeniería S.L., "
"Odoo Community Association (OCA)",
"category": "Manufacturing",
'data': [
"data/analytic_journal_data.xml",
"views/mrp_production_view.xml",
],
'installable': True,
}
26 changes: 26 additions & 0 deletions mrp_production_real_cost/data/analytic_journal_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" ?>
<openerp>
<data noupdate="1">
<!--Materials analytic journal -->
<record id="mrp.analytic_journal_materials" model="account.analytic.journal">
<field name="name">Materials</field>
<field name="code">MAT</field>
<field name="type">general</field>
<field name="active">True</field>
</record>
<!--Operators analytic journal -->
<record id="mrp.analytic_journal_operators" model="account.analytic.journal">
<field name="name">Operators</field>
<field name="code">OPE</field>
<field name="type">general</field>
<field name="active">True</field>
</record>
<!--Machines analytic journal -->
<record id="mrp.analytic_journal_machines" model="account.analytic.journal">
<field name="name">Machines</field>
<field name="code">MACH</field>
<field name="type">general</field>
<field name="active">True</field>
</record>
</data>
</openerp>
97 changes: 97 additions & 0 deletions mrp_production_real_cost/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_real_costs
#
# Translators:
# Pedro M. Baeza <pedro.baeza@gmail.com>, 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-20 18:13+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\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_real_costs
#: field:mrp.production,percentage_difference:0
msgid "% difference"
msgstr "% diferencia"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_bom
msgid "Bill of Material"
msgstr "Lista de material"

#. module: mrp_production_real_costs
#: field:mrp.config.settings,final_product_analytic_cost:0
msgid "Load final product analytic cost"
msgstr ""

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_production
msgid "Manufacturing Order"
msgstr "Órden de producción"

#. module: mrp_production_real_costs
#: view:mrp.production:mrp_production_real_costs.mrp_production_form_view_real_costs
msgid "Manufacturing costs"
msgstr "Costes de fabricación"

#. module: mrp_production_real_costs
#: field:mrp.production.workcenter.line,post_cost:0
msgid "Post-Operation Cost"
msgstr ""

#. module: mrp_production_real_costs
#: field:mrp.production.workcenter.line,pre_cost:0
msgid "Pre-Operation Cost"
msgstr ""

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_product_produce
msgid "Product Produce"
msgstr "Fabricar producto"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_project_task_work
msgid "Project Task Work"
msgstr "Trabajo de tarea"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de existencias"

#. module: mrp_production_real_costs
#: help:mrp.config.settings,final_product_analytic_cost:0
msgid ""
"This will allow you to define if those BoM passed back to draft are still "
"activated or not"
msgstr "De esta manera podrás definir si aquellas LdM vueltas a estado borrador pueden mantenerse activas o no"

#. module: mrp_production_real_costs
#: field:mrp.production,real_cost:0
msgid "Total Real Cost"
msgstr ""

#. module: mrp_production_real_costs
#: field:mrp.production,unit_real_cost:0
msgid "Unit Real Cost"
msgstr ""

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_production_workcenter_line
msgid "Work Order"
msgstr "Orden de trabajo"

#. module: mrp_production_real_costs
#: code:addons/mrp_production_real_costs/models/mrp_production.py:121
#, python-format
msgid "You must define one Analytic Account for this MO: %s"
msgstr "Debe definir una cuenta analítica para esta MO: %s"
97 changes: 97 additions & 0 deletions mrp_production_real_cost/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_real_costs
#
# Translators:
# Massimiliano Casa <mcasa@cantiericasa.com>, 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-10-30 13:07+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\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_real_costs
#: field:mrp.production,percentage_difference:0
msgid "% difference"
msgstr "% differenza"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_bom
msgid "Bill of Material"
msgstr "Distinta base"

#. module: mrp_production_real_costs
#: field:mrp.config.settings,final_product_analytic_cost:0
msgid "Load final product analytic cost"
msgstr ""

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_production
msgid "Manufacturing Order"
msgstr "Ordine di produzione"

#. module: mrp_production_real_costs
#: view:mrp.production:mrp_production_real_costs.mrp_production_form_view_real_costs
msgid "Manufacturing costs"
msgstr "Costi di produzione"

#. module: mrp_production_real_costs
#: field:mrp.production.workcenter.line,post_cost:0
msgid "Post-Operation Cost"
msgstr "Costo Post-lavorazione"

#. module: mrp_production_real_costs
#: field:mrp.production.workcenter.line,pre_cost:0
msgid "Pre-Operation Cost"
msgstr "Costo Pre-lavorazione"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_product_produce
msgid "Product Produce"
msgstr ""

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_project_task_work
msgid "Project Task Work"
msgstr "Attività Progetto"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_stock_move
msgid "Stock Move"
msgstr ""

#. module: mrp_production_real_costs
#: help:mrp.config.settings,final_product_analytic_cost:0
msgid ""
"This will allow you to define if those BoM passed back to draft are still "
"activated or not"
msgstr ""

#. module: mrp_production_real_costs
#: field:mrp.production,real_cost:0
msgid "Total Real Cost"
msgstr "Costo Reale Totale "

#. module: mrp_production_real_costs
#: field:mrp.production,unit_real_cost:0
msgid "Unit Real Cost"
msgstr "Costo unitario reale"

#. module: mrp_production_real_costs
#: model:ir.model,name:mrp_production_real_costs.model_mrp_production_workcenter_line
msgid "Work Order"
msgstr "Ordine di lavorazione"

#. module: mrp_production_real_costs
#: code:addons/mrp_production_real_costs/models/mrp_production.py:121
#, python-format
msgid "You must define one Analytic Account for this MO: %s"
msgstr "Bisogna definire un conto analitico per questo MO: %s"

0 comments on commit 35c9abf

Please sign in to comment.