diff --git a/setup/stock_location_position/odoo/addons/stock_location_position b/setup/stock_location_position/odoo/addons/stock_location_position new file mode 120000 index 000000000..c6554cb87 --- /dev/null +++ b/setup/stock_location_position/odoo/addons/stock_location_position @@ -0,0 +1 @@ +../../../../stock_location_position \ No newline at end of file diff --git a/setup/stock_location_position/setup.py b/setup/stock_location_position/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/stock_location_position/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_location_position/README.rst b/stock_location_position/README.rst new file mode 100644 index 000000000..5a3b9f84d --- /dev/null +++ b/stock_location_position/README.rst @@ -0,0 +1,98 @@ +======================= +Stock Location Position +======================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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/14.0/stock_location_position + :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-stock_location_position + :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/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds position attributes on stock location such as: + +* Corridor +* Row +* Rack +* Level + +and renames position (XYZ) to box (XYZ). + +.. 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 +~~~~~~~ + +* BCIM +* Okia +* Camptocamp + +Contributors +~~~~~~~~~~~~ + +* Syvain Van Hoof (Okia sprl) +* Jacques-Etienne Baudoux (BCIM) +* Guewen Baconnier (Camptocamp) +* Akim Juillerat +* Phuc Tran Thanh + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Camptocamp + +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_location_position/__init__.py b/stock_location_position/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_location_position/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_location_position/__manifest__.py b/stock_location_position/__manifest__.py new file mode 100644 index 000000000..2d7e2ce63 --- /dev/null +++ b/stock_location_position/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2017 Syvain Van Hoof (Okia sprl) +# Copyright 2016-2019 Jacques-Etienne Baudoux (BCIM) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Stock Location Position", + "version": "16.0.1.0.0", + "author": "BCIM, Okia, Camptocamp, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "summary": "Add coordinate attributes on stock location.", + "category": "Stock Management", + "depends": ["stock"], + "data": ["views/stock_location.xml"], + "installable": True, + "development_status": "Production/Stable", + "license": "AGPL-3", +} diff --git a/stock_location_position/i18n/stock_location_position.pot b/stock_location_position/i18n/stock_location_position.pot new file mode 100644 index 000000000..80ba61396 --- /dev/null +++ b/stock_location_position/i18n/stock_location_position.pot @@ -0,0 +1,115 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_location_position +# +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: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__posx +msgid "Box (X)" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__posy +msgid "Box (Y)" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__posz +msgid "Box (Z)" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__corridor +msgid "Corridor" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__level +msgid "Define as the floor of the house" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__rack +msgid "Define as the house number within the street" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__row +msgid "Define as the side within the street" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__corridor +msgid "Define as the street" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__display_name +msgid "Display Name" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__id +msgid "ID" +msgstr "" + +#. module: stock_location_position +#: model:ir.model,name:stock_location_position.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location____last_update +msgid "Last Modified on" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__level +msgid "Level" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__posx +msgid "" +"Optional (X) coordinate of the bin if the location is split in several " +"parts. (e.g. drawer storage)" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__posy +msgid "" +"Optional (Y) coordinate of the bin if the location is split in several " +"parts. (e.g. drawer storage)" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,help:stock_location_position.field_stock_location__posz +msgid "" +"Optional (Z) coordinate of the bin if the location is split in several " +"parts. (e.g. storage tray)" +msgstr "" + +#. module: stock_location_position +#: model_terms:ir.ui.view,arch_db:stock_location_position.stock_location_form_inherit +msgid "Position" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__rack +msgid "Rack" +msgstr "" + +#. module: stock_location_position +#: model:ir.model.fields,field_description:stock_location_position.field_stock_location__row +msgid "Row" +msgstr "" diff --git a/stock_location_position/models/__init__.py b/stock_location_position/models/__init__.py new file mode 100644 index 000000000..88493e35d --- /dev/null +++ b/stock_location_position/models/__init__.py @@ -0,0 +1 @@ +from . import stock_location diff --git a/stock_location_position/models/stock_location.py b/stock_location_position/models/stock_location.py new file mode 100644 index 000000000..bee77c275 --- /dev/null +++ b/stock_location_position/models/stock_location.py @@ -0,0 +1,31 @@ +# Copyright 2017 Sylvain Van Hoof +# Copyright 2018-2019 Jacques-Etienne Baudoux (BCIM sprl) +# Copyright 2019 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class StockLocation(models.Model): + + _inherit = "stock.location" + + corridor = fields.Char(help="Define as the street") + row = fields.Char(help="Define as the side within the street") + rack = fields.Char(help="Define as the house number within the street") + level = fields.Char(help="Define as the floor of the house") + posx = fields.Integer( + "Box (X)", + help="Optional (X) coordinate of the bin if the location" + " is split in several parts. (e.g. drawer storage)", + ) + posy = fields.Integer( + "Box (Y)", + help="Optional (Y) coordinate of the bin if the location" + " is split in several parts. (e.g. drawer storage)", + ) + posz = fields.Integer( + "Box (Z)", + help="Optional (Z) coordinate of the bin if the location" + " is split in several parts. (e.g. storage tray)", + ) diff --git a/stock_location_position/readme/CONTRIBUTORS.rst b/stock_location_position/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..f2f6cdfd5 --- /dev/null +++ b/stock_location_position/readme/CONTRIBUTORS.rst @@ -0,0 +1,5 @@ +* Syvain Van Hoof (Okia sprl) +* Jacques-Etienne Baudoux (BCIM) +* Guewen Baconnier (Camptocamp) +* Akim Juillerat +* Phuc Tran Thanh diff --git a/stock_location_position/readme/CREDITS.rst b/stock_location_position/readme/CREDITS.rst new file mode 100644 index 000000000..f5cc070c7 --- /dev/null +++ b/stock_location_position/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Camptocamp diff --git a/stock_location_position/readme/DESCRIPTION.rst b/stock_location_position/readme/DESCRIPTION.rst new file mode 100644 index 000000000..b8a76c803 --- /dev/null +++ b/stock_location_position/readme/DESCRIPTION.rst @@ -0,0 +1,8 @@ +This module adds position attributes on stock location such as: + +* Corridor +* Row +* Rack +* Level + +and renames position (XYZ) to box (XYZ). diff --git a/stock_location_position/static/description/icon.png b/stock_location_position/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_location_position/static/description/icon.png differ diff --git a/stock_location_position/static/description/index.html b/stock_location_position/static/description/index.html new file mode 100644 index 000000000..ca1342e62 --- /dev/null +++ b/stock_location_position/static/description/index.html @@ -0,0 +1,446 @@ + + + + + + +Stock Location Position + + + +
+

Stock Location Position

+ + +

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

+

This module adds position attributes on stock location such as:

+
    +
  • Corridor
  • +
  • Row
  • +
  • Rack
  • +
  • Level
  • +
+

and renames position (XYZ) to box (XYZ).

+
+

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

+
    +
  • BCIM
  • +
  • Okia
  • +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+
    +
  • Camptocamp
  • +
+
+
+

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.

+
+
+
+ + diff --git a/stock_location_position/views/stock_location.xml b/stock_location_position/views/stock_location.xml new file mode 100644 index 000000000..167605404 --- /dev/null +++ b/stock_location_position/views/stock_location.xml @@ -0,0 +1,37 @@ + + + + stock.location.inherit + stock.location + + + + + + + + + + + + + + + + + view.location.search.inherit + stock.location + + + + + + + + + + + + + +