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

[17.0] [MIG] stock_quant_reservation_info: Migration to 17.0 #2206

Merged
merged 26 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
db2ac23
[14.0][ADD] stock_quant_reservation_info
DavidJForgeFlow Sep 29, 2022
3da5fcf
[UPD] Update stock_quant_reservation_info.pot
Sep 30, 2022
0080436
[UPD] README.rst
OCA-git-bot Sep 30, 2022
a8be445
[ADD] icon.png
OCA-git-bot Sep 30, 2022
2d53b13
stock_quant_reservation_info 14.0.1.0.4
OCA-git-bot Sep 30, 2022
98599a0
[14.0][FIX] stock_quant_reservation_info: only reservations from inte…
DavidJForgeFlow Oct 6, 2022
9706a65
stock_quant_reservation_info 14.0.1.0.5
OCA-git-bot Oct 6, 2022
0658a81
[FIX] stock_quant_reservation_info: Fix for filtering by lot when che…
JoanSForgeFlow May 19, 2023
747255e
stock_quant_reservation_info 14.0.1.0.6
OCA-git-bot May 22, 2023
241b940
[UPD] README.rst
OCA-git-bot Sep 3, 2023
3e48225
Added translation using Weblate (Italian)
mymage Dec 18, 2023
31ca366
Translated using Weblate (Italian)
mymage Jan 15, 2024
09a8da0
[MIG][15.0]stock_quant_reservation_info:Migration to 15.0
bizzappdev May 13, 2024
8da80c2
[UPD] Update stock_quant_reservation_info.pot
Jul 1, 2024
47c8394
[BOT] post-merge updates
OCA-git-bot Jul 1, 2024
945026b
Update translation files
weblate Jul 7, 2024
b978c94
Translated using Weblate (Italian)
mymage Jul 29, 2024
810bfc5
[MIG] stock_quant_reservation_info: Migration to 16.0
LoisRForgeFlow Aug 14, 2024
e0ade5e
[UPD] Update stock_quant_reservation_info.pot
Aug 14, 2024
185be06
[BOT] post-merge updates
OCA-git-bot Aug 14, 2024
2f0786a
Update translation files
weblate Aug 14, 2024
067a6a2
Translated using Weblate (Italian)
mymage Aug 14, 2024
e021dea
[16.0][FIX] stock_quant_reservation_info: fix location domain on acti…
AlexPForgeFlow Aug 26, 2024
1b6dddf
[BOT] post-merge updates
OCA-git-bot Aug 27, 2024
0144d2f
[IMP] stock_quant_reservation_info: pre-commit auto fixes
MeritxellAForgeFlow Nov 26, 2024
43df818
[MIG] stock_quant_reservation_info: Migration to 17.0
MeritxellAForgeFlow Nov 28, 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
85 changes: 85 additions & 0 deletions stock_quant_reservation_info/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
===========================
Stock Move Reservation Info
===========================

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

.. |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%2Fstock--logistics--warehouse-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_quant_reservation_info
:alt: OCA/stock-logistics-warehouse
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-17-0/stock-logistics-warehouse-17-0-stock_quant_reservation_info
: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/stock-logistics-warehouse&target_branch=17.0
:alt: Try me on Runboat

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

This module allows to easily find out which transfers or manufacturing
orders are reserving a product and navigate to those transfers or MOs.

**Table of contents**

.. contents::
:local:

Usage
=====

Go to one product and check the quantity on hand, on that view you can
see the quantity reserved and the button next to this field allows to
see the pickings related to reservations.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/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/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_reservation_info%0Aversion:%2017.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
-------

* ForgeFlow

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

- David Jiménez <david.jimenez@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/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_quant_reservation_info>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions stock_quant_reservation_info/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
15 changes: 15 additions & 0 deletions stock_quant_reservation_info/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2022 ForgeFlow <http://www.forgeflow.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Stock Move Reservation Info",
"summary": "Allows to see the reserved info of Products",
"version": "17.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Generic",
"depends": ["stock"],
"license": "AGPL-3",
"data": ["views/stock_quant.xml", "views/stock_move_line.xml"],
"installable": True,
}
58 changes: 58 additions & 0 deletions stock_quant_reservation_info/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_quant_reservation_info
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-14 17:58+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 5.6.2\n"

#. module: stock_quant_reservation_info
#: model:ir.model,name:stock_quant_reservation_info.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr "Movimenti prodotto (riga movimento di magazzino)"

#. module: stock_quant_reservation_info
#: model:ir.model,name:stock_quant_reservation_info.model_stock_quant
msgid "Quants"
msgstr "Quanti"

#. module: stock_quant_reservation_info
#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info.view_stock_move_line_reserved_info_tree
msgid "Related Document"
msgstr "Documento correlato"

