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_restrict_lot #1880

Open
wants to merge 29 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
29 commits
Select commit Hold shift + click to select a range
f78a95d
Add module stock_restrict_lot
florian-dacosta Dec 2, 2020
a5e192f
Avoid copying restrict_lot_id field on stock move unless it is a split
florian-dacosta Dec 3, 2020
1f264ec
[UPD] Update stock_restrict_lot.pot
oca-travis Dec 16, 2020
afcbc57
[UPD] README.rst
OCA-git-bot Dec 16, 2020
48525ab
[ADD] icon.png
OCA-git-bot Dec 16, 2020
814609c
[FIX] stock_restrict_lot
newtratip Mar 3, 2021
e52a74d
stock_restrict_lot 14.0.1.1.1
OCA-git-bot Mar 22, 2021
ef4238b
Add module stock_restrict_lot
florian-dacosta Dec 2, 2020
634f25f
Avoid copying restrict_lot_id field on stock move unless it is a split
florian-dacosta Dec 3, 2020
cfbc748
[FIX] stock_restrict_lot
newtratip Mar 3, 2021
0832e4f
[IMP]stock_restrict_lot: migrate stock_restrict_lot module
bizzappdev Oct 26, 2021
b05dc2a
[FIX] stock_restrict_lot: do not merge stock move with different rest…
petrus-v Aug 17, 2022
25b78c5
[MIG] Migrate stock_restrict_lot to v16
florian-dacosta Nov 22, 2022
a62a9dc
[IMP][stock_restrict_lot] Add lot in move list views
florian-dacosta Dec 15, 2022
d6fa37b
Added translation using Weblate (Croatian)
badbole Jun 29, 2023
fcd4b12
Update translation files
weblate Oct 9, 2023
2439a5b
Added translation using Weblate (Italian)
mymage Nov 15, 2023
5642e05
Added translation using Weblate (Spanish)
Ivorra78 Nov 27, 2023
0fe8b1a
Translated using Weblate (Spanish)
Ivorra78 Nov 27, 2023
2f6cd63
[IMP] stock_restrict_lot: pre-commit auto fixes
jcadhoc Jul 10, 2024
0baf598
[MIG] stock_restrict_lot: Migration to 17.0
jcadhoc Jul 10, 2024
ffe587a
[IMP] compute product's outgoing and incoming qty by restrict_lot_id
mt-software-de Jan 4, 2023
01bb030
[IMP] stock_restrict_lot: validate lot moved is correct
aleuffre Nov 29, 2023
b4c7f64
[IMP] stock_restrict_lot: Add index to restrict_lot_id
grindtildeath Aug 12, 2024
76c1a9b
Translated using Weblate (Italian)
mymage Sep 18, 2024
99c5808
[IMP] stock_restrict_lot: pre-commit auto fixes
mav-adhoc Nov 12, 2024
01978c2
[REF] stock_restrict_lot: change AGPL-3 to LGPL-3
DavidJForgeFlow Jan 21, 2025
52c6e07
[FIX] stock_restrict_lot: fix outgoing quantity in test
StefanRijnhart Jan 30, 2025
7595f3f
[MIG] stock_restrict_lot: Migration to 18.0
mav-adhoc Feb 20, 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
89 changes: 89 additions & 0 deletions stock_restrict_lot/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
==================
Stock Restrict Lot
==================

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

.. |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-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/18.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-18-0/stock-logistics-workflow-18-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=18.0
:alt: Try me on Runboat

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

This module add 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 is a based 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:%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]>
- 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/18.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": "18.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"],
}
67 changes: 67 additions & 0 deletions stock_restrict_lot/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# 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
#, python-format
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
#, python-format
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"
68 changes: 68 additions & 0 deletions stock_restrict_lot/i18n/hr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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-06-29 10:09+0000\n"
"Last-Translator: Bole <[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 4.17\n"

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
#, python-format
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 ""

#. 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
#, python-format
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 "Prijenos"
69 changes: 69 additions & 0 deletions stock_restrict_lot/i18n/it.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_restrict_lot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-09-18 16: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
#, python-format
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
#, python-format
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"
62 changes: 62 additions & 0 deletions stock_restrict_lot/i18n/stock_restrict_lot.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_restrict_lot
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
#, python-format
msgid ""
"Inconsistencies between reserved quant and lot restriction on stock move"
msgstr ""

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

#. 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 ""

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

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

#. module: stock_restrict_lot
#. odoo-python
#: code:addons/stock_restrict_lot/models/stock_move.py:0
#, python-format
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 ""
4 changes: 4 additions & 0 deletions stock_restrict_lot/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import stock_move
from . import stock_rule
from . import stock_picking
from . import product_product
Loading