Skip to content

Commit

Permalink
Merge pull request #1334 from OCA/14.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/stock-logistics-warehouse (14.0)
  • Loading branch information
bt-admin authored Jan 27, 2024
2 parents 0bd87e9 + 5d6e2a1 commit b9343b9
Show file tree
Hide file tree
Showing 21 changed files with 725 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ addon | version | maintainers | summary
[procurement_auto_create_group](procurement_auto_create_group/) | 14.0.1.2.0 | | Allows to configure the system to propose automatically new procurement groups during the procurement run.
[product_quantity_update_force_inventory](product_quantity_update_force_inventory/) | 14.0.1.0.1 | | Product Quantity Update Force Inventory
[product_route_profile](product_route_profile/) | 14.0.1.0.3 | [![Kev-Roche](https://github.com/Kev-Roche.png?size=30px)](https://github.com/Kev-Roche) | Add Route profile concept on product
[sale_stock_on_hand_popup](sale_stock_on_hand_popup/) | 14.0.1.0.1 | | Sale Stock On Hand Popup
[scrap_location_filter](scrap_location_filter/) | 14.0.1.0.0 | [![opensourceintegrators](https://github.com/opensourceintegrators.png?size=30px)](https://github.com/opensourceintegrators) | Filters scrap location
[scrap_reason_code](scrap_reason_code/) | 14.0.1.1.1 | [![bodedra](https://github.com/bodedra.png?size=30px)](https://github.com/bodedra) | Reason code for scrapping
[stock_archive_constraint](stock_archive_constraint/) | 14.0.1.0.0 | [![victoralmau](https://github.com/victoralmau.png?size=30px)](https://github.com/victoralmau) | Stock archive constraint
Expand Down
93 changes: 93 additions & 0 deletions sale_stock_on_hand_popup/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
========================
Sale Stock On Hand Popup
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7e7d0b495f5c5c2c119238bc86c9beee329c4ac57c102e536b6fc4dce6988870
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/14.0/sale_stock_on_hand_popup
: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-14-0/stock-logistics-warehouse-14-0-sale_stock_on_hand_popup
: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=14.0
:alt: Try me on Runboat

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

This module allows user to check from sale order line all inventory lines related to that product.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

#. Go to *Sales > Orders > quotations* and create a new one.
#. Add a sale order line with a storable product
#. Click on the icon in the line and you will
see in the popover the '-> View Stock' button that will redirect
the user to a 'Stock Lines' page for the specific product.

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:%20sale_stock_on_hand_popup%0Aversion:%2014.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
~~~~~~~

* PyTech SRL
* Ooops404

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

* `PyTech SRL <https://www.pytech.it>`__:

* Alessio Renda

* `Ooops404 <https://www.ooops404.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/14.0/sale_stock_on_hand_popup>`_ 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 sale_stock_on_hand_popup/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
13 changes: 13 additions & 0 deletions sale_stock_on_hand_popup/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "Sale Stock On Hand Popup",
"author": "PyTech SRL, Ooops404, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse Management",
"version": "14.0.1.0.1",
"license": "AGPL-3",
"depends": ["sale_stock", "stock_available"],
"data": ["views/sale_order_views.xml"],
"qweb": ["static/src/xml/sale_stock.xml"],
"installable": True,
"application": False,
}
47 changes: 47 additions & 0 deletions sale_stock_on_hand_popup/i18n/sale_stock_on_hand_popup.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_stock_on_hand_popup
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product__display_name
msgid "Display Name"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product__id
msgid "ID"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model.fields,field_description:sale_stock_on_hand_popup.field_product_product____last_update
msgid "Last Modified on"
msgstr ""

#. module: sale_stock_on_hand_popup
#: model:ir.model,name:sale_stock_on_hand_popup.model_product_product
msgid "Product"
msgstr ""

#. module: sale_stock_on_hand_popup
#: code:addons/sale_stock_on_hand_popup/models/product.py:0
#, python-format
msgid "Stock Lines"
msgstr ""

#. module: sale_stock_on_hand_popup
#. openerp-web
#: code:addons/sale_stock_on_hand_popup/static/src/xml/sale_stock.xml:0
#, python-format
msgid "View Stock"
msgstr ""
1 change: 1 addition & 0 deletions sale_stock_on_hand_popup/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import product
20 changes: 20 additions & 0 deletions sale_stock_on_hand_popup/models/product.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from odoo import _, models


class Product(models.Model):
_inherit = "product.product"

def action_open_quants_show_products(self):
res = self.action_open_quants()

res.update(
{
"name": _("Stock Lines"),
"context": {
**res.get("context", {}),
"single_product": False,
"edit": False,
},
}
)
return res
6 changes: 6 additions & 0 deletions sale_stock_on_hand_popup/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* `PyTech SRL <https://www.pytech.it>`__:

* Alessio Renda

* `Ooops404 <https://www.ooops404.com>`__:

1 change: 1 addition & 0 deletions sale_stock_on_hand_popup/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows user to check from sale order line all inventory lines related to that product.
7 changes: 7 additions & 0 deletions sale_stock_on_hand_popup/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module, you need to:

#. Go to *Sales > Orders > quotations* and create a new one.
#. Add a sale order line with a storable product
#. Click on the icon in the line and you will
see in the popover the '-> View Stock' button that will redirect
the user to a 'Stock Lines' page for the specific product.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b9343b9

Please sign in to comment.