Skip to content

Commit

Permalink
[3758][ADD] mrp_production_quant_manual_assign, stock_quant_manual_as…
Browse files Browse the repository at this point in the history
…sign (#89)
  • Loading branch information
rinaldifirdaus authored Nov 1, 2023
1 parent 783a45e commit 18c5458
Show file tree
Hide file tree
Showing 116 changed files with 17,819 additions and 0 deletions.
97 changes: 97 additions & 0 deletions mrp_production_quant_manual_assign/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
====================================
Production - Manual Quant Assignment
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:958dcd462d86360bad9fc7c79701a3e028c9593fc8ca08b3b310369b1d4751d3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_production_quant_manual_assign
: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_production_quant_manual_assign
: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|

This module allows you to manually select quants for components of the
manufacturing order.

The module depends on `stock_quant_manual_assign <https://github.com/OCA/stock-logistics-warehouse/tree/14.0/stock_quant_manual_assign>`
module.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Open a manufacturing order.
#. Click on the tag icon next to Reserved Quantity of a move line, which opens
a wizard for manually selecting quants.
#. Select quants and update quantities to assign (reserve), then Confirm.

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_production_quant_manual_assign%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
~~~~~~~

* Quartile Limited
* ForgeFlow

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

* `Quartile Limited <https://www.quartile.co>`_:

* Yoshi Tashiro <tashiro@quartile.co>

* `ForgeFlow <https://www.forgeflow.com>`_:

* Lois Rilo <lois.rilo@forgeflow.com>

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions mrp_production_quant_manual_assign/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import wizards
from . import models
15 changes: 15 additions & 0 deletions mrp_production_quant_manual_assign/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2021 Quartile Limited
# Copyright 2021 ForgeFlow S.L. (http://www.forgeflow.com)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Production - Manual Quant Assignment",
"version": "16.0.1.0.0",
"category": "Manufacturing",
"license": "AGPL-3",
"author": "Quartile Limited, ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/manufacture",
"depends": ["mrp", "stock_quant_manual_assign"],
"data": ["views/mrp_production_views.xml", "wizards/assign_manual_quants_view.xml"],
"installable": True,
}
52 changes: 52 additions & 0 deletions mrp_production_quant_manual_assign/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-10 10:08+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants
msgid "Assign Manual Quants"
msgstr "Asignación manual de cantidades"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants_lines
msgid "Assign Manual Quants Lines"
msgstr "Asignación manual de líneas de cantidades"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants__is_production_single_lot
msgid "Is Production Single Lot"
msgstr "es un lote de producción única"

#. module: mrp_production_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_production_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr "cantidades manuales"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__qty_done
msgid "Qty Done"
msgstr "Cantidad finalizada"

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

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__to_consume_now
msgid "To Consume Now"
msgstr "Para consumir ahora"
52 changes: 52 additions & 0 deletions mrp_production_quant_manual_assign/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-06-12 09:09+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants
msgid "Assign Manual Quants"
msgstr "Assegna quanto manuale"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants_lines
msgid "Assign Manual Quants Lines"
msgstr "Assegna righe quanti manuali"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants__is_production_single_lot
msgid "Is Production Single Lot"
msgstr "È un lotto di produzione singolo"

#. module: mrp_production_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_production_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr "Quanti manuali"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__qty_done
msgid "Qty Done"
msgstr "Qta. prodotta"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__to_consume_now
msgid "To Consume Now"
msgstr "Da consumare adesso"
51 changes: 51 additions & 0 deletions mrp_production_quant_manual_assign/i18n/ja.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_production_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-11-01 01:30+0000\n"
"PO-Revision-Date: 2023-11-01 01:30+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_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants
msgid "Assign Manual Quants"
msgstr "手動在庫割当"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants_lines
msgid "Assign Manual Quants Lines"
msgstr "手動在庫明細割当"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants__is_production_single_lot
msgid "Is Production Single Lot"
msgstr "単一ロットの製造"

#. module: mrp_production_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_production_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr "手動割当"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__qty_done
msgid "Qty Done"
msgstr "完了数量"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_stock_move
msgid "Stock Move"
msgstr "在庫移動"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__to_consume_now
msgid "To Consume Now"
msgstr "今すぐ消費"
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \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_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants
msgid "Assign Manual Quants"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants_lines
msgid "Assign Manual Quants Lines"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants__is_production_single_lot
msgid "Is Production Single Lot"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_production_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__qty_done
msgid "Qty Done"
msgstr ""

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

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__to_consume_now
msgid "To Consume Now"
msgstr ""
52 changes: 52 additions & 0 deletions mrp_production_quant_manual_assign/i18n/pt_BR.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_production_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-15 07:45+0000\n"
"Last-Translator: Marcel Savegnago <marcel.savegnago@gmail.com>\n"
"Language-Team: none\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants
msgid "Assign Manual Quants"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model:ir.model,name:mrp_production_quant_manual_assign.model_assign_manual_quants_lines
msgid "Assign Manual Quants Lines"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants__is_production_single_lot
msgid "Is Production Single Lot"
msgstr ""

#. module: mrp_production_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_production_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr "Quantidades Manuais"

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__qty_done
msgid "Qty Done"
msgstr ""

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

#. module: mrp_production_quant_manual_assign
#: model:ir.model.fields,field_description:mrp_production_quant_manual_assign.field_assign_manual_quants_lines__to_consume_now
msgid "To Consume Now"
msgstr ""
1 change: 1 addition & 0 deletions mrp_production_quant_manual_assign/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_move
19 changes: 19 additions & 0 deletions mrp_production_quant_manual_assign/models/stock_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2021 ForgeFlow S.L. (http://www.forgeflow.com)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import models
from odoo.tools.float_utils import float_is_zero


class StockMove(models.Model):
_inherit = "stock.move"

# While https://github.com/odoo/odoo/pull/74268 is not closed.
def _should_bypass_set_qty_producing(self):
res = super()._should_bypass_set_qty_producing()
if self.has_tracking != "none" and float_is_zero(
self.quantity_done, precision_rounding=self.product_uom.rounding
):
# If some serial/lot has been selected to be consumed we don't change the selection.
return False
return res
Loading

0 comments on commit 18c5458

Please sign in to comment.