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

[18.0][MIG] stock_location_lockdown: Migration to 18.0. #2209

Open
wants to merge 43 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
155aea6
Add module stock_location_lockdown for v9
florian-dacosta Sep 6, 2018
87fddd0
[MIG] stock_location_lockdown from v9 to v10
alexis-via Dec 5, 2018
776be31
[UPD] README.rst
OCA-git-bot Dec 10, 2018
704f8f2
[UPD] Update stock_location_lockdown.pot
oca-travis Dec 10, 2018
d7b1c96
Added translation using Weblate (Portuguese)
pedrocs-exo Dec 27, 2018
70691b7
[ADD] icon.png
OCA-git-bot Apr 3, 2019
566265a
[FIX] fix negative quant in blocked location
sebastienbeau Jul 5, 2019
4d67bdd
[UPD] Update stock_location_lockdown.pot
oca-travis Jul 8, 2019
1ee7186
stock_location_lockdown 10.0.1.1.0
OCA-git-bot Jul 8, 2019
8e5d3d4
Update translation files
oca-transbot Jul 20, 2019
8d9371b
[UPD] README.rst
OCA-git-bot Jul 29, 2019
fd1204d
[MIG] stock_location_lockdown : Migration to 12.0
clementmbr Sep 19, 2019
155e078
[UPD] Update stock_location_lockdown.pot
oca-travis Oct 1, 2019
0ba0485
[UPD] README.rst
OCA-git-bot Oct 1, 2019
9346cb9
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Oct 16, 2019
f6113fe
Update translation files
oca-transbot Oct 16, 2019
f06b115
[IMP] stock_location_lockdown: improve error message
alexis-via Dec 4, 2020
082f38c
stock_location_lockdown 12.0.1.1.0
OCA-git-bot Dec 7, 2020
73e7cb7
[IMP] stock_location_lockdown: black, isort, prettier
florian-dacosta Dec 17, 2020
3d866f6
[MIG] stock_location_lockdown: Migration to 14.0
florian-dacosta Dec 17, 2020
5acfea6
[UPD] Update stock_location_lockdown.pot
oca-travis Feb 16, 2021
fc79f77
[UPD] README.rst
OCA-git-bot Feb 16, 2021
d7f2441
[15.0][MIG] stock_location_lockdown: Migration to 15.0
BT-dmontull Mar 4, 2022
c67b5c5
[UPD] Update stock_location_lockdown.pot
Mar 18, 2022
8b2db6d
[UPD] README.rst
OCA-git-bot Mar 18, 2022
ad95810
stock_location_lockdown 15.0.1.0.1
OCA-git-bot Mar 18, 2022
7e77e95
[IMP] stock_location_lockdown: pre-commit stuff
Urvisha-OSI Mar 23, 2023
b84c276
[MIG] stock_location_lockdown: Migration to 16.0
Urvisha-OSI Mar 23, 2023
7f864d6
[UPD] Update stock_location_lockdown.pot
Apr 28, 2023
c595186
[UPD] README.rst
OCA-git-bot Apr 28, 2023
945a423
Update translation files
weblate Apr 28, 2023
cdde824
Added translation using Weblate (Spanish)
Ivorra78 Jul 27, 2023
7468296
[UPD] README.rst
OCA-git-bot Sep 3, 2023
95ef114
Update translation files
weblate Oct 9, 2023
fe26801
Added translation using Weblate (Italian)
mymage Nov 17, 2023
d7b3688
[IMP] stock_location_lockdown: pre-commit auto fixes
celm1990 Feb 19, 2024
fde4a8d
[MIG] stock_location_lockdown: Migration to 17.0
celm1990 Feb 19, 2024
faf8fff
[UPD] Update stock_location_lockdown.pot
Jul 16, 2024
474d91b
[BOT] post-merge updates
OCA-git-bot Jul 16, 2024
3b28a5a
Update translation files
weblate Jul 16, 2024
fff1196
Translated using Weblate (Spanish)
florenciafrigieri2 Aug 22, 2024
e9b7a9b
[IMP] stock_location_lockdown: pre-commit execution
ced-adhoc Dec 2, 2024
7a6bdea
[18.0][MIG] stock_location_lockdown: Migration to 18.0
ced-adhoc Dec 2, 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:652bdf4838b6338f49a04b39293e40cfad57f3576537e4c50cd027f8714a7a39
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/stock-logistics-warehouse-18-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=18.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:%2018.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 <[email protected]>
- David Montull Guasch <[email protected]>
- Urvisha Desai <[email protected]>

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/18.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": "18.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: 2024-08-22 18:06+0000\n"
"Last-Translator: Florencia Frigieri <[email protected]>\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 5.6.2\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 "Ubicaciones"

#. 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 <[email protected]>\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 <[email protected]>\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