Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
eb68271
[12.0][ADD] product_lot_sequence
AdriaGForgeFlow Jul 29, 2019
1dccd47
[UPD] Update product_lot_sequence.pot
oca-travis Sep 8, 2020
2d9fb6b
[UPD] README.rst
OCA-git-bot Sep 8, 2020
d1a2aa3
product_lot_sequence 12.0.1.0.1
OCA-git-bot Sep 8, 2020
5ca6f5c
[IMP] product_lot_sequence: black, isort, prettier
Du-ma Nov 10, 2020
9c5d25b
[MIG][13.0] product_lot_sequence: Migration to v13.0
Du-ma Nov 10, 2020
fe5631b
[UPD] Update product_lot_sequence.pot
oca-travis Dec 11, 2020
f611f91
[UPD] README.rst
OCA-git-bot Dec 11, 2020
989ac5b
product_lot_sequence 13.0.1.0.1
OCA-git-bot Dec 11, 2020
04fe1ec
Added translation using Weblate (Spanish)
claudiagn Oct 13, 2020
175971e
[MIG] product_lot_sequence: Migration to v14.0
remi-filament Aug 1, 2021
e725af8
[IMP] product_lot_sequence: Change name on create and update translat…
remi-filament Aug 1, 2021
9de56fc
[UPD] Update product_lot_sequence.pot
oca-travis Aug 2, 2021
7c4702e
[UPD] README.rst
OCA-git-bot Aug 2, 2021
a0e34ca
product_lot_sequence 14.0.1.0.1
OCA-git-bot Aug 2, 2021
beea3e1
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
621443d
[14.0][FIX] product_lot_sequence: Avoid generate extra sequences on d…
newtratip Jul 12, 2022
6c0d4fd
[MIG][15.0] product_lot_sequence
i-vyshnevska Sep 15, 2022
88cb300
product_lot_sequence: Make sure _get_next_serial use sequence
grindtildeath Nov 4, 2022
bee0628
[UPD] Update product_lot_sequence.pot
Dec 21, 2022
4289015
[UPD] README.rst
OCA-git-bot Dec 21, 2022
fef0e3e
[IMP] product_lot_sequence: Add sequence policies
grindtildeath Nov 4, 2022
3ce3413
Update translation files
weblate Dec 21, 2022
e9e5fe5
[UPD] Update product_lot_sequence.pot
Dec 30, 2022
b241b07
[UPD] README.rst
OCA-git-bot Dec 30, 2022
93a9bc0
product_lot_sequence 15.0.1.1.0
OCA-git-bot Dec 30, 2022
9fb2850
Update translation files
weblate Dec 30, 2022
3150f70
[MIG] product_lot_sequence: Migration to 16.0
AungKoKoLin1997 Mar 6, 2023
b0e69d1
[IMP] product_lot_sequence: add lot_sequence_padding configuration,vi…
AungKoKoLin1997 Mar 8, 2023
b3a2cd8
[UPD] Update product_lot_sequence.pot
Dec 5, 2023
2c02953
[BOT] post-merge updates
OCA-git-bot Dec 5, 2023
ac2b558
Update translation files
weblate Dec 5, 2023
276879b
Added translation using Weblate (Italian)
francesco-ooops Dec 6, 2023
096b63a
Translated using Weblate (Italian)
mymage Dec 6, 2023
85220d6
Translated using Weblate (Spanish)
Ivorra78 Dec 7, 2023
be34776
prod_lot_seq: Fix sequence incrementation opening detailed operations
grindtildeath Apr 13, 2023
614cbbb
product_lot_sequence: port fix from 15.0 to 16.0
vvrossem Mar 20, 2024
be645e6
[UPD] Update product_lot_sequence.pot
May 6, 2024
0cebc3b
[BOT] post-merge updates
OCA-git-bot May 6, 2024
bb43257
Update translation files
weblate May 6, 2024
1943212
Translated using Weblate (Italian)
mymage May 8, 2024
7714e31
[FIX] product_lot_sequence: Fix warning product is not overriding cre…
carolinafernandez-tecnativa May 22, 2024
affb88e
[BOT] post-merge updates
OCA-git-bot May 23, 2024
dfebebe
[IMP] product_lot_sequence: pre-commit auto fixes
fredericgrall Aug 12, 2024
2b3f0b8
[17.0] [MIG] product_lot_sequence
fredericgrall Oct 8, 2024
e7fa293
[UPD] Update product_lot_sequence.pot
Feb 11, 2025
e47f675
[BOT] post-merge updates
OCA-git-bot Feb 11, 2025
6e51b8e
Update translation files
weblate Feb 11, 2025
f82918f
Added translation using Weblate (Dutch)
bosd May 10, 2025
a15f71a
Added translation using Weblate (Dutch (nl_NL))
bosd May 10, 2025
970b335
Translated using Weblate (Dutch (nl_NL))
bosd May 10, 2025
53ea05f
[IMP] product_lot_sequence: pre-commit auto fixes
Kimkhoi3010 Jun 24, 2025
4a975ce
[MIG] product_lot_sequence: Migration to 18.0
Kimkhoi3010 Jun 24, 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
159 changes: 159 additions & 0 deletions product_lot_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
====================
Product Lot Sequence
====================

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

