Skip to content

Commit

Permalink
[IMP] mrp_production_estimated_cost: Adaptation to OCA
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Jan 5, 2016
1 parent 32439c0 commit b5f9f98
Show file tree
Hide file tree
Showing 47 changed files with 2,798 additions and 2,779 deletions.
98 changes: 98 additions & 0 deletions mrp_production_estimated_cost/README.rst
Original file line number Diff line number Diff line change
@@ -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
<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_estimated_cost%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======

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

* Alfredo de la Fuente <alfredodelafuente@avanzosc.es>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Ana Juaristi <ajuaristio@gmail.com>
* Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
* Ainara Galdona <agaldona@avanzosc.es>

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.
7 changes: 7 additions & 0 deletions mrp_production_estimated_cost/__init__.py
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions mrp_production_estimated_cost/__openerp__.py
Original file line number Diff line number Diff line change
@@ -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 <alfredodelafuente@avanzosc.es>",
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>",
"Ana Juaristi <ajuaristio@gmail.com>",
"Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>",
],
"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",
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data noupdate="1">
<record id="virtual_mrp_production_code" model="ir.sequence.type">
<field name="name">Virtual MRP Production</field>
<field name="code">virtual.mrp.production</field>
</record>
<record id="virtual_mrp_production" model="ir.sequence">
<field name="name">Virtual MRP Production</field>
<field name="code">virtual.mrp.production</field>
<field eval="6" name="padding"/>
<field name="prefix">VMO</field>
</record>
</data>
</openerp>
Loading

0 comments on commit b5f9f98

Please sign in to comment.