diff --git a/setup/stock_inventory_lockdown/odoo/addons/stock_inventory_lockdown b/setup/stock_inventory_lockdown/odoo/addons/stock_inventory_lockdown new file mode 120000 index 000000000000..98ace7ae067f --- /dev/null +++ b/setup/stock_inventory_lockdown/odoo/addons/stock_inventory_lockdown @@ -0,0 +1 @@ +../../../../stock_inventory_lockdown \ No newline at end of file diff --git a/setup/stock_inventory_lockdown/setup.py b/setup/stock_inventory_lockdown/setup.py new file mode 100644 index 000000000000..28c57bb64031 --- /dev/null +++ b/setup/stock_inventory_lockdown/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/stock_inventory_lockdown/README.rst b/stock_inventory_lockdown/README.rst new file mode 100644 index 000000000000..5b843590d6e8 --- /dev/null +++ b/stock_inventory_lockdown/README.rst @@ -0,0 +1,95 @@ +=================== +Inventory Lock Down +=================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:babaf62e88e317c7456236551ea3ca7c5620730997acea8fbf6e8c4fa3c9ccc0 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/15.0/stock_inventory_lockdown + :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-15-0/stock-logistics-warehouse-15-0-stock_inventory_lockdown + :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=15.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module lets you lock down the locations during an inventory. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +While an inventory is in the state "In progress", no stock moves +can be recorded in/out of the inventory's location: users will get an error +message. +Creating or modifying locations is also forbidden. + +.. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/15.0/stock_inventory_lockdown/static/images/move_error.png + :alt: Error message + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Numérigraphe +* ForgeFlow + +Contributors +~~~~~~~~~~~~ + +* Loïc Bellier (Numérigraphe) +* Lionel Sausin (Numérigraphe) +* Laetitia Gangloff (Acsone) +* Laurent Mignon (Acsone) +* Lois Rilo (ForgeFlow) +* Jordi Ballester (ForgeFlow) +* Michael Allen +* Bhavesh Odedra + +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_inventory_lockdown/__init__.py b/stock_inventory_lockdown/__init__.py new file mode 100644 index 000000000000..0650744f6bc6 --- /dev/null +++ b/stock_inventory_lockdown/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_inventory_lockdown/__manifest__.py b/stock_inventory_lockdown/__manifest__.py new file mode 100644 index 000000000000..8bbe3492d8f9 --- /dev/null +++ b/stock_inventory_lockdown/__manifest__.py @@ -0,0 +1,16 @@ +# © 2013-2016 Numérigraphe SARL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Inventory Lock Down", + "summary": "Lock down stock locations during inventories.", + "version": "15.0.1.0.0", + "development_status": "Beta", + "depends": ["stock", "stock_inventory"], + "author": "Numérigraphe, ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/stock-logistics-warehouse", + "category": "Warehouse Management", + "images": ["images/move_error.png", "images/location_locked.png"], + "license": "AGPL-3", + "installable": True, +} diff --git a/stock_inventory_lockdown/i18n/ca.po b/stock_inventory_lockdown/i18n/ca.po new file mode 100644 index 000000000000..42d292535da9 --- /dev/null +++ b/stock_inventory_lockdown/i18n/ca.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Moviments d'estoc" diff --git a/stock_inventory_lockdown/i18n/cs_CZ.po b/stock_inventory_lockdown/i18n/cs_CZ.po new file mode 100644 index 000000000000..867c597522e8 --- /dev/null +++ b/stock_inventory_lockdown/i18n/cs_CZ.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# Lukáš Spurný , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-02-27 11:37+0000\n" +"PO-Revision-Date: 2018-02-27 11:37+0000\n" +"Last-Translator: Lukáš Spurný , 2018\n" +"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/" +"teams/23907/cs_CZ/)\n" +"Language: cs_CZ\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, fuzzy, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "Inventář se provádí na následujících místech: %s" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "Na tomto místě se provádí inventář" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventář" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "Umístění inventáře" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Přesunout zásoby" diff --git a/stock_inventory_lockdown/i18n/de.po b/stock_inventory_lockdown/i18n/de.po new file mode 100644 index 000000000000..5e06fcdd07c4 --- /dev/null +++ b/stock_inventory_lockdown/i18n/de.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Bestand" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Lagerbewegung" diff --git a/stock_inventory_lockdown/i18n/es.po b/stock_inventory_lockdown/i18n/es.po new file mode 100644 index 000000000000..71b230181fb0 --- /dev/null +++ b/stock_inventory_lockdown/i18n/es.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventario" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Movimiento de existencias" diff --git a/stock_inventory_lockdown/i18n/es_ES.po b/stock_inventory_lockdown/i18n/es_ES.po new file mode 100644 index 000000000000..6ebe25af242c --- /dev/null +++ b/stock_inventory_lockdown/i18n/es_ES.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: stock-logistics-warehouse (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-07 07:40+0000\n" +"PO-Revision-Date: 2016-04-14 14:47+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Spain) (http://www.transifex.com/oca/OCA-stock-" +"logistics-warehouse-8-0/language/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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventario" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "" diff --git a/stock_inventory_lockdown/i18n/es_MX.po b/stock_inventory_lockdown/i18n/es_MX.po new file mode 100644 index 000000000000..80edcc4119b8 --- /dev/null +++ b/stock_inventory_lockdown/i18n/es_MX.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Movimiento bursátil" diff --git a/stock_inventory_lockdown/i18n/fi.po b/stock_inventory_lockdown/i18n/fi.po new file mode 100644 index 000000000000..27df3e87e495 --- /dev/null +++ b/stock_inventory_lockdown/i18n/fi.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Varastosiirto" diff --git a/stock_inventory_lockdown/i18n/fr.po b/stock_inventory_lockdown/i18n/fr.po new file mode 100644 index 000000000000..09b575561ced --- /dev/null +++ b/stock_inventory_lockdown/i18n/fr.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventaire" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Mouvement de stock" diff --git a/stock_inventory_lockdown/i18n/gl.po b/stock_inventory_lockdown/i18n/gl.po new file mode 100644 index 000000000000..a6fa41ccc0dd --- /dev/null +++ b/stock_inventory_lockdown/i18n/gl.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Movemento de existencias" diff --git a/stock_inventory_lockdown/i18n/hr.po b/stock_inventory_lockdown/i18n/hr.po new file mode 100644 index 000000000000..fb8206cd6d42 --- /dev/null +++ b/stock_inventory_lockdown/i18n/hr.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Skladišni prenos" diff --git a/stock_inventory_lockdown/i18n/it.po b/stock_inventory_lockdown/i18n/it.po new file mode 100644 index 000000000000..e60fcb4a1e2f --- /dev/null +++ b/stock_inventory_lockdown/i18n/it.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventario" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Movimento di magazzino" diff --git a/stock_inventory_lockdown/i18n/nl_NL.po b/stock_inventory_lockdown/i18n/nl_NL.po new file mode 100644 index 000000000000..a1f9c1af2b80 --- /dev/null +++ b/stock_inventory_lockdown/i18n/nl_NL.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Voorraadmutatie" diff --git a/stock_inventory_lockdown/i18n/pt.po b/stock_inventory_lockdown/i18n/pt.po new file mode 100644 index 000000000000..3433178254c5 --- /dev/null +++ b/stock_inventory_lockdown/i18n/pt.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Movimento Stock" diff --git a/stock_inventory_lockdown/i18n/pt_BR.po b/stock_inventory_lockdown/i18n/pt_BR.po new file mode 100644 index 000000000000..3c66caa69bf9 --- /dev/null +++ b/stock_inventory_lockdown/i18n/pt_BR.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2019-11-24 19:58+0000\n" +"Last-Translator: Rodrigo Macedo \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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, fuzzy, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" +"Um inventário está sendo realizado nos seguintes locais:\n" +"%s" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "Um inventário está sendo realizado neste local" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventário" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "localização do inventário" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Movimentação de estoque" diff --git a/stock_inventory_lockdown/i18n/ro.po b/stock_inventory_lockdown/i18n/ro.po new file mode 100644 index 000000000000..aabd5463079c --- /dev/null +++ b/stock_inventory_lockdown/i18n/ro.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Mișcare stoc" diff --git a/stock_inventory_lockdown/i18n/sl.po b/stock_inventory_lockdown/i18n/sl.po new file mode 100644 index 000000000000..edbe6000e4e8 --- /dev/null +++ b/stock_inventory_lockdown/i18n/sl.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "Inventar" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Premik zaloge" diff --git a/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot b/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot new file mode 100644 index 000000000000..debc82320e4a --- /dev/null +++ b/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_inventory__display_name +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_location__display_name +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_move__display_name +msgid "Display Name" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_inventory__id +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_location__id +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_move__id +msgid "ID" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_inventory____last_update +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_location____last_update +#: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_move____last_update +msgid "Last Modified on" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "" diff --git a/stock_inventory_lockdown/i18n/tr.po b/stock_inventory_lockdown/i18n/tr.po new file mode 100644 index 000000000000..a06448f31367 --- /dev/null +++ b/stock_inventory_lockdown/i18n/tr.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Stok hareketi" diff --git a/stock_inventory_lockdown/i18n/tr_TR.po b/stock_inventory_lockdown/i18n/tr_TR.po new file mode 100644 index 000000000000..b35f1746605f --- /dev/null +++ b/stock_inventory_lockdown/i18n/tr_TR.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\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" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Stok hareketi" diff --git a/stock_inventory_lockdown/i18n/vi_VN.po b/stock_inventory_lockdown/i18n/vi_VN.po new file mode 100644 index 000000000000..3c54daab8b0e --- /dev/null +++ b/stock_inventory_lockdown/i18n/vi_VN.po @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2017-11-30 03:53+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\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" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "Dịch chuyển kho" diff --git a/stock_inventory_lockdown/i18n/zh_CN.po b/stock_inventory_lockdown/i18n/zh_CN.po new file mode 100644 index 000000000000..20ce5fd94a24 --- /dev/null +++ b/stock_inventory_lockdown/i18n/zh_CN.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_inventory_lockdown +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 03:53+0000\n" +"PO-Revision-Date: 2019-09-28 09:24+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\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_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_move.py:0 +#, fuzzy, python-format +msgid "" +"An inventory is being conducted at the following location(s):\n" +" - %s" +msgstr "" +"正在以下位置进行盘点:\n" +"%s" + +#. module: stock_inventory_lockdown +#: code:addons/stock_inventory_lockdown/models/stock_location.py:0 +#, python-format +msgid "An inventory is being conducted at this location" +msgstr "正在此位置进行盘点" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory +msgid "Inventory" +msgstr "库存" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_location +msgid "Inventory Locations" +msgstr "库存位置" + +#. module: stock_inventory_lockdown +#: model:ir.model,name:stock_inventory_lockdown.model_stock_move +msgid "Stock Move" +msgstr "库存移动" diff --git a/stock_inventory_lockdown/models/__init__.py b/stock_inventory_lockdown/models/__init__.py new file mode 100644 index 000000000000..eaa8544286dd --- /dev/null +++ b/stock_inventory_lockdown/models/__init__.py @@ -0,0 +1,3 @@ +from . import stock_move_line +from . import stock_inventory +from . import stock_location diff --git a/stock_inventory_lockdown/models/stock_inventory.py b/stock_inventory_lockdown/models/stock_inventory.py new file mode 100644 index 000000000000..b9d933775264 --- /dev/null +++ b/stock_inventory_lockdown/models/stock_inventory.py @@ -0,0 +1,43 @@ +# © 2013-2016 Numérigraphe SARL +# Copyright 2017 ForgeFlow S.L. +# (http://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import api, models + + +class StockInventory(models.Model): + _inherit = "stock.inventory" + + @api.model + def _get_locations_open_inventories(self, locations_ids=None): + if not locations_ids: + return [] + inventory_domain_same_location = [ + ("state", "=", "in_progress"), + ("location_ids", "in", locations_ids), + ] + inventories_same_location = self.search(inventory_domain_same_location) + inventory_domain_parent = [ + ("state", "=", "in_progress"), + ("exclude_sublocation", "=", False), + ] + inventories_possible_parent = self.search(inventory_domain_parent) + inventories_parent = self.env["stock.inventory"] + for inventory in inventories_possible_parent: + for location in inventory.location_ids: + if any( + location_id in location.child_internal_location_ids.ids + for location_id in locations_ids + ): + inventories_parent |= inventory + inventories = inventories_same_location | inventories_parent + if not inventories: + # Early exit if no match found + return [] + location_ids = inventories.mapped("location_ids") + location_domain = [ + ("id", "in", location_ids.ids), + ("usage", "in", ["internal", "transit"]), + ] + return self.env["stock.location"].search(location_domain) diff --git a/stock_inventory_lockdown/models/stock_location.py b/stock_inventory_lockdown/models/stock_location.py new file mode 100644 index 000000000000..451c015c86df --- /dev/null +++ b/stock_inventory_lockdown/models/stock_location.py @@ -0,0 +1,26 @@ +# © 2016 Numérigraphe SARL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import _, api, models +from odoo.exceptions import ValidationError + + +class StockLocation(models.Model): + _inherit = "stock.location" + + @api.constrains("location_id") + def _check_inventory_location_id(self): + vals = set(self.ids) | set(self.mapped("location_id").ids) + location_inventory_open_ids = self.env[ + "stock.inventory" + ]._get_locations_open_inventories(vals) + if location_inventory_open_ids: + raise ValidationError(_("An inventory is being conducted at this location")) + + def unlink(self): + location_inventory_open_ids = ( + self.env["stock.inventory"].sudo()._get_locations_open_inventories(self.ids) + ) + if location_inventory_open_ids: + raise ValidationError(_("An inventory is being conducted at this location")) + return super(StockLocation, self).unlink() diff --git a/stock_inventory_lockdown/models/stock_move_line.py b/stock_inventory_lockdown/models/stock_move_line.py new file mode 100644 index 000000000000..db10b9655605 --- /dev/null +++ b/stock_inventory_lockdown/models/stock_move_line.py @@ -0,0 +1,44 @@ +# © 2016 Numérigraphe SARL +# Copyright 2017 ForgeFlow S.L. +# (http://www.forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import _, api, models +from odoo.exceptions import ValidationError + + +class StockMoveLine(models.Model): + _inherit = "stock.move.line" + + def _get_reserved_locations(self): + self.ensure_one() + return self.move_line_ids.mapped("location_id") + + def _get_dest_locations(self): + self.ensure_one() + return self.move_line_ids.mapped("location_dest_id") + + @api.constrains("location_dest_id", "location_id", "state") + def _check_locked_location(self): + for move_line in self.filtered(lambda m: m.state == "done"): + locked_location_ids = self.env[ + "stock.inventory" + ]._get_locations_open_inventories( + [move_line.location_dest_id.id, move_line.location_id.id] + ) + if locked_location_ids and not any( + [ + move_line.location_dest_id.usage == "inventory", + move_line.location_id.usage == "inventory", + ] + ): + location_names = locked_location_ids.mapped("complete_name") + raise ValidationError( + _( + "Inventory adjusment underway at " + "the following location(s):\n- %s\n" + "Moving products to or from these locations is " + "not allowed until the inventory adjustment is complete." + ) + % "\n - ".join(location_names) + ) diff --git a/stock_inventory_lockdown/readme/CONTRIBUTORS.rst b/stock_inventory_lockdown/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000000..8da38e2749ec --- /dev/null +++ b/stock_inventory_lockdown/readme/CONTRIBUTORS.rst @@ -0,0 +1,8 @@ +* Loïc Bellier (Numérigraphe) +* Lionel Sausin (Numérigraphe) +* Laetitia Gangloff (Acsone) +* Laurent Mignon (Acsone) +* Lois Rilo (ForgeFlow) +* Jordi Ballester (ForgeFlow) +* Michael Allen +* Bhavesh Odedra diff --git a/stock_inventory_lockdown/readme/DESCRIPTION.rst b/stock_inventory_lockdown/readme/DESCRIPTION.rst new file mode 100644 index 000000000000..358e5a840e7b --- /dev/null +++ b/stock_inventory_lockdown/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module lets you lock down the locations during an inventory. diff --git a/stock_inventory_lockdown/readme/USAGE.rst b/stock_inventory_lockdown/readme/USAGE.rst new file mode 100644 index 000000000000..c567fb3390c6 --- /dev/null +++ b/stock_inventory_lockdown/readme/USAGE.rst @@ -0,0 +1,7 @@ +While an inventory is in the state "In progress", no stock moves +can be recorded in/out of the inventory's location: users will get an error +message. +Creating or modifying locations is also forbidden. + +.. figure:: static/images/move_error.png + :alt: Error message diff --git a/stock_inventory_lockdown/static/description/icon.png b/stock_inventory_lockdown/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/stock_inventory_lockdown/static/description/icon.png differ diff --git a/stock_inventory_lockdown/static/description/index.html b/stock_inventory_lockdown/static/description/index.html new file mode 100644 index 000000000000..35372f43f440 --- /dev/null +++ b/stock_inventory_lockdown/static/description/index.html @@ -0,0 +1,439 @@ + + + + + +Inventory Lock Down + + + +
+

