Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from odoomrp/8.0-mrp_bom_version
[MIG] mrp_bom_version: migrated from odoomrp-wip
- Loading branch information
Showing
17 changed files
with
923 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:alt: License: AGPL-3 | ||
|
||
================= | ||
MRP - BoM Version | ||
================= | ||
|
||
This module provides a state in the BoM whether to allow their use in | ||
manufacturing. | ||
|
||
|
||
Usage | ||
===== | ||
|
||
The following states are defined: | ||
|
||
* **Draft**: | ||
The form will be available for data entry, and may move to "active" state. | ||
* **Active**: | ||
You can modify all of the form fields except for the fields: routing, BoM | ||
lines, and the new field Active, for false default when you create a new BoM. | ||
The "active" state may be passed back to state "draft", if we mark the new | ||
field "Allow re-edit the BoM list", this new field is defined in | ||
*Configuration > Configuration > Manufacturing*. You can configure there also | ||
if those BoM will continue with active check marked as True or not. | ||
The active state may move to state "Historical". | ||
* **Historical**: | ||
This is the last state of the LdM, you can not change any field on the form. | ||
|
||
When the MRP BoM list is put to active, a record of who has activated, and when | ||
will include in chatter/log. It also adds a constraint for the sequence field | ||
to be unique. | ||
|
||
* **New version** : | ||
By clicking the button version, current BOM is moved to historical state, | ||
and a new BOM is creating based on this but with version number +1 and | ||
changing state to draft | ||
|
||
|
||
.. 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 | ||
`here <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_bom_version%0Aversion:%208.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 <anajuaristi@avanzosc.es> | ||
* Alfredo de la Fuente <alfredodelafuente@avanzosc.es> | ||
* Oihane Crucelaegui <oihanecrucelaegui@avanzosc.es> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
# (c) 2015 Oihane Crucelaegui - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
from . import models | ||
|
||
|
||
def set_active_bom_active_state(cr, registry): | ||
"""Set those active BoMs to state 'active'""" | ||
cr.execute("""UPDATE mrp_bom | ||
SET state = 'active' | ||
WHERE active = True""") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
# (c) 2015 Alfredo de la Fuente - AvanzOSC | ||
# (c) 2015 Oihane Crucelaegui - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
{ | ||
"name": "MRP - BoM version", | ||
"summary": "BoM versioning", | ||
"version": "8.0.1.0.0", | ||
"license": "AGPL-3", | ||
"author": "OdooMRP team," | ||
"AvanzOSC," | ||
"Serv. Tecnol. Avanzados - Pedro M. Baeza, " | ||
"Odoo Community Association (OCA)", | ||
"website": "http://www.odoomrp.com", | ||
"contributors": [ | ||
"Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>", | ||
"Ana Juaristi <anajuaristi@avanzosc.es>", | ||
"Alfredo de la Fuente <alfredodelafuente@avanzosc.es>", | ||
"Oihane Crucelaegui <oihanecrucelaegui@avanzosc.es>", | ||
], | ||
"category": "Manufacturing", | ||
"depends": [ | ||
"mrp", | ||
], | ||
"data": [ | ||
"data/mrp_bom_data.xml", | ||
"security/mrp_bom_version_security.xml", | ||
"views/res_config_view.xml", | ||
"views/mrp_bom_view.xml", | ||
], | ||
"installable": True, | ||
"post_init_hook": "set_active_bom_active_state", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<openerp> | ||
<data> | ||
<record id="mt_active" model="mail.message.subtype"> | ||
<field name="name">MRP BoM Active</field> | ||
<field name="res_model">mrp.bom</field> | ||
<field name="default" eval="False"/> | ||
<field name="description">MRP BoM Active</field> | ||
</record> | ||
</data> | ||
</openerp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mrp_bom_version | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2015-05-22 08:58+0000\n" | ||
"PO-Revision-Date: 2015-05-22 11:02+0100\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: \n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Plural-Forms: \n" | ||
"X-Generator: Poedit 1.5.4\n" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "Activate" | ||
msgstr "Activar" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.view_mrp_bom_filter_inh_state | ||
#: selection:mrp.bom,state:0 | ||
msgid "Active" | ||
msgstr "Activa" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.config.settings,group_mrp_bom_state:0 | ||
msgid "Allow to re-edit BoMs" | ||
msgstr "Permitir re-editar las listas de materiales." | ||
|
||
#. module: mrp_bom_version | ||
#: model:ir.model,name:mrp_bom_version.model_mrp_bom | ||
msgid "Bill of Material" | ||
msgstr "Lista de material" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
#: selection:mrp.bom,state:0 | ||
msgid "Draft" | ||
msgstr "Borrador" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
#: selection:mrp.bom,state:0 | ||
msgid "Historical" | ||
msgstr "Histórica" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.bom,historical_date:0 | ||
msgid "Historical Date" | ||
msgstr "Fecha historificación" | ||
|
||
#. module: mrp_bom_version | ||
#: model:mail.message.subtype,description:mrp_bom_version.mt_active | ||
#: model:mail.message.subtype,name:mrp_bom_version.mt_active | ||
msgid "MRP BoM Active" | ||
msgstr "Estado LdM" | ||
|
||
#. module: mrp_bom_version | ||
#: model:res.groups,name:mrp_bom_version.group_mrp_bom_version | ||
msgid "MRP BoM version" | ||
msgstr "Version LdM" | ||
|
||
#. module: mrp_bom_version | ||
#: model:ir.model,name:mrp_bom_version.model_mrp_production | ||
msgid "Manufacturing Order" | ||
msgstr "Órden de producción" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "New version" | ||
msgstr "Nueva versión" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.view_mrp_bom_filter_inh_state | ||
msgid "Product" | ||
msgstr "Producto" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.view_mrp_bom_filter_inh_state | ||
msgid "State" | ||
msgstr "Estado" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.bom,state:0 | ||
msgid "Status" | ||
msgstr "Estado" | ||
|
||
#. module: mrp_bom_version | ||
#: help:mrp.config.settings,group_mrp_bom_state:0 | ||
msgid "The active state may be passed back to state draft" | ||
msgstr "El estado activo puede ser devuelto al estado de borrador" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.bom,version:0 | ||
msgid "Version" | ||
msgstr "Versión" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "You are going to create a new version of this BoM. Are you sure?" | ||
msgstr "" | ||
" Está a punto de crear una nueva versión de esta LdM. ¿Desea continuar?" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "" | ||
"You are going to historize an BoM. Doing, not be able to unlock it unless " | ||
"you make a copy. Are you sure you want to proceed?" | ||
msgstr "" | ||
"Va a historificar una LdM. Si lo hace, no podrá volver a activarla a no ser " | ||
"que saque una copia ¿Está seguro de que desea proceder?" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "" | ||
"You will activate the BoM. If you haven't set a route yet, then you won't be " | ||
"able to do it after this. Are you sure you want to proceed?" | ||
msgstr "" | ||
"Va a activar la LdM. Si no ha puesto ruta, no podrá ya ponerla. ¿Está seguro " | ||
"de que desea proceder?" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mrp_bom_version | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2015-05-22 08:58+0000\n" | ||
"PO-Revision-Date: 2015-05-22 08:58+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_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "Activate" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.view_mrp_bom_filter_inh_state | ||
#: selection:mrp.bom,state:0 | ||
msgid "Active" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.config.settings,group_mrp_bom_state:0 | ||
msgid "Allow to re-edit BoMs" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: model:ir.model,name:mrp_bom_version.model_mrp_bom | ||
msgid "Bill of Material" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
#: selection:mrp.bom,state:0 | ||
msgid "Draft" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
#: selection:mrp.bom,state:0 | ||
msgid "Historical" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.bom,historical_date:0 | ||
msgid "Historical Date" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: model:mail.message.subtype,description:mrp_bom_version.mt_active | ||
#: model:mail.message.subtype,name:mrp_bom_version.mt_active | ||
msgid "MRP BoM Active" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: model:res.groups,name:mrp_bom_version.group_mrp_bom_version | ||
msgid "MRP BoM version" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: model:ir.model,name:mrp_bom_version.model_mrp_production | ||
msgid "Manufacturing Order" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "New version" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.view_mrp_bom_filter_inh_state | ||
msgid "Product" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.view_mrp_bom_filter_inh_state | ||
msgid "State" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.bom,state:0 | ||
msgid "Status" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: help:mrp.config.settings,group_mrp_bom_state:0 | ||
msgid "The active state may be passed back to state draft" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: field:mrp.bom,version:0 | ||
msgid "Version" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "You are going to create a new version of this BoM. Are you sure?" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "You are going to historize an BoM. Doing, not be able to unlock it unless you make a copy. Are you sure you want to proceed?" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_version | ||
#: view:mrp.bom:mrp_bom_version.mrp_bom_form_view_inh_state | ||
msgid "You will activate the BoM. If you haven't set a route yet, then you won't be able to do it after this. Are you sure you want to proceed?" | ||
msgstr "" | ||
|
Oops, something went wrong.