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 000000000000..c6554cb87e4d --- /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 000000000000..28c57bb64031 --- /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 000000000000..c24a40338fcd --- /dev/null +++ b/stock_location_position/README.rst @@ -0,0 +1,90 @@ +======================= +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/13.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-13-0/stock-logistics-warehouse-13-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/13.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 + +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 000000000000..0650744f6bc6 --- /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 000000000000..4bd354639db5 --- /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": "13.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": "Alpha", + "license": "AGPL-3", +} diff --git a/stock_location_position/models/__init__.py b/stock_location_position/models/__init__.py new file mode 100644 index 000000000000..88493e35d945 --- /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 000000000000..537700303f80 --- /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("Corridor", help="Define as the street") + row = fields.Char("Row", help="Define as the side within the street") + rack = fields.Char("Rack", help="Define as the house number within the street") + level = fields.Char("Level", 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 000000000000..0425dda611ce --- /dev/null +++ b/stock_location_position/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Syvain Van Hoof (Okia sprl) +* Jacques-Etienne Baudoux (BCIM) +* Guewen Baconnier (Camptocamp) +* Akim Juillerat diff --git a/stock_location_position/readme/DESCRIPTION.rst b/stock_location_position/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..b8a76c8031de --- /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 000000000000..3a0328b516c4 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 000000000000..42f966fafc06 --- /dev/null +++ b/stock_location_position/static/description/index.html @@ -0,0 +1,437 @@ + + + + + + +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

+ +
+
+

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 000000000000..7b555893a29c --- /dev/null +++ b/stock_location_position/views/stock_location.xml @@ -0,0 +1,42 @@ + + + + + stock.location.inherit + stock.location + + + + + + + + + + + + + + + + + + view.location.search.inherit + stock.location + + + + + + + + + + + + + + + + +