Inventory Lock Down

+ + +

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

This module lets you lock down the locations during an inventory.

+

Table of contents

+ +
+

Usage

+

While an inventory is in the state “In progress”, no stock moves +can be recorded in/out of the inventory’s location: users will get an error +message. +Creating or modifying locations is also forbidden.

+
+Error message +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Numérigraphe
  • +
  • ForgeFlow
  • +
+
+
+

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_inventory_lockdown/static/images/move_error.png b/stock_inventory_lockdown/static/images/move_error.png new file mode 100644 index 000000000000..813c94ef250e Binary files /dev/null and b/stock_inventory_lockdown/static/images/move_error.png differ diff --git a/stock_inventory_lockdown/tests/__init__.py b/stock_inventory_lockdown/tests/__init__.py new file mode 100644 index 000000000000..7cb44613b4c3 --- /dev/null +++ b/stock_inventory_lockdown/tests/__init__.py @@ -0,0 +1 @@ +from . import test_stock_inventory_lockdown diff --git a/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py b/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py new file mode 100644 index 000000000000..d44fa2dcb271 --- /dev/null +++ b/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py @@ -0,0 +1,166 @@ +# © 2014 Acsone SA/NV (http://www.acsone.eu) +# © 2016 Numérigraphe SARL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo.exceptions import ValidationError + +from odoo.addons.stock.tests.common import TestStockCommon + + +class StockInventoryLocationTest(TestStockCommon): + def setUp(self): + super(StockInventoryLocationTest, self).setUp() + # Make a new location with a parent and a child. + self.new_parent_location = self.env["stock.location"].create( + {"name": "Test parent location", "usage": "internal"} + ) + self.new_location = self.env["stock.location"].create( + { + "name": "Test location", + "usage": "internal", + "location_id": self.new_parent_location.id, + } + ) + self.new_sublocation = self.env["stock.location"].create( + { + "name": "Test sublocation", + "usage": "internal", + "location_id": self.new_location.id, + } + ) + # Input goods + self.env["stock.quant"].create( + { + "location_id": self.new_location.id, + "product_id": self.productA.id, + "quantity": 10.0, + } + ) + self.env["stock.quant"].create( + { + "location_id": self.new_parent_location.id, + "product_id": self.productB.id, + "quantity": 5.0, + } + ) + # Prepare an inventory + self.inventory = self.env["stock.inventory"].create( + {"name": "Lock down location", "location_ids": [(4, self.new_location.id)]} + ) + self.inventory.action_state_to_in_progress() + self.assertTrue(self.inventory.stock_quant_ids, "The inventory is empty.") + + def create_stock_move(self, product, origin_id=False, dest_id=False): + return self.env["stock.move"].create( + { + "name": "Test move lock down", + "product_id": product.id, + "product_uom_qty": 10.0, + "product_uom": product.uom_id.id, + "location_id": origin_id or self.supplier_location, + "location_dest_id": dest_id or self.customer_location, + } + ) + + def test_update_parent_location(self): + """Updating the parent of a location is OK if no inv. in progress.""" + self.inventory.action_state_to_draft() + self.inventory.location_ids.location_id = self.env.ref( + "stock.stock_location_14" + ) + + def test_update_parent_location_locked_down(self): + """Updating the parent of a location must fail""" + with self.assertRaises(ValidationError): + self.inventory.location_ids.location_id = self.env.ref( + "stock.stock_location_stock" + ) + + def test_inventory(self): + """We must still be able to finish the inventory""" + self.assertTrue(self.inventory.stock_quant_ids) + self.inventory.stock_quant_ids.write({"inventory_quantity": 42.0}) + for line in self.inventory.stock_quant_ids: + self.assertNotEqual( + line.product_id.with_context( + location=line.location_id.id + ).qty_available, + 42.0, + ) + for line in self.inventory.stock_quant_ids: + line._apply_inventory() + + for line in self.inventory.stock_quant_ids: + self.assertEqual( + line.product_id.with_context( + location=line.location_id.id + ).qty_available, + 42.0, + ) + + def test_inventory_sublocation(self): + """We must be able to make an inventory in a sublocation""" + line = self.env["stock.quant"].create( + { + "product_id": self.productA.id, + "quantity": 22.0, + "location_id": self.new_sublocation.id, + } + ) + inventory_subloc = self.env["stock.inventory"].create( + { + "name": "Lock down location", + "location_ids": [(4, self.new_sublocation.id)], + "stock_quant_ids": line, + } + ) + inventory_subloc.action_state_to_in_progress() + + self.assertTrue(inventory_subloc.stock_quant_ids) + + # for line in inventory_subloc.stock_quant_ids: + # line._apply_inventory() + + self.assertEqual( + line.product_id.with_context(location=line.location_id.id).qty_available, + 22.0, + ) + + def test_move(self): + """Stock moves must be forbidden during inventory from/to inventoried + location.""" + move1 = self.create_stock_move( + self.productA, origin_id=self.inventory.location_ids.id + ) + move1._action_confirm() + with self.assertRaises(ValidationError): + move1._action_assign() + move1.move_line_ids[0].qty_done = 10.0 + move1._action_done() + move2 = self.create_stock_move( + self.productA, dest_id=self.inventory.location_ids.id + ) + with self.assertRaises(ValidationError): + move2._action_confirm() + move2._action_assign() + move2.move_line_ids[0].qty_done = 10.0 + move2._action_done() + + def test_move_reserved_quants(self): + """Shipping stock should be allowed or not depending on reserved + quants' locations. + * move1: quants are fetched from the parent location. + * move2: quants are fetched from 'new location' which is being + inventoried.""" + move1 = self.create_stock_move(self.productB, self.new_parent_location.id) + move1._action_confirm() + move1._action_assign() + move1.move_line_ids[0].qty_done = 10.0 + move1._action_done() + self.assertEqual(move1.state, "done", "Move has not been completed") + move2 = self.create_stock_move(self.productA, self.new_parent_location.id) + move2._action_confirm() + with self.assertRaises(ValidationError): + move2._action_assign() + move2.move_line_ids[0].qty_done = 10.0 + move2._action_done()