.. |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%2Fproduct--attribute-lightgray.png?logo=github
:target: https://github.com/OCA/product-attribute/tree/18.0/product_lot_sequence
:alt: OCA/product-attribute
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_lot_sequence
: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/product-attribute&target_branch=18.0
:alt: Try me on Runboat

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

Adds ability to define a lot sequence from the product which will be
proposed upon creating new lots.

**Table of contents**

.. contents::
:local:

Configuration
=============

Lot Sequence policy
-------------------

There are two ways you can configure this module through the use of
System Parameter \`product_lot_sequence.policy\`:

- "product": This is the default behaviour once you install this module.
It's the same than in previous Odoo versions with this module
installed, i.e. it allows to define a dedicated sequence on each
product.
- "global": This was the default behaviour from previous Odoo versions
when this module was not installed, i.e it will always use the same
global sequence for every product.

If any other value is used for this System Parameter, then you will get
the default behaviour from odoo 15.0 which will look for the last lot
number for each product and will increment it.

Default Number of Digits for Product Sequence Generation
--------------------------------------------------------

The default is 7 digits. To change that to something else, go to the
inventory configuration, find "Sequence Number of Digits" and change the
number.

Usage
=====

To use this module:

- Go to Inventory > Products
- Under the inventory tab when tracking set to lots 4 new fields will be
displayed
- If a sequence is not selected, a new one using the prefix, padding and
next number fields, will be created
- Go to Inventory > Lot/Serial Numbers
- Create new Lot/Serial number
- Select the product and the next number of the product sequence will be
automatically proposed

Known issues / Roadmap
======================

- There is an issue with the use of ir.sequence with the newer version
of Odoo.

Mostly, when opening the detailed operations of an assigned picking for
a product tracked by serial numbers, Odoo systematically calls
\_get_next_serial even if there is not any serial number to generate.
Moreover, the widget allowing to generate the serial numbers will not
call the sequence but only increment the number according to the next
serial, potentially leading to a sequence that is not in sync anymore
with the created serial numbers.

cf https://github.com/OCA/product-attribute/issues/1326

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/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/product-attribute/issues/new?body=module:%20product_lot_sequence%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
-------

* ForgeFlow S.L.

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

- Adria Gil Sorribes <adria.gil@forgeflow.com>
- Domantas Girdžiūnas <domantas@vialaurea.lt>
- `Camptocamp <https://www.camptocamp.com>`__:

- Akim Juillerat <akim.juillerat@camptocamp.com>
- Vincent Van Rossem <vincent.vanrossem@camptocamp.com>

- `Quartile <https://www.quartile.co>`__:

- Yoshi Tashiro

- `Apik <https://www.apik.cloud>`__:

- Frederic Grall

- `Trobz <https://trobz.com>`__:

- Khoi (Kien Kim) <khoikk@trobz.com>

Other credits
-------------

