Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2a6e715
[12.0][ADD] product_lot_sequence
AdriaGForgeFlow Jul 29, 2019
2155004
[UPD] Update product_lot_sequence.pot
oca-travis Sep 8, 2020
c7d1bcf
[UPD] README.rst
OCA-git-bot Sep 8, 2020
2a74483
product_lot_sequence 12.0.1.0.1
OCA-git-bot Sep 8, 2020
722da78
[IMP] product_lot_sequence: black, isort, prettier
Du-ma Nov 10, 2020
2e5a6d7
[MIG][13.0] product_lot_sequence: Migration to v13.0
Du-ma Nov 10, 2020
25ac9a5
[UPD] Update product_lot_sequence.pot
oca-travis Dec 11, 2020
0a8e53f
[UPD] README.rst
OCA-git-bot Dec 11, 2020
746e5c3
product_lot_sequence 13.0.1.0.1
OCA-git-bot Dec 11, 2020
90cb065
Added translation using Weblate (Spanish)
claudiagn Oct 13, 2020
3df19e1
[MIG] product_lot_sequence: Migration to v14.0
remi-filament Aug 1, 2021
5d14de1
[IMP] product_lot_sequence: Change name on create and update translat…
remi-filament Aug 1, 2021
1928fbd
[UPD] Update product_lot_sequence.pot
oca-travis Aug 2, 2021
86e62ed
[UPD] README.rst
OCA-git-bot Aug 2, 2021
1adae78
product_lot_sequence 14.0.1.0.1
OCA-git-bot Aug 2, 2021
8fe8554
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
202954e
[14.0][FIX] product_lot_sequence: Avoid generate extra sequences on d…
newtratip Jul 12, 2022
479d682
[MIG][15.0] product_lot_sequence
i-vyshnevska Sep 15, 2022
09b56be
product_lot_sequence: Make sure _get_next_serial use sequence
grindtildeath Nov 4, 2022
40702d6
[UPD] Update product_lot_sequence.pot
Dec 21, 2022
5c07973
[UPD] README.rst
OCA-git-bot Dec 21, 2022
d7a87cb
[IMP] product_lot_sequence: Add sequence policies
grindtildeath Nov 4, 2022
0242425
Update translation files
weblate Dec 21, 2022
71a4a88
[UPD] Update product_lot_sequence.pot
Dec 30, 2022
eab0d1c
[UPD] README.rst
OCA-git-bot Dec 30, 2022
4443436
product_lot_sequence 15.0.1.1.0
OCA-git-bot Dec 30, 2022
0e23a31
Update translation files
weblate Dec 30, 2022
3785c6a
[MIG] product_lot_sequence: Migration to 16.0
AungKoKoLin1997 Mar 6, 2023
46d9411
[IMP] product_lot_sequence: add lot_sequence_padding configuration,vi…
AungKoKoLin1997 Mar 8, 2023
d5c4d45
[UPD] Update product_lot_sequence.pot
Dec 5, 2023
e0f5a9d
[BOT] post-merge updates
OCA-git-bot Dec 5, 2023
b55722c
Update translation files
weblate Dec 5, 2023
f22b0bf
Added translation using Weblate (Italian)
francesco-ooops Dec 6, 2023
194ab89
Translated using Weblate (Italian)
mymage Dec 6, 2023
918bb07
Translated using Weblate (Spanish)
Ivorra78 Dec 7, 2023
28cdda7
prod_lot_seq: Fix sequence incrementation opening detailed operations
grindtildeath Apr 13, 2023
5e5c2a8
product_lot_sequence: port fix from 15.0 to 16.0
vvrossem Mar 20, 2024
075bd03
[UPD] Update product_lot_sequence.pot
May 6, 2024
cb5b701
[BOT] post-merge updates
OCA-git-bot May 6, 2024
fa757ad
Update translation files
weblate May 6, 2024
40dcddf
Translated using Weblate (Italian)
mymage May 8, 2024
0ec8199
[FIX] product_lot_sequence: Fix warning product is not overriding cre…
carolinafernandez-tecnativa May 22, 2024
de5e467
[BOT] post-merge updates
OCA-git-bot May 23, 2024
b9f7bb2
[IMP] product_lot_sequence: pre-commit auto fixes
fredericgrall Aug 12, 2024
d2f1ba6
[17.0] [MIG] product_lot_sequence
fredericgrall Oct 8, 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
149 changes: 149 additions & 0 deletions product_lot_sequence/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
====================
Product Lot Sequence
====================

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

.. |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/17.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-17-0/product-attribute-17-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=17.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:%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
-------

* 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

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/17.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": "17.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
Loading