Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] mrp_bom_priority #1407

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
87 changes: 87 additions & 0 deletions mrp_bom_priority/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
================
MRP BoM Priority
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:13cb6ec9c207f309d217d9262284cb1a17c610a6f53803cf99cda728bd104829
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmanufacture-lightgray.png?logo=github
:target: https://github.com/OCA/manufacture/tree/16.0/mrp_bom_priority
:alt: OCA/manufacture
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/manufacture-16-0/manufacture-16-0-mrp_bom_priority
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/manufacture&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Adds priority to helps prioritize BoM.

.. figure:: https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_bom_priority/static/description/mrp_bom_view_form.jpeg
.. figure:: https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_bom_priority/static/description/mrp_bom_view_tree.jpeg

**Table of contents**

.. contents::
:local:

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/manufacture/issues/new?body=module:%20mrp_bom_priority%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* GRAP

Contributors
~~~~~~~~~~~~

* Quentin Dupont ([email protected])

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-quentinDupont| image:: https://github.com/quentinDupont.png?size=40px
:target: https://github.com/quentinDupont
:alt: quentinDupont

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-quentinDupont|

This module is part of the `OCA/manufacture <https://github.com/OCA/manufacture/tree/16.0/mrp_bom_priority>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions mrp_bom_priority/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions mrp_bom_priority/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Quentin Dupont ([email protected])
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "MRP BoM Priority",
"summary": "Adds priority field to BoMs",
"version": "16.0.1.0.0",
"category": "Manufacturing",
"author": "GRAP, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"license": "AGPL-3",
"maintainers": [
"quentinDupont",
],
"depends": [
"mrp",
],
"data": [
"views/view_mrp_bom.xml",
],
"installable": True,
}
51 changes: 51 additions & 0 deletions mrp_bom_priority/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_bom_priority
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-28 13:56+0000\n"
"PO-Revision-Date: 2024-11-28 13:56+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_priority
#: model:ir.model,name:mrp_bom_priority.model_mrp_bom
msgid "Bill of Material"
msgstr "Fiche technique"

#. module: mrp_bom_priority
#: model:ir.model.fields,help:mrp_bom_priority.field_mrp_bom__priority
msgid "Helps prioritize BoM."
msgstr "Aide à prioriser les fiches techniques."

#. module: mrp_bom_priority
#: model:ir.model.fields.selection,name:mrp_bom_priority.selection__mrp_bom__priority__2
msgid "High"
msgstr "Haute"

#. module: mrp_bom_priority
#: model:ir.model.fields.selection,name:mrp_bom_priority.selection__mrp_bom__priority__0
msgid "Low"
msgstr "Basse"

#. module: mrp_bom_priority
#: model:ir.model.fields.selection,name:mrp_bom_priority.selection__mrp_bom__priority__1
msgid "Normal"
msgstr "Normale"

#. module: mrp_bom_priority
#: model:ir.model.fields,field_description:mrp_bom_priority.field_mrp_bom__priority
msgid "Priority"
msgstr "Priorité"

#. module: mrp_bom_priority
#: model:ir.model.fields.selection,name:mrp_bom_priority.selection__mrp_bom__priority__3
msgid "Very High"
msgstr "Très haute"
1 change: 1 addition & 0 deletions mrp_bom_priority/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import mrp_bom
16 changes: 16 additions & 0 deletions mrp_bom_priority/models/mrp_bom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Quentin DUPONT ([email protected])
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class MrpBom(models.Model):
_inherit = "mrp.bom"

# Column Section
priority = fields.Selection(
[("0", "Low"), ("1", "Normal"), ("2", "High"), ("3", "Very High")],
default="0",
help="Helps prioritize BoM.",
)
1 change: 1 addition & 0 deletions mrp_bom_priority/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Quentin Dupont ([email protected])
4 changes: 4 additions & 0 deletions mrp_bom_priority/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Adds priority to helps prioritize BoM.

.. figure:: ../static/description/mrp_bom_view_form.jpeg
.. figure:: ../static/description/mrp_bom_view_tree.jpeg
Loading
Loading