Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] stock_location_lockdown: Migration to 17. #1946

Merged
merged 37 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
1a8b217
Add module stock_location_lockdown for v9
florian-dacosta Sep 6, 2018
9e6842c
[MIG] stock_location_lockdown from v9 to v10
alexis-via Dec 5, 2018
c1a7b3e
[UPD] README.rst
OCA-git-bot Dec 10, 2018
77e3cea
[UPD] Update stock_location_lockdown.pot
oca-travis Dec 10, 2018
cb6060a
Added translation using Weblate (Portuguese)
pedrocs-exo Dec 27, 2018
d021df9
[ADD] icon.png
OCA-git-bot Apr 3, 2019
87d7d26
[FIX] fix negative quant in blocked location
sebastienbeau Jul 5, 2019
518fc3a
[UPD] Update stock_location_lockdown.pot
oca-travis Jul 8, 2019
30afd0d
stock_location_lockdown 10.0.1.1.0
OCA-git-bot Jul 8, 2019
318f355
Update translation files
oca-transbot Jul 20, 2019
f3fc7a4
[UPD] README.rst
OCA-git-bot Jul 29, 2019
f250c88
[MIG] stock_location_lockdown : Migration to 12.0
clementmbr Sep 19, 2019
7d499fd
[UPD] Update stock_location_lockdown.pot
oca-travis Oct 1, 2019
466e172
[UPD] README.rst
OCA-git-bot Oct 1, 2019
76b3745
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Oct 16, 2019
8f8f001
Update translation files
oca-transbot Oct 16, 2019
7fb2c16
[IMP] stock_location_lockdown: improve error message
alexis-via Dec 4, 2020
f4c4094
stock_location_lockdown 12.0.1.1.0
OCA-git-bot Dec 7, 2020
c5a6f34
[IMP] stock_location_lockdown: black, isort, prettier
florian-dacosta Dec 17, 2020
47197d5
[MIG] stock_location_lockdown: Migration to 14.0
florian-dacosta Dec 17, 2020
67c6bb1
[UPD] Update stock_location_lockdown.pot
oca-travis Feb 16, 2021
7e84b01
[UPD] README.rst
OCA-git-bot Feb 16, 2021
e18eb58
[15.0][MIG] stock_location_lockdown: Migration to 15.0
BT-dmontull Mar 4, 2022
45b902a
[UPD] Update stock_location_lockdown.pot
Mar 18, 2022
cd99e75
[UPD] README.rst
OCA-git-bot Mar 18, 2022
b3baa73
stock_location_lockdown 15.0.1.0.1
OCA-git-bot Mar 18, 2022
226065f
[IMP] stock_location_lockdown: pre-commit stuff
Urvisha-OSI Mar 23, 2023
3a5da89
[MIG] stock_location_lockdown: Migration to 16.0
Urvisha-OSI Mar 23, 2023
c5625e8
[UPD] Update stock_location_lockdown.pot
Apr 28, 2023
1ca28b1
[UPD] README.rst
OCA-git-bot Apr 28, 2023
983a61a
Update translation files
weblate Apr 28, 2023
2f3e7f6
Added translation using Weblate (Spanish)
Ivorra78 Jul 27, 2023
c2f0dcb
[UPD] README.rst
OCA-git-bot Sep 3, 2023
94bd58b
Update translation files
weblate Oct 9, 2023
4294d05
Added translation using Weblate (Italian)
mymage Nov 17, 2023
c397556
[IMP] stock_location_lockdown: pre-commit auto fixes
celm1990 Feb 19, 2024
143f66d
[MIG] stock_location_lockdown: Migration to 17.0
celm1990 Feb 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions stock_location_lockdown/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
=======================
Stock Location Lockdown
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a3c846698d800affc1c0751b171d7a5bf571e0672e46183980535ee98e23298e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.0/stock_location_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-17-0/stock-logistics-warehouse-17-0-stock_location_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=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

The aim of this module is to mark internal locations where no product
should transit. Indeed, in complex warehouse setups, we may have a
complicated tree of internal locations with parent locations only used
to create the hierarchy of the internal locations. We may want to avoid
to put stock on these parent internal locations since they are not
physical locations, they just represent a zone of the warehouse. Theses
locations must have *Location Type* set to *Internal Location* because
they belong to a warehouse (they can't be configured with *Location
Type* set to *View*, cf `Odoo bug
#26679 <https://github.com/odoo/odoo/issues/26679>`__). With this
module, you will be able to enable a new option *Block stock entrance*
for these locations.

**Table of contents**

.. contents::
:local:

Usage
=====

- Once the module is installed, select any internal location for which
you want to prevent stock entrance and check the box *Block Stock
Entrance*. Then, you won't be allow to add stock on these locations.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/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 <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_location_lockdown%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Florian da Costa <florian.dacosta@akretion.com>
- David Montull Guasch <david.montull@bt-group.com>
- Urvisha Desai <udesai@opensourceintegrators.com>

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 <https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_location_lockdown>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions stock_location_lockdown/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2018 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
16 changes: 16 additions & 0 deletions stock_location_lockdown/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2018 Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Stock Location Lockdown",
"summary": "Prevent to add stock on locked locations",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Warehouse",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["stock"],
"data": ["views/stock_location.xml"],
}
64 changes: 64 additions & 0 deletions stock_location_lockdown/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_location_lockdown
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-27 23:12+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.17\n"

