forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '14.0-mig-stock_warehouse_orderpoint_stock_info_unreserv…
…ed' of git+ssh://github.com/sergiocorato/stock-logistics-warehouse into 14.0
- Loading branch information
Showing
22 changed files
with
938 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...rpoint_stock_info_unreserved/odoo/addons/stock_warehouse_orderpoint_stock_info_unreserved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_warehouse_orderpoint_stock_info_unreserved |
6 changes: 6 additions & 0 deletions
6
setup/stock_warehouse_orderpoint_stock_info_unreserved/setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
78 changes: 78 additions & 0 deletions
78
stock_warehouse_orderpoint_stock_info_unreserved/README.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
================================================ | ||
Stock Warehouse Orderpoint Stock Info Unreserved | ||
================================================ | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:30f6ea1cb465372058fc8933af3bce3887d23e39f4de32664bebe0182e7d2331 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/13.0/stock_warehouse_orderpoint_stock_info_unreserved | ||
: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-13-0/stock-logistics-warehouse-13-0-stock_warehouse_orderpoint_stock_info_unreserved | ||
: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=13.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This modules allows to display the availability of stock on hand and unreserved on a reordering rule. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
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_warehouse_orderpoint_stock_info_unreserved%0Aversion:%2013.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 | ||
~~~~~~~~~~~~ | ||
|
||
* Jordi Ballester Alomar <[email protected]> | ||
* Saran Limpajitkutaporn <[email protected]> | ||
* Pimolnat Suntian <[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. | ||
|
||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_warehouse_orderpoint_stock_info_unreserved>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright 2018 Camptocamp SA | ||
# Copyright 2016 ForgeFlow, S.L. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
15 changes: 15 additions & 0 deletions
15
stock_warehouse_orderpoint_stock_info_unreserved/__manifest__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Copyright 2018 Camptocamp SA | ||
# Copyright 2016 ForgeFlow, S.L. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Stock Warehouse Orderpoint Stock Info Unreserved", | ||
"version": "14.0.1.0.0", | ||
"depends": ["stock_warehouse_orderpoint_stock_info", "stock_available_unreserved"], | ||
"author": "ForgeFlow, " "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/stock-logistics-warehouse", | ||
"category": "Warehouse", | ||
"license": "AGPL-3", | ||
"data": ["views/stock_warehouse_orderpoint_view.xml"], | ||
"installable": True, | ||
} |
31 changes: 31 additions & 0 deletions
31
stock_warehouse_orderpoint_stock_info_unreserved/i18n/de.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
# Rudolf Schnapka <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-29 13:13+0000\n" | ||
"PO-Revision-Date: 2017-06-29 13:13+0000\n" | ||
"Last-Translator: Rudolf Schnapka <[email protected]>, 2017\n" | ||
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" | ||
"Language: de\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" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "Mindestbestandsregel" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "Bestand am Lagerplatz (nicht reserviert)" |
30 changes: 30 additions & 0 deletions
30
stock_warehouse_orderpoint_stock_info_unreserved/i18n/es.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-10 05:36+0000\n" | ||
"PO-Revision-Date: 2017-06-10 05:36+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "Regla de inventario mínimo" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "" |
31 changes: 31 additions & 0 deletions
31
stock_warehouse_orderpoint_stock_info_unreserved/i18n/es_ES.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
# Translators: | ||
# Daniel <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-07-26 11:42+0000\n" | ||
"PO-Revision-Date: 2017-07-26 11:42+0000\n" | ||
"Last-Translator: Daniel <[email protected]>, 2017\n" | ||
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" | ||
"es_ES/)\n" | ||
"Language: es_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" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "Regla inventario mínimo" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "" |
32 changes: 32 additions & 0 deletions
32
stock_warehouse_orderpoint_stock_info_unreserved/i18n/pt_BR.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-10 05:36+0000\n" | ||
"PO-Revision-Date: 2019-08-30 14:23+0000\n" | ||
"Last-Translator: Rodrigo Macedo <[email protected]>\n" | ||
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" | ||
"teams/23907/pt_BR/)\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 3.8\n" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "Regra minima de inventário" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "Quantidade no local (não reservada)" |
31 changes: 31 additions & 0 deletions
31
stock_warehouse_orderpoint_stock_info_unreserved/i18n/sl.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
# Translators: | ||
# OCA Transbot <[email protected]>, 2017 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 9.0c\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2017-06-10 05:36+0000\n" | ||
"PO-Revision-Date: 2017-06-10 05:36+0000\n" | ||
"Last-Translator: OCA Transbot <[email protected]>, 2017\n" | ||
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" | ||
"Language: sl\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" | ||
"%100==4 ? 2 : 3);\n" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "Pravilo minimalne zaloge" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "" |
25 changes: 25 additions & 0 deletions
25
...rderpoint_stock_info_unreserved/i18n/stock_warehouse_orderpoint_stock_info_unreserved.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 13.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_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "" |
28 changes: 28 additions & 0 deletions
28
stock_warehouse_orderpoint_stock_info_unreserved/i18n/zh_CN.po
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * stock_warehouse_orderpoint_stock_info_unreserved | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 12.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2019-10-16 15:58+0000\n" | ||
"Last-Translator: 黎伟杰 <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: zh_CN\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=1; plural=0;\n" | ||
"X-Generator: Weblate 3.8\n" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model,name:stock_warehouse_orderpoint_stock_info_unreserved.model_stock_warehouse_orderpoint | ||
msgid "Minimum Inventory Rule" | ||
msgstr "最小库存规则" | ||
|
||
#. module: stock_warehouse_orderpoint_stock_info_unreserved | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint__product_location_qty_available_not_res | ||
#: model:ir.model.fields,field_description:stock_warehouse_orderpoint_stock_info_unreserved.field_stock_warehouse_orderpoint_template__product_location_qty_available_not_res | ||
msgid "Quantity On Location (Unreserved)" | ||
msgstr "位置数量(未预留)" |
5 changes: 5 additions & 0 deletions
5
stock_warehouse_orderpoint_stock_info_unreserved/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright 2018 Camptocamp SA | ||
# Copyright 2016 ForgeFlow, S.L. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import stock_warehouse_orderpoint |
34 changes: 34 additions & 0 deletions
34
stock_warehouse_orderpoint_stock_info_unreserved/models/stock_warehouse_orderpoint.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2018 Camptocamp SA | ||
# Copyright 2016 ForgeFlow, S.L. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from collections import defaultdict | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class StockWarehouseOrderpoint(models.Model): | ||
_inherit = "stock.warehouse.orderpoint" | ||
|
||
product_location_qty_available_not_res = fields.Float( | ||
string="Quantity On Location (Unreserved)", | ||
compute="_compute_product_available_qty", | ||
) | ||
|
||
def _compute_product_available_qty(self): | ||
super()._compute_product_available_qty() | ||
op_by_loc = defaultdict(set) | ||
for order in self: | ||
op_by_loc[order.location_id].add(order.id) | ||
for location_id, order_in_loc in op_by_loc.items(): | ||
order_in_loc = self.browse(order_in_loc) | ||
products = ( | ||
order_in_loc.mapped("product_id") | ||
.with_context(location=location_id.id) | ||
._compute_qty_available_not_reserved() | ||
) | ||
for order in order_in_loc: | ||
product = products[order.product_id.id] | ||
order.product_location_qty_available_not_res = product[ | ||
"qty_available_not_res" | ||
] |
3 changes: 3 additions & 0 deletions
3
stock_warehouse_orderpoint_stock_info_unreserved/readme/CONTRIBUTORS.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* Jordi Ballester Alomar <[email protected]> | ||
* Saran Limpajitkutaporn <[email protected]> | ||
* Pimolnat Suntian <[email protected]> |
1 change: 1 addition & 0 deletions
1
stock_warehouse_orderpoint_stock_info_unreserved/readme/DESCRIPTION.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This modules allows to display the availability of stock on hand and unreserved on a reordering rule. |
Binary file added
BIN
+9.23 KB
stock_warehouse_orderpoint_stock_info_unreserved/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.