Skip to content
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
48e4604
[NEW mrp_bom_version]
Oct 23, 2014
94b9ea4
[IMP mrp_bom_version]
Oct 28, 2014
386929c
[FIX] Pylint fixing <mrp_bom_version>
oihane Nov 13, 2014
bb12352
[MOD] Issue #528
oihane Jan 13, 2015
4fdf662
[MOD] Changed default not recalculated, if copy is not set to false
oihane Jan 13, 2015
80efea8
[IMP mrp_bom_version]
Jan 14, 2015
aa3e0a4
[IMP] mrp_bom_version: renamed module mrp_bom_state to mrp_bom_version
InakiZabala May 25, 2015
7a58044
[IMP] <mrp_bom_version> Renamed file
oihane Jun 2, 2015
a2c4b4e
[IMP] <mrp_bom_version> If BoM exist it is active so state must be 'a…
oihane Jun 2, 2015
ca23934
[IMP] <mrp_bom_version> Older versions shown in each BoM
oihane Jun 3, 2015
890cdaf
[FIX] mrp_bom_version invisble draft button: security rules to approp…
Jun 24, 2015
c37b325
Update README.rst
Jul 24, 2015
6d5d306
[IMP] mrp_bom_version: Show in tree buttons draft, activate, new vers…
alfredoavanzosc Jul 29, 2015
68273a5
Slovene translations added
sysadminmatmoz Aug 1, 2015
255d236
[IMP] mrp_bom_version: Include folder "tests".
alfredoavanzosc Aug 10, 2015
1cd1a12
[IMP] mrp_bom_version: Some improvements
oihane Sep 23, 2015
c65a46a
[MIG] mrp_bom_version: migrated from odoomrp-wip
oihane Oct 1, 2015
94becb8
[FIX] Duplicated BoM view causes crash when installing both modules
oihane Oct 2, 2015
327e3c7
[IMP] mrp_bom_version: use new api correctly
oihane Oct 5, 2015
85a4878
[IMP] mrp_bom_version: Define if draft is active in config parameters
oihane Oct 23, 2015
4b99495
[IMP] mrp_bom_version: Fixed tests
oihane Oct 26, 2015
2fec186
OCA Transbot updated translations from Transifex
oca-transbot Nov 8, 2015
f86d719
[IMP] mrp_hook+mrp_operations_extension: Adaptation to OCA
pedrobaeza Nov 26, 2015
69f19e8
[FIX] mrp_bom_version: _default_state
pedrobaeza Dec 9, 2015
7952fe4
OCA Transbot updated translations from Transifex
oca-transbot Dec 12, 2015
541c536
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
9463fd2
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
07f901a
[FIX] mrp_bom_version: duplicating BoM has same historical BoM as ori…
oihane May 16, 2017
3f22ade
OCA Transbot updated translations from Transifex
oca-transbot Aug 19, 2017
8e5766e
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
0bbbf3c
[UPD] Update mrp_bom_version.pot
oca-travis Jun 23, 2018
41f9572
[ADD] icon.png
OCA-git-bot Apr 3, 2019
a9cc2f6
Translated using Weblate (Galician)
mvrodriguez Mar 1, 2019
fa8e3e0
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
c15be7d
[IMP] mrp_bom_version: pre-commit stuff
Oct 18, 2024
a90ab95
[MIG] mrp_bom_version: Migration to 16.0
Oct 18, 2024
7d7f9fd
[IMP] mrp_bom_version: rename field to make more clear
Oct 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,17 @@ jobs:
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
include: "mrp_bom_version"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
include: "mrp_bom_version"
name: test with OCB
makepot: "true"
- container: ghcr.io/oca/oca-ci/py3.10-odoo16.0:latest
exclude: "mrp_bom_version"
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest
exclude: "mrp_bom_version"
name: test with OCB
makepot: "true"
services:
Expand All @@ -49,6 +58,9 @@ jobs:
POSTGRES_DB: odoo
ports:
- 5432:5432
env:
INCLUDE: "${{ matrix.include }}"
EXCLUDE: "${{ matrix.exclude }}"
steps:
- uses: actions/checkout@v3
with:
Expand Down
63 changes: 63 additions & 0 deletions mrp_bom_version/README.rst
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>

13 changes: 13 additions & 0 deletions mrp_bom_version/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# (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"""
)
33 changes: 33 additions & 0 deletions mrp_bom_version/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# (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": "16.0.1.0.0",
"license": "AGPL-3",
"author": "OdooMRP team,"
"AvanzOSC,"
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"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",
}
9 changes: 9 additions & 0 deletions mrp_bom_version/data/mrp_bom_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<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>
</odoo>
153 changes: 153 additions & 0 deletions mrp_bom_version/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_version
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: manufacture (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-01 00:46+0000\n"
"PO-Revision-Date: 2015-10-26 16:08+0000\n"
"Last-Translator: <>\n"
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-manufacture-8-0/"
"language/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: mrp_bom_version
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
msgid "Activate"
msgstr ""

#. module: mrp_bom_version
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_search_view
#: selection:mrp.bom,state:0
msgid "Active"
msgstr "نشِط"

#. module: mrp_bom_version
#: field:mrp.config.settings,group_mrp_bom_version: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_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
#: selection:mrp.bom,state:0
msgid "Draft"
msgstr "مسوّدة"

#. module: mrp_bom_version
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_search_view
msgid "Group By..."
msgstr ""

#. module: mrp_bom_version
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
#: 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
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_search_view
msgid "Inactive"
msgstr ""

#. module: mrp_bom_version
#: field:mrp.config.settings,active_draft:0
msgid "Keep re-editing BoM active"
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
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
msgid "New version"
msgstr ""

#. module: mrp_bom_version
#: field:mrp.bom,old_versions:0
msgid "Old Versions"
msgstr ""

#. module: mrp_bom_version
#: field:mrp.bom,parent_bom:0
msgid "Parent BoM"
msgstr ""

#. module: mrp_bom_version
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_search_view
#: field:mrp.bom,state:0
msgid "State"
msgstr ""

#. module: mrp_bom_version
#: help:mrp.config.settings,group_mrp_bom_version:0
msgid "The active state may be passed back to state draft"
msgstr ""

#. module: mrp_bom_version
#: help:mrp.config.settings,active_draft:0
msgid ""
"This will allow you to define if those BoM passed back to draft are still "
"activated or not"
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_version_form_view
msgid "Versions"
msgstr ""

#. module: mrp_bom_version
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
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_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
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_version_form_view
#: view:mrp.bom:mrp_bom_version.mrp_bom_version_tree_view
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 ""
Loading
Loading