#. module: stock_location_lockdown
#: model:ir.model.fields,field_description:stock_location_lockdown.field_stock_location__block_stock_entrance
msgid "Block Stock Entrance"
msgstr "Bloquear la entrada de existencias"

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_location
msgid "Inventory Locations"
msgstr "Localizaciones de Inventario"

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_location.py:0
#, python-format
msgid ""
"It is impossible to prohibit this location from receiving "
"products as it already contains some."
msgstr ""
"Es imposible prohibir que este lugar "
"reciba productos, puesto que "
"ya contiene algunos."

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_quant
msgid "Quants"
msgstr "Cantidades"

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_quant.py:0
#, python-format
msgid ""
"The location %(location)s is blocked and can not be used for moving the "
"product %(product)s"
msgstr ""
"La ubicación %(location)s esta bloqueada, no puede ser usada para mover el "
"producto %(product)s"

#. module: stock_location_lockdown
#: model:ir.model.fields,help:stock_location_lockdown.field_stock_location__block_stock_entrance
msgid ""
"if this box is checked, putting stock on this location won't be allowed. "
"Usually used for a virtual location that has childrens."
msgstr ""
"si esta casilla está marcada, no se permitirá poner acciones en esta "
"ubicación. Normalmente se utiliza para una ubicación virtual que tiene niños."
69 changes: 69 additions & 0 deletions stock_location_lockdown/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_location_lockdown
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-06 13:10+0000\n"
"PO-Revision-Date: 2018-09-06 13:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: stock_location_lockdown
#: model:ir.model.fields,field_description:stock_location_lockdown.field_stock_location__block_stock_entrance
#, fuzzy
msgid "Block Stock Entrance"
msgstr "Bloquer les entrées de stock"

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_location
msgid "Inventory Locations"
msgstr ""

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_location.py:0
#, python-format
msgid ""
"It is impossible to prohibit this location from receiving "
"products as it already contains some."
msgstr ""

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_quant
msgid "Quants"
msgstr ""

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_quant.py:0
#, python-format
msgid ""
"The location %(location)s is blocked and can not be used for moving the "
"product %(product)s"
msgstr ""

#. module: stock_location_lockdown
#: model:ir.model.fields,help:stock_location_lockdown.field_stock_location__block_stock_entrance
#, fuzzy
msgid ""
"if this box is checked, putting stock on this location won't be allowed. "
"Usually used for a virtual location that has childrens."
msgstr ""
"Si cette case est cochée, il ne sera pas possible d'ajouter du stock dans "
"cette emplacement. Habituellement utilisée pour les emplacements virtuels "
"ayant des enfants."

#, fuzzy
#~ msgid "The location '%s' is not configured to receive stock."
#~ msgstr "L'emplacement %s n'est pas configuré pour recevoir du stock."

#~ msgid "Location"
#~ msgstr "Emplacement"
63 changes: 63 additions & 0 deletions stock_location_lockdown/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_location_lockdown
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-21 13:33+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.17\n"

#. module: stock_location_lockdown
#: model:ir.model.fields,field_description:stock_location_lockdown.field_stock_location__block_stock_entrance
msgid "Block Stock Entrance"
msgstr "Blocco entrata magazzino"

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_location
msgid "Inventory Locations"
msgstr "Ubicazioni di inventario"

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_location.py:0
#, python-format
msgid ""
"It is impossible to prohibit this location from receiving"
" products as it already contains some."
msgstr ""
"Non è possibile bloccare la ricezione di prodotti in "
"questa ubicazione perché ha già giacenze."

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_quant
msgid "Quants"
msgstr "Quanti"

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_quant.py:0
#, python-format
msgid ""
"The location %(location)s is blocked and can not be used for moving the "
"product %(product)s"
msgstr ""
"L'ubicazione %(location)s è bloccata e non può essere utilizzata per "
"movimentare il prodotto %(product)s"

#. module: stock_location_lockdown
#: model:ir.model.fields,help:stock_location_lockdown.field_stock_location__block_stock_entrance
msgid ""
"if this box is checked, putting stock on this location won't be allowed. "
"Usually used for a virtual location that has childrens."
msgstr ""
"Se selezionato, non è possibile caricare merce in questa ubicazione. "
"Normalmente utilizzato per una ubicazione virtuale con elementi derivati."
64 changes: 64 additions & 0 deletions stock_location_lockdown/i18n/pt.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_location_lockdown
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2018-12-28 01:41+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
"Language-Team: none\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"
"X-Generator: Weblate 3.3\n"

#. module: stock_location_lockdown
#: model:ir.model.fields,field_description:stock_location_lockdown.field_stock_location__block_stock_entrance
#, fuzzy
msgid "Block Stock Entrance"
msgstr "Bloquear entradas de stock"

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_location
msgid "Inventory Locations"
msgstr "Localizações de Inventário"

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_location.py:0
#, python-format
msgid ""
"It is impossible to prohibit this location from receiving "
"products as it already contains some."
msgstr ""

#. module: stock_location_lockdown
#: model:ir.model,name:stock_location_lockdown.model_stock_quant
msgid "Quants"
msgstr ""

#. module: stock_location_lockdown
#. odoo-python
#: code:addons/stock_location_lockdown/models/stock_quant.py:0
#, python-format
msgid ""
"The location %(location)s is blocked and can not be used for moving the "
"product %(product)s"
msgstr ""

#. module: stock_location_lockdown
#: model:ir.model.fields,help:stock_location_lockdown.field_stock_location__block_stock_entrance
msgid ""
"if this box is checked, putting stock on this location won't be allowed. "
"Usually used for a virtual location that has childrens."
msgstr ""
"Se esta caixa estiver selecionada, não será permitido colocar stock nesta "
"localização. É geralmente utilizada em localizações virtuais com "
"descendentes."

#~ msgid "The location '%s' is not configured to receive stock."
#~ msgstr "A localização '%s' não está configurada para receber stock."
Loading
Loading