diff --git a/setup/stock_location_zone/odoo/addons/stock_location_zone b/setup/stock_location_zone/odoo/addons/stock_location_zone new file mode 120000 index 000000000000..7d216d8f919f --- /dev/null +++ b/setup/stock_location_zone/odoo/addons/stock_location_zone @@ -0,0 +1 @@ +../../../../stock_location_zone \ No newline at end of file diff --git a/setup/stock_location_zone/setup.py b/setup/stock_location_zone/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/stock_location_zone/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_location_zone/README.rst b/stock_location_zone/README.rst index 21ec6f883deb..3251dc8b0341 100644 --- a/stock_location_zone/README.rst +++ b/stock_location_zone/README.rst @@ -14,19 +14,27 @@ Stock Location Zone :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/12.0/stock_location_zone + :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_location_zone :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-12-0/stock-logistics-warehouse-12-0-stock_location_zone + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_location_zone :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/12.0 + :target: https://runbot.odoo-community.org/runbot/153/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| -Add coordinate attributes on stock location. -Define picking zone with links to picking type. +This module introduces Zone concept on stock locations to allow better +classification of stock locations in a warehouse. + +Locations are then classified by location kinds that could be: + +* Zone: locations that are flagged as being zones. Zones are subdivisions of the warehouse for splitting picking operations. A picking operator work in a zone and can pick from any location of the zone. +* Area: locations with children that are part of a zone. Areas are subdivisions of the warehouse for put-away operations. Each area has storage characteristics and strategy, e.g. area for pallets, shelf for boxes... +* Bin: locations without children that are part of a zone +* Stock: internal locations whose parent is a view +* Other: any other location .. IMPORTANT:: This is an alpha version, the data model and design can change at any time without warning. @@ -38,22 +46,13 @@ Define picking zone with links to picking type. .. contents:: :local: -Configuration -============= - -In Inventory Settings, you must have: - - * Storage Locations - -Set coordinate attibute on the locations. - 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -73,6 +72,7 @@ Contributors * Syvain Van Hoof (Okia sprl) * Jacques-Etienne Baudoux (BCIM) * Guewen Baconnier (Camptocamp) +* Akim Juillerat Maintainers ~~~~~~~~~~~ @@ -87,6 +87,6 @@ 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. +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_zone/__manifest__.py b/stock_location_zone/__manifest__.py index f81416eb8bc9..f0b4ba9deea5 100644 --- a/stock_location_zone/__manifest__.py +++ b/stock_location_zone/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Stock Location Zone", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "author": "BCIM, Okia, Camptocamp, Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", "summary": "Classify locations with zones.", diff --git a/stock_location_zone/i18n/stock_location_zone.pot b/stock_location_zone/i18n/stock_location_zone.pot index ca2af97a2460..273c831642bd 100644 --- a/stock_location_zone/i18n/stock_location_zone.pot +++ b/stock_location_zone/i18n/stock_location_zone.pot @@ -13,12 +13,6 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: stock_location_zone -#: code:addons/stock_location_zone/models/stock_location.py:110 -#, python-format -msgid "%s (copy)" -msgstr "" - #. module: stock_location_zone #: model:ir.model.fields,field_description:stock_location_zone.field_stock_location__area #: selection:stock.location,kind:0 diff --git a/stock_location_zone/i18n/zh_CN.po b/stock_location_zone/i18n/zh_CN.po index 46f7e7201340..117417ed91a0 100644 --- a/stock_location_zone/i18n/zh_CN.po +++ b/stock_location_zone/i18n/zh_CN.po @@ -16,12 +16,6 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: Weblate 3.8\n" -#. module: stock_location_zone -#: code:addons/stock_location_zone/models/stock_location.py:110 -#, python-format -msgid "%s (copy)" -msgstr "%s (复制)" - #. module: stock_location_zone #: model:ir.model.fields,field_description:stock_location_zone.field_stock_location__area #: selection:stock.location,kind:0 diff --git a/stock_location_zone/models/stock_location.py b/stock_location_zone/models/stock_location.py index 099dd4d7cf46..388f8e92585c 100644 --- a/stock_location_zone/models/stock_location.py +++ b/stock_location_zone/models/stock_location.py @@ -3,7 +3,7 @@ # Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import _, api, fields, models +from odoo import api, fields, models class StockLocation(models.Model): @@ -102,12 +102,3 @@ def _compute_location_kind(self): else: # All the rest are other locations location.location_kind = "other" - - @api.multi - @api.returns("self", lambda value: value.id) - def copy(self, default=None): - self.ensure_one() - default = dict(default or {}) - if "name" not in default: - default["name"] = _("%s (copy)") % self.name - return super().copy(default=default) diff --git a/stock_location_zone/static/description/index.html b/stock_location_zone/static/description/index.html index 542d00e98ff7..65cd947ed560 100644 --- a/stock_location_zone/static/description/index.html +++ b/stock_location_zone/static/description/index.html @@ -3,7 +3,7 @@ - + Stock Location Zone