The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp.

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/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_lot_sequence>`_ 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 product_lot_sequence/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions product_lot_sequence/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Product Lot Sequence",
"summary": """
Adds ability to define a lot sequence from the product""",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow S.L., Odoo Community Association (OCA)",
"website": "https://github.com/OCA/product-attribute",
"depends": ["stock"],
"data": [
"data/ir_config_parameter.xml",
"views/product_views.xml",
"views/res_config_settings_views.xml",
],
}
7 changes: 7 additions & 0 deletions product_lot_sequence/data/ir_config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record model="ir.config_parameter" id="lot_sequence_policy">
<field name="key">product_lot_sequence.policy</field>
<field name="value">product</field>
</record>
</odoo>
131 changes: 131 additions & 0 deletions product_lot_sequence/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_lot_sequence
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-02-23 18:45+0000\n"
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
"Language-Team: none\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"
"X-Generator: Weblate 4.3.2\n"

#. module: product_lot_sequence
#: model_terms:ir.ui.view,arch_db:product_lot_sequence.res_config_settings_view_form
msgid ""
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-"
"specific.\" aria-label=\"Values set here are company-specific.\" "
"groups=\"base.group_multi_company\"/>"
msgstr ""

#. module: product_lot_sequence
#: model:ir.model,name:product_lot_sequence.model_res_company
msgid "Companies"
msgstr ""

#. module: product_lot_sequence
#: model:ir.model,name:product_lot_sequence.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: product_lot_sequence
#: model_terms:ir.ui.view,arch_db:product_lot_sequence.res_config_settings_view_form
msgid ""
"Default number of digits to be set on products for product lot/serial "
"sequence generation."
msgstr ""

#. module: product_lot_sequence
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__display_lot_sequence_fields
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__display_lot_sequence_fields
msgid "Display Lot Sequence Fields"
msgstr ""

#. module: product_lot_sequence
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_id
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_id
msgid "Entry Sequence"
msgstr "Seqüència d’entrada"

#. module: product_lot_sequence
#: model:ir.model,name:product_lot_sequence.model_stock_lot
msgid "Lot/Serial"
msgstr "Lot/Sèrie"

#. module: product_lot_sequence
#: model:ir.model.fields,field_description:product_lot_sequence.field_stock_lot__name
msgid "Lot/Serial Number"
msgstr ""

#. module: product_lot_sequence
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_number_next
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_number_next
msgid "Next Number"
msgstr "Següent Número"

#. module: product_lot_sequence
#: model:ir.model,name:product_lot_sequence.model_product_template
msgid "Product"
msgstr ""

#. module: product_lot_sequence
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_padding
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_padding
#: model:ir.model.fields,field_description:product_lot_sequence.field_res_company__lot_sequence_padding
#: model:ir.model.fields,field_description:product_lot_sequence.field_res_config_settings__lot_sequence_padding
msgid "Sequence Number of Digits"
msgstr "Seqüència Nombre de dígits"

#. module: product_lot_sequence
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_prefix
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_prefix
msgid "Sequence Prefix"
msgstr "Prefix de seqüència"

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

#. module: product_lot_sequence
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_prefix
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_prefix
msgid "The lot's sequence will be created using this prefix."
msgstr "La seqüència del lot es crearà mitjançant aquest prefix."

#. module: product_lot_sequence
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_padding
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_padding
msgid "The lots' sequence will be created using this number of digits."
msgstr "La seqüència dels lots es crearà utilitzant aquest nombre de dígits."

#. module: product_lot_sequence
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_number_next
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_number_next
msgid "The next sequence number will be used for the next lot."
msgstr "El següent número de seqüència s'utilitzarà per al següent lot."

#. module: product_lot_sequence
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_id
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_id
msgid "This field contains the information related to the numbering of lots."
msgstr "Aquest camp conté la informació relacionada amb la numeració de lots."

#. module: product_lot_sequence
#: model:ir.model.fields,help:product_lot_sequence.field_stock_lot__name
msgid "Unique Lot/Serial Number"
msgstr ""

#. module: product_lot_sequence
#: model_terms:ir.ui.view,arch_db:product_lot_sequence.res_config_settings_view_form
msgid "digits"
msgstr ""

#~ msgid "Product Template"
#~ msgstr "Plantilla de producte"
Loading