#. module: stock_quant_reservation_info
#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info.view_stock_quant_tree_reserved_quantity
#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info.view_stock_quant_tree_reserved_quantity_editable
msgid "Reserved Moves"
msgstr "Movimenti prenotati"

#. module: stock_quant_reservation_info
#. odoo-python
#: code:addons/stock_quant_reservation_info/models/stock_quant.py:0
#, python-format
msgid "Reserved Moves for: %(product_name)s"
msgstr "Movimenti prenotati per: %(product_name)s"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"

#, python-format
#~ msgid "Reserved moves for: "
#~ msgstr "Movimenti prenotati per: "
42 changes: 42 additions & 0 deletions stock_quant_reservation_info/i18n/stock_quant_reservation_info.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_quant_reservation_info
#
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: stock_quant_reservation_info
#: model:ir.model,name:stock_quant_reservation_info.model_stock_move_line
msgid "Product Moves (Stock Move Line)"
msgstr ""

#. module: stock_quant_reservation_info
#: model:ir.model,name:stock_quant_reservation_info.model_stock_quant
msgid "Quants"
msgstr ""

#. module: stock_quant_reservation_info
#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info.view_stock_move_line_reserved_info_tree
msgid "Related Document"
msgstr ""

#. module: stock_quant_reservation_info
#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info.view_stock_quant_tree_reserved_quantity
#: model_terms:ir.ui.view,arch_db:stock_quant_reservation_info.view_stock_quant_tree_reserved_quantity_editable
msgid "Reserved Moves"
msgstr ""

#. module: stock_quant_reservation_info
#. odoo-python
#: code:addons/stock_quant_reservation_info/models/stock_quant.py:0
#, python-format
msgid "Reserved Moves for: %(product_name)s"
msgstr ""
2 changes: 2 additions & 0 deletions stock_quant_reservation_info/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import stock_quant
from . import stock_move_line
16 changes: 16 additions & 0 deletions stock_quant_reservation_info/models/stock_move_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2022 ForgeFlow <http://www.forgeflow.com>

from odoo import models


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

def action_view_picking_from_reserved(self):
action = self.env["ir.actions.act_window"]._for_xml_id(

Check warning on line 10 in stock_quant_reservation_info/models/stock_move_line.py

View check run for this annotation

Codecov / codecov/patch

stock_quant_reservation_info/models/stock_move_line.py#L10

Added line #L10 was not covered by tests
"stock.action_picking_tree_all"
)
res = self.env.ref("stock.view_picking_form", False)
action["views"] = [(res and res.id or False, "form")]
action["res_id"] = self.picking_id.id
return action

Check warning on line 16 in stock_quant_reservation_info/models/stock_move_line.py

View check run for this annotation

Codecov / codecov/patch

stock_quant_reservation_info/models/stock_move_line.py#L13-L16

Added lines #L13 - L16 were not covered by tests
37 changes: 37 additions & 0 deletions stock_quant_reservation_info/models/stock_quant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2022 ForgeFlow <http://www.forgeflow.com>

from odoo import _, models


class StockQuant(models.Model):
_inherit = "stock.quant"

def action_reserved_moves(self):
self.ensure_one()
action = {

Check warning on line 11 in stock_quant_reservation_info/models/stock_quant.py

View check run for this annotation

Codecov / codecov/patch

stock_quant_reservation_info/models/stock_quant.py#L10-L11

Added lines #L10 - L11 were not covered by tests
"name": _(
"Reserved Moves for: %(product_name)s",
product_name=self.product_id.name,
),
"view_mode": "list,form",
"res_model": "stock.move.line",
"views": [
(
self.env.ref(
"stock_quant_reservation_info.view_stock_move_line_reserved_info_tree"
).id,
"list",
),
(False, "form"),
],
"type": "ir.actions.act_window",
"context": {},
"domain": [
("product_id", "=", self.product_id.id),
("quantity_product_uom", ">", 0),
("location_id", "=", self.location_id.id),
("lot_id", "=", self.lot_id.id),
("owner_id", "=", self.owner_id.id),
],
}
return action

Check warning on line 37 in stock_quant_reservation_info/models/stock_quant.py

View check run for this annotation

Codecov / codecov/patch

stock_quant_reservation_info/models/stock_quant.py#L37

Added line #L37 was not covered by tests
3 changes: 3 additions & 0 deletions stock_quant_reservation_info/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions stock_quant_reservation_info/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- David Jiménez \<<david.jimenez@forgeflow.com>\>
- Lois Rilo \<<lois.rilo@forgeflow.com>\>
2 changes: 2 additions & 0 deletions stock_quant_reservation_info/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows to easily find out which transfers or manufacturing
orders are reserving a product and navigate to those transfers or MOs.
3 changes: 3 additions & 0 deletions stock_quant_reservation_info/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Go to one product and check the quantity on hand, on that view you can
see the quantity reserved and the button next to this field allows to
see the pickings related to reservations.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading