Skip to content

Commit d1f1e71

Browse files
committed
Merge PR OCA#2004 into 18.0
Signed-off-by sebalix
2 parents 7e487e4 + d8fc02e commit d1f1e71

30 files changed

+2117
-0
lines changed

product_lot_sequence/README.rst

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
====================
2+
Product Lot Sequence
3+
====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:57e29f8d4a5234b832df93b9bcc6295033d87d6c5d8f107fbd132ac8d234735b
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--attribute-lightgray.png?logo=github
20+
:target: https://github.com/OCA/product-attribute/tree/18.0/product_lot_sequence
21+
:alt: OCA/product-attribute
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/product-attribute-18-0/product-attribute-18-0-product_lot_sequence
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/product-attribute&target_branch=18.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
Adds ability to define a lot sequence from the product which will be
32+
proposed upon creating new lots.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Configuration
40+
=============
41+
42+
Lot Sequence policy
43+
-------------------
44+
45+
There are two ways you can configure this module through the use of
46+
System Parameter \`product_lot_sequence.policy\`:
47+
48+
- "product": This is the default behaviour once you install this module.
49+
It's the same than in previous Odoo versions with this module
50+
installed, i.e. it allows to define a dedicated sequence on each
51+
product.
52+
- "global": This was the default behaviour from previous Odoo versions
53+
when this module was not installed, i.e it will always use the same
54+
global sequence for every product.
55+
56+
If any other value is used for this System Parameter, then you will get
57+
the default behaviour from odoo 15.0 which will look for the last lot
58+
number for each product and will increment it.
59+
60+
Default Number of Digits for Product Sequence Generation
61+
--------------------------------------------------------
62+
63+
The default is 7 digits. To change that to something else, go to the
64+
inventory configuration, find "Sequence Number of Digits" and change the
65+
number.
66+
67+
Usage
68+
=====
69+
70+
To use this module:
71+
72+
- Go to Inventory > Products
73+
- Under the inventory tab when tracking set to lots 4 new fields will be
74+
displayed
75+
- If a sequence is not selected, a new one using the prefix, padding and
76+
next number fields, will be created
77+
- Go to Inventory > Lot/Serial Numbers
78+
- Create new Lot/Serial number
79+
- Select the product and the next number of the product sequence will be
80+
automatically proposed
81+
82+
Known issues / Roadmap
83+
======================
84+
85+
- There is an issue with the use of ir.sequence with the newer version
86+
of Odoo.
87+
88+
Mostly, when opening the detailed operations of an assigned picking for
89+
a product tracked by serial numbers, Odoo systematically calls
90+
\_get_next_serial even if there is not any serial number to generate.
91+
Moreover, the widget allowing to generate the serial numbers will not
92+
call the sequence but only increment the number according to the next
93+
serial, potentially leading to a sequence that is not in sync anymore
94+
with the created serial numbers.
95+
96+
cf https://github.com/OCA/product-attribute/issues/1326
97+
98+
Bug Tracker
99+
===========
100+
101+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/product-attribute/issues>`_.
102+
In case of trouble, please check there if your issue has already been reported.
103+
If you spotted it first, help us to smash it by providing a detailed and welcomed
104+
`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**>`_.
105+
106+
Do not contact contributors directly about support or help with technical issues.
107+
108+
Credits
109+
=======
110+
111+
Authors
112+
-------
113+
114+
* ForgeFlow S.L.
115+
116+
Contributors
117+
------------
118+
119+
- Adria Gil Sorribes <adria.gil@forgeflow.com>
120+
- Domantas Girdžiūnas <domantas@vialaurea.lt>
121+
- `Camptocamp <https://www.camptocamp.com>`__:
122+
123+
- Akim Juillerat <akim.juillerat@camptocamp.com>
124+
- Vincent Van Rossem <vincent.vanrossem@camptocamp.com>
125+
126+
- `Quartile <https://www.quartile.co>`__:
127+
128+
- Yoshi Tashiro
129+
130+
- `Apik <https://www.apik.cloud>`__:
131+
132+
- Frederic Grall
133+
134+
- `Trobz <https://trobz.com>`__:
135+
136+
- Khoi (Kien Kim) <khoikk@trobz.com>
137+
138+
Other credits
139+
-------------
140+
141+
The migration of this module from 17.0 to 18.0 was financially supported
142+
by Camptocamp.
143+
144+
Maintainers
145+
-----------
146+
147+
This module is maintained by the OCA.
148+
149+
.. image:: https://odoo-community.org/logo.png
150+
:alt: Odoo Community Association
151+
:target: https://odoo-community.org
152+
153+
OCA, or the Odoo Community Association, is a nonprofit organization whose
154+
mission is to support the collaborative development of Odoo features and
155+
promote its widespread use.
156+
157+
This module is part of the `OCA/product-attribute <https://github.com/OCA/product-attribute/tree/18.0/product_lot_sequence>`_ project on GitHub.
158+
159+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

product_lot_sequence/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2020 ForgeFlow S.L.
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Product Lot Sequence",
6+
"summary": """
7+
Adds ability to define a lot sequence from the product""",
8+
"version": "18.0.1.0.0",
9+
"license": "AGPL-3",
10+
"author": "ForgeFlow S.L., Odoo Community Association (OCA)",
11+
"website": "https://github.com/OCA/product-attribute",
12+
"depends": ["stock"],
13+
"data": [
14+
"data/ir_config_parameter.xml",
15+
"views/product_views.xml",
16+
"views/res_config_settings_views.xml",
17+
],
18+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo noupdate="1">
3+
<record model="ir.config_parameter" id="lot_sequence_policy">
4+
<field name="key">product_lot_sequence.policy</field>
5+
<field name="value">product</field>
6+
</record>
7+
</odoo>

product_lot_sequence/i18n/ca.po

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * product_lot_sequence
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 13.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2021-02-23 18:45+0000\n"
10+
"Last-Translator: claudiagn <claudia.gargallo@qubiq.es>\n"
11+
"Language-Team: none\n"
12+
"Language: ca\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
17+
"X-Generator: Weblate 4.3.2\n"
18+
19+
#. module: product_lot_sequence
20+
#: model_terms:ir.ui.view,arch_db:product_lot_sequence.res_config_settings_view_form
21+
msgid ""
22+
"<span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-"
23+
"specific.\" aria-label=\"Values set here are company-specific.\" "
24+
"groups=\"base.group_multi_company\"/>"
25+
msgstr ""
26+
27+
#. module: product_lot_sequence
28+
#: model:ir.model,name:product_lot_sequence.model_res_company
29+
msgid "Companies"
30+
msgstr ""
31+
32+
#. module: product_lot_sequence
33+
#: model:ir.model,name:product_lot_sequence.model_res_config_settings
34+
msgid "Config Settings"
35+
msgstr ""
36+
37+
#. module: product_lot_sequence
38+
#: model_terms:ir.ui.view,arch_db:product_lot_sequence.res_config_settings_view_form
39+
msgid ""
40+
"Default number of digits to be set on products for product lot/serial "
41+
"sequence generation."
42+
msgstr ""
43+
44+
#. module: product_lot_sequence
45+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__display_lot_sequence_fields
46+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__display_lot_sequence_fields
47+
msgid "Display Lot Sequence Fields"
48+
msgstr ""
49+
50+
#. module: product_lot_sequence
51+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_id
52+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_id
53+
msgid "Entry Sequence"
54+
msgstr "Seqüència d’entrada"
55+
56+
#. module: product_lot_sequence
57+
#: model:ir.model,name:product_lot_sequence.model_stock_lot
58+
msgid "Lot/Serial"
59+
msgstr "Lot/Sèrie"
60+
61+
#. module: product_lot_sequence
62+
#: model:ir.model.fields,field_description:product_lot_sequence.field_stock_lot__name
63+
msgid "Lot/Serial Number"
64+
msgstr ""
65+
66+
#. module: product_lot_sequence
67+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_number_next
68+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_number_next
69+
msgid "Next Number"
70+
msgstr "Següent Número"
71+
72+
#. module: product_lot_sequence
73+
#: model:ir.model,name:product_lot_sequence.model_product_template
74+
msgid "Product"
75+
msgstr ""
76+
77+
#. module: product_lot_sequence
78+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_padding
79+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_padding
80+
#: model:ir.model.fields,field_description:product_lot_sequence.field_res_company__lot_sequence_padding
81+
#: model:ir.model.fields,field_description:product_lot_sequence.field_res_config_settings__lot_sequence_padding
82+
msgid "Sequence Number of Digits"
83+
msgstr "Seqüència Nombre de dígits"
84+
85+
#. module: product_lot_sequence
86+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_product__lot_sequence_prefix
87+
#: model:ir.model.fields,field_description:product_lot_sequence.field_product_template__lot_sequence_prefix
88+
msgid "Sequence Prefix"
89+
msgstr "Prefix de seqüència"
90+
91+
#. module: product_lot_sequence
92+
#: model:ir.model,name:product_lot_sequence.model_stock_move
93+
msgid "Stock Move"
94+
msgstr ""
95+
96+
#. module: product_lot_sequence
97+
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_prefix
98+
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_prefix
99+
msgid "The lot's sequence will be created using this prefix."
100+
msgstr "La seqüència del lot es crearà mitjançant aquest prefix."
101+
102+
#. module: product_lot_sequence
103+
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_padding
104+
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_padding
105+
msgid "The lots' sequence will be created using this number of digits."
106+
msgstr "La seqüència dels lots es crearà utilitzant aquest nombre de dígits."
107+
108+
#. module: product_lot_sequence
109+
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_number_next
110+
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_number_next
111+
msgid "The next sequence number will be used for the next lot."
112+
msgstr "El següent número de seqüència s'utilitzarà per al següent lot."
113+
114+
#. module: product_lot_sequence
115+
#: model:ir.model.fields,help:product_lot_sequence.field_product_product__lot_sequence_id
116+
#: model:ir.model.fields,help:product_lot_sequence.field_product_template__lot_sequence_id
117+
msgid "This field contains the information related to the numbering of lots."
118+
msgstr "Aquest camp conté la informació relacionada amb la numeració de lots."
119+
120+
#. module: product_lot_sequence
121+
#: model:ir.model.fields,help:product_lot_sequence.field_stock_lot__name
122+
msgid "Unique Lot/Serial Number"
123+
msgstr ""
124+
125+
#. module: product_lot_sequence
126+
#: model_terms:ir.ui.view,arch_db:product_lot_sequence.res_config_settings_view_form
127+
msgid "digits"
128+
msgstr ""
129+
130+
#~ msgid "Product Template"
131+
#~ msgstr "Plantilla de producte"

0 commit comments

Comments
 (0)