diff --git a/stock_vertical_lift_storage_type/README.rst b/stock_vertical_lift_storage_type/README.rst new file mode 100644 index 000000000..e6c067846 --- /dev/null +++ b/stock_vertical_lift_storage_type/README.rst @@ -0,0 +1,91 @@ +============================ +Vertical Lift - Storage Type +============================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |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_vertical_lift_storage_type + :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_vertical_lift_storage_type + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/153/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Compatibility layer between Stock Vertical Lift and Putaway Storage Types (OCA/wms). + +In the vertical lift's Putaway screen, when a good is scanned for a putaway, the +user has to scan the tray type of the corresponding size, so an empty place in a +matching tray is found. When we use storage types, we should know what tray is +compatible with the storage type. + +Changes with this module: + +* The storage types of trays cannot be selected in the locations form, they have + to be set in the Tray types. +* In the lift put-away screen, when a package has a storage type, the user isn't + asked to scan a tray type, instead, the putaway of the Package Storage Type is + applied. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Guewen Baconnier + +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 `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_vertical_lift_storage_type/i18n/stock_vertical_lift_storage_type.pot b/stock_vertical_lift_storage_type/i18n/stock_vertical_lift_storage_type.pot new file mode 100644 index 000000000..d4546841e --- /dev/null +++ b/stock_vertical_lift_storage_type/i18n/stock_vertical_lift_storage_type.pot @@ -0,0 +1,68 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_vertical_lift_storage_type +# +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_vertical_lift_storage_type +#: code:addons/stock_vertical_lift_storage_type/models/stock_location.py:0 +#, python-format +msgid "" +"Error creating '{}': Location storage type must be set on the tray type" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: code:addons/stock_vertical_lift_storage_type/models/stock_location.py:0 +#, python-format +msgid "Error updating {}: Location storage type must be set on the tray type" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model:ir.model,name:stock_vertical_lift_storage_type.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model:ir.model.fields,field_description:stock_vertical_lift_storage_type.field_stock_location_tray_type__location_storage_type_ids +msgid "Location Storage Type" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model:ir.model.fields,help:stock_vertical_lift_storage_type.field_stock_location_tray_type__location_storage_type_ids +msgid "Location storage types applied on the location using this tray type." +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: code:addons/stock_vertical_lift_storage_type/models/vertical_lift_operation_put.py:0 +#, python-format +msgid "No free space found for storage type '{}' in shuttle '{}'" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model_terms:ir.ui.view,arch_db:stock_vertical_lift_storage_type.view_stock_location_tray_type_form +msgid "Put-Away" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model:ir.model,name:stock_vertical_lift_storage_type.model_stock_quant +msgid "Quants" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model:ir.model,name:stock_vertical_lift_storage_type.model_stock_location_tray_type +msgid "Stock Location Tray Type" +msgstr "" + +#. module: stock_vertical_lift_storage_type +#: model:ir.model,name:stock_vertical_lift_storage_type.model_vertical_lift_operation_put +msgid "Vertical Lift Operation Put" +msgstr "" diff --git a/stock_vertical_lift_storage_type/models/__init__.py b/stock_vertical_lift_storage_type/models/__init__.py index 029c1ede2..cb2169a09 100644 --- a/stock_vertical_lift_storage_type/models/__init__.py +++ b/stock_vertical_lift_storage_type/models/__init__.py @@ -1,3 +1,4 @@ from . import stock_location from . import stock_location_tray_type +from . import stock_quant from . import vertical_lift_operation_put diff --git a/stock_vertical_lift_storage_type/models/stock_quant.py b/stock_vertical_lift_storage_type/models/stock_quant.py new file mode 100644 index 000000000..90994ee81 --- /dev/null +++ b/stock_vertical_lift_storage_type/models/stock_quant.py @@ -0,0 +1,18 @@ +# Copyright 2020 Camptocamp SA +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) +from odoo import models + + +class StockQuant(models.Model): + + _inherit = "stock.quant" + + def _check_storage_type(self): + # disable the checks when placing goods in vertical lift cells: + # we still want to benefit of the storage type rules to select + # a destination, but we want to allow selecting a different tray + # type + self = self.filtered( + lambda quant: quant.location_id.vertical_lift_kind != "cell" + ) + super()._check_storage_type() diff --git a/stock_vertical_lift_storage_type/static/description/icon.png b/stock_vertical_lift_storage_type/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_vertical_lift_storage_type/static/description/icon.png differ diff --git a/stock_vertical_lift_storage_type/static/description/index.html b/stock_vertical_lift_storage_type/static/description/index.html new file mode 100644 index 000000000..c1519eb58 --- /dev/null +++ b/stock_vertical_lift_storage_type/static/description/index.html @@ -0,0 +1,437 @@ + + + + + + +Vertical Lift - Storage Type + + + +
+

Vertical Lift - Storage Type

+ + +

Alpha License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runbot

+

Compatibility layer between Stock Vertical Lift and Putaway Storage Types (OCA/wms).

+

In the vertical lift’s Putaway screen, when a good is scanned for a putaway, the +user has to scan the tray type of the corresponding size, so an empty place in a +matching tray is found. When we use storage types, we should know what tray is +compatible with the storage type.

+

Changes with this module:

+
    +
  • The storage types of trays cannot be selected in the locations form, they have +to be set in the Tray types.
  • +
  • In the lift put-away screen, when a package has a storage type, the user isn’t +asked to scan a tray type, instead, the putaway of the Package Storage Type is +applied.
  • +
+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ +