Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b698a3f
Add module stock_restrict_lot
florian-dacosta Dec 2, 2020
1a42848
Avoid copying restrict_lot_id field on stock move unless it is a split
florian-dacosta Dec 3, 2020
4633e51
[UPD] Update stock_restrict_lot.pot
oca-travis Dec 16, 2020
eb9ade1
[UPD] README.rst
OCA-git-bot Dec 16, 2020
95c979b
[ADD] icon.png
OCA-git-bot Dec 16, 2020
b3f971d
[FIX] stock_restrict_lot
newtratip Mar 3, 2021
0fe3aa8
stock_restrict_lot 14.0.1.1.1
OCA-git-bot Mar 22, 2021
3ee461f
Add module stock_restrict_lot
florian-dacosta Dec 2, 2020
272a404
Avoid copying restrict_lot_id field on stock move unless it is a split
florian-dacosta Dec 3, 2020
ee1b1cb
[FIX] stock_restrict_lot
newtratip Mar 3, 2021
fed56ed
[IMP]stock_restrict_lot: migrate stock_restrict_lot module
bizzappdev Oct 26, 2021
403765f
[FIX] stock_restrict_lot: do not merge stock move with different rest…
petrus-v Aug 17, 2022
fa366e4
[MIG] Migrate stock_restrict_lot to v16
florian-dacosta Nov 22, 2022
b3bc894
[IMP][stock_restrict_lot] Add lot in move list views
florian-dacosta Dec 15, 2022
ff70899
Added translation using Weblate (Croatian)
badbole Jun 29, 2023
a7cb9c7
Update translation files
weblate Oct 9, 2023
1fbd13d
Added translation using Weblate (Italian)
mymage Nov 15, 2023
0d69e7f
Added translation using Weblate (Spanish)
Ivorra78 Nov 27, 2023
3a15149
Translated using Weblate (Spanish)
Ivorra78 Nov 27, 2023
53c314c
[IMP] stock_restrict_lot: pre-commit auto fixes
jcadhoc Jul 10, 2024
bf65dc5
[MIG] stock_restrict_lot: Migration to 17.0
jcadhoc Jul 10, 2024
b33bb01
[IMP] compute product's outgoing and incoming qty by restrict_lot_id
mt-software-de Jan 4, 2023
2f9caa9
[IMP] stock_restrict_lot: validate lot moved is correct
aleuffre Nov 29, 2023
3dccdfb
[IMP] stock_restrict_lot: Add index to restrict_lot_id
grindtildeath Aug 12, 2024
31dc7f8
Translated using Weblate (Italian)
mymage Sep 18, 2024
6916ff9
[IMP] stock_restrict_lot: pre-commit auto fixes
mav-adhoc Nov 12, 2024
03d43c4
[REF] stock_restrict_lot: change AGPL-3 to LGPL-3
DavidJForgeFlow Jan 21, 2025
f132f7f
[FIX] stock_restrict_lot: fix outgoing quantity in test
StefanRijnhart Jan 30, 2025
a49d48b
[16.0][IMP] propagation of restrict_lot changes
Kev-Roche Apr 4, 2024
28ef8db
[IMP] stock_restrict_lot : update restrict lot at stock move creation…
metaminux Apr 17, 2024
72b55e0
[IMP] restrict_lot propagation method
Kev-Roche Sep 2, 2024
99083e1
[ADD] _rollup_not_cancelled_move_origs function
Kev-Roche Sep 20, 2024
f57baf6
[FIX] stock_restrict_lot : actually assign and validate move instead …
metaminux Oct 1, 2024
8768859
[FIX] stock_restrict_lot : _rollup_not_cancelled_move_origs call itself
emiliesoutiras Nov 20, 2024
0549890
[MIG] stock_restrict_lot: Migration to 18.0
mav-adhoc Feb 25, 2025
3c6d5f0
[UPD] Update stock_restrict_lot.pot
Feb 26, 2025
9cec0b5
[BOT] post-merge updates
OCA-git-bot Feb 26, 2025
9f5f7aa
Update translation files
weblate Feb 26, 2025
a805946
Translated using Weblate (Italian)
mymage Feb 27, 2025
02a7cb2
Added translation using Weblate (Dutch)
bosd Apr 11, 2025
229c1c7
Added translation using Weblate (Dutch (nl_NL))
bosd Apr 11, 2025
f55a862
Translated using Weblate (Dutch (nl_NL))
bosd Apr 11, 2025
91cfe48
Added translation using Weblate (Portuguese)
marcelsavegnago Jun 6, 2025
10a3ecf
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jun 12, 2025
5b071ac
Translated using Weblate (Croatian)
uvid-vlado Sep 26, 2025
49160f7
Translated using Weblate (Croatian)
uvid-vlado Sep 29, 2025
06ac439
[MIG] stock_restrict_lot: Migration to 19.0
lef-adhoc Nov 3, 2025
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
94 changes: 94 additions & 0 deletions stock_restrict_lot/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==================
Stock Restrict Lot
==================

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

.. |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/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/19.0/stock_restrict_lot
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-19-0/stock-logistics-workflow-19-0-stock_restrict_lot
: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-workflow&target_branch=19.0
:alt: Try me on Runboat

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

This module adds a field to restrict a stock move to a specific lot. It
propagates it between chained moves. A move with a restrict lot will
only be able to reserve or transfer products with the specified lot.
This module serves as a basis for other modules, it has not effect on
its own.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-workflow/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-workflow/issues/new?body=module:%20stock_restrict_lot%0Aversion:%2019.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]>
- Ruchir Shukla <[email protected]>
- Stefan Rijnhart <[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.

.. |maintainer-florian-dacosta| image:: https://github.com/florian-dacosta.png?size=40px
:target: https://github.com/florian-dacosta
:alt: florian-dacosta

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-florian-dacosta|

This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/19.0/stock_restrict_lot>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_restrict_lot/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions stock_restrict_lot/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Stock Restrict Lot",
"summary": "Base module that add back the concept of restrict lot on stock move",
"version": "19.0.1.0.0",
"category": "Warehouse Management",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Akretion, Odoo Community Association (OCA)",
"maintainers": ["florian-dacosta"],
"license": "LGPL-3",
"installable": True,
"depends": ["stock"],
"data": ["views/stock_move_views.xml", "views/stock_picking.xml"],
}
73 changes: 73 additions & 0 deletions stock_restrict_lot/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_restrict_lot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-27 19:34+0000\n"
"Last-Translator: Ivorra78 <[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 4.17\n"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"Inconsistencies between reserved quant and lot restriction on stock move"
msgstr ""
"Incoherencias entre el cuanto reservado y la restricción de lotes en el "
"movimiento de existencias"

#. module: stock_restrict_lot
#: model_terms:ir.ui.view,arch_db:stock_restrict_lot.custom_stock_picking_search_view
msgid "Lot"
msgstr "Lote"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_product_product
msgid "Product Variant"
msgstr ""

#. module: stock_restrict_lot
#: model:ir.model.fields,field_description:stock_restrict_lot.field_stock_move__restrict_lot_id
#: model:ir.model.fields,field_description:stock_restrict_lot.field_stock_picking__restrict_lot_id
msgid "Restrict Lot"
msgstr "Restringir Lote"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_move
msgid "Stock Move"
msgstr "Movimiento de Existencias"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_rule
msgid "Stock Rule"
msgstr "Regla de Existencias"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"The lot(s) %(move_line_lot)s being moved is inconsistent with the "
"restriction on lot %(move_restrict_lot)s set on the move"
msgstr ""

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_picking
msgid "Transfer"
msgstr "Transferencia"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"You can't modify the Lot/Serial number because at least one move in the "
"chain has already been done with another Lot/Serial number."
msgstr ""
78 changes: 78 additions & 0 deletions stock_restrict_lot/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_restrict_lot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-09-29 10:42+0000\n"
"Last-Translator: vladimiruvid <[email protected]>\n"
"Language-Team: none\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"
"X-Generator: Weblate 5.10.4\n"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"Inconsistencies between reserved quant and lot restriction on stock move"
msgstr ""
"Nekonzistentnost među rezerviranim količinama i ograničenjima lotova na "
"skladišnom kretanju"

#. module: stock_restrict_lot
#: model_terms:ir.ui.view,arch_db:stock_restrict_lot.custom_stock_picking_search_view
msgid "Lot"
msgstr "Lot"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_product_product
msgid "Product Variant"
msgstr "Varijanta proizvoda"

#. module: stock_restrict_lot
#: model:ir.model.fields,field_description:stock_restrict_lot.field_stock_move__restrict_lot_id
#: model:ir.model.fields,field_description:stock_restrict_lot.field_stock_picking__restrict_lot_id
msgid "Restrict Lot"
msgstr "Ograniči lot"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_move
msgid "Stock Move"
msgstr "Skladišno kretanje"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_rule
msgid "Stock Rule"
msgstr "Skladišno pravilo"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"The lot(s) %(move_line_lot)s being moved is inconsistent with the "
"restriction on lot %(move_restrict_lot)s set on the move"
msgstr ""
"Lot(ovi) %(move_line_lot)s koji se premještaju nisu u skladu s Ograničenim "
"lot(ovi) %(move_restrict_lot)s postavljenim na skladišnici"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_picking
msgid "Transfer"
msgstr "Prijenos"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"You can't modify the Lot/Serial number because at least one move in the "
"chain has already been done with another Lot/Serial number."
msgstr ""
"Ne možete mijenjati broj lota/serijski broj jer je barem jedan potez u lancu "
"već obavljen s drugim brojem lota/serijskim brojem."
77 changes: 77 additions & 0 deletions stock_restrict_lot/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_restrict_lot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-02-27 11:06+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 5.6.2\n"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"Inconsistencies between reserved quant and lot restriction on stock move"
msgstr ""
"Inconsistenza tra quanti prenotati e restrizione lotto nel movimento di "
"magazzino"

#. module: stock_restrict_lot
#: model_terms:ir.ui.view,arch_db:stock_restrict_lot.custom_stock_picking_search_view
msgid "Lot"
msgstr "Lotto"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_product_product
msgid "Product Variant"
msgstr "Variante prodotto"

#. module: stock_restrict_lot
#: model:ir.model.fields,field_description:stock_restrict_lot.field_stock_move__restrict_lot_id
#: model:ir.model.fields,field_description:stock_restrict_lot.field_stock_picking__restrict_lot_id
msgid "Restrict Lot"
msgstr "Restrizione lotto"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_rule
msgid "Stock Rule"
msgstr "Regola di giacenza"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"The lot(s) %(move_line_lot)s being moved is inconsistent with the "
"restriction on lot %(move_restrict_lot)s set on the move"
msgstr ""
"Il lotto %(move_line_lot)s che si sta movimentando è inconsistente con la "
"restrizione sul lotto %(move_restrict_lot)s impostato nel movimento"

#. module: stock_restrict_lot
#: model:ir.model,name:stock_restrict_lot.model_stock_picking
msgid "Transfer"
msgstr "Trasferimento"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
msgid ""
"You can't modify the Lot/Serial number because at least one move in the "
"chain has already been done with another Lot/Serial number."
msgstr ""
"Non si può modificare il numero di lotto/serie perché è già stata fatto "
"almeno un movimento nella catena con un altro numero di lotto/serie."
Loading