Skip to content

Commit 0172c7d

Browse files
committed
[MIG] stock_quant_expiration_date_tree: Migration to 16.0
1 parent 08c9638 commit 0172c7d

File tree

7 files changed

+29
-66
lines changed

7 files changed

+29
-66
lines changed

stock_quant_expiration_date_tree/README.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Stock Quant Expiration Date Tree
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
20-
:target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree
20+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree
2121
:alt: OCA/stock-logistics-warehouse
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_expiration_date_tree
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_expiration_date_tree
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=13.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -41,7 +41,7 @@ Bug Tracker
4141
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
4242
In case of trouble, please check there if your issue has already been reported.
4343
If you spotted it first, help us to smash it by providing a detailed and welcomed
44-
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
44+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4545

4646
Do not contact contributors directly about support or help with technical issues.
4747

@@ -79,6 +79,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
7979

8080
|maintainer-Manuel Calero|
8181

82-
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree>`_ project on GitHub.
82+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree>`_ project on GitHub.
8383

8484
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

stock_quant_expiration_date_tree/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"name": "Stock Quant Expiration Date Tree",
66
"summary": """
77
Allows to display expirations dates on stock quant tree view""",
8-
"version": "13.0.1.0.0",
8+
"version": "16.0.1.0.0",
99
"license": "AGPL-3",
1010
"author": "Xtendoo, Odoo Community Association (OCA)",
1111
"maintainers": ["Manuel Calero"],

stock_quant_expiration_date_tree/i18n/es.po

+10-28
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 13.0\n"
7+
"Project-Id-Version: Odoo Server 16.0\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2021-03-25 12:53+0000\n"
10-
"PO-Revision-Date: 2021-03-25 12:53+0000\n"
9+
"POT-Creation-Date: 2024-07-17 12:31+0000\n"
10+
"PO-Revision-Date: 2024-07-17 12:31+0000\n"
1111
"Last-Translator: \n"
1212
"Language-Team: \n"
13-
"Language: \n"
1413
"MIME-Version: 1.0\n"
1514
"Content-Type: text/plain; charset=UTF-8\n"
1615
"Content-Transfer-Encoding: \n"
@@ -32,42 +31,25 @@ msgid ""
3231
"Date to determine the expired lots and serial numbers using the filter "
3332
"\"Expiration Alerts\"."
3433
msgstr ""
35-
"Fecha para determinar los lotes caducados y los números de serie mediante el "
36-
"filtro\"Alertas de caducidad\"."
34+
"Fecha para determinar los lotes caducados y los números de serie mediante el"
35+
" filtro\"Alertas de caducidad\"."
3736

3837
#. module: stock_quant_expiration_date_tree
39-
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date
40-
msgid "End of Life Date"
41-
msgstr "Fecha de Caducidad"
38+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
39+
msgid "Expiration Date"
40+
msgstr "Fecha de caducidad"
4241

4342
#. module: stock_quant_expiration_date_tree
4443
#: model:ir.model,name:stock_quant_expiration_date_tree.model_stock_quant
4544
msgid "Quants"
4645
msgstr ""
4746

4847
#. module: stock_quant_expiration_date_tree
49-
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date
50-
msgid "Removal Date"
51-
msgstr "Fecha de eliminación"
52-
53-
#. module: stock_quant_expiration_date_tree
54-
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date
48+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
5549
msgid ""
5650
"This is the date on which the goods with this Serial Number may become "
5751
"dangerous and must not be consumed."
5852
msgstr ""
59-
"Ésta es la fecha en la que los bienes con este nº de serie se convierten en "
60-
"peligrosos, y no deben ser consumidos."
61-
62-
#. module: stock_quant_expiration_date_tree
63-
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date
64-
msgid ""
65-
"This is the date on which the goods with this Serial Number should be "
66-
"removed from the stock. This date will be used in FEFO removal strategy."
67-
msgstr ""
68-
"Es la fecha en la que las mercancías con este número de serie deben "
69-
"retirarse del stock. Esta fecha se utilizará en la estrategia de eliminación "
70-
"de la FIFO."
7153

7254
#. module: stock_quant_expiration_date_tree
7355
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date
@@ -76,4 +58,4 @@ msgid ""
7658
"deteriorating, without being dangerous yet."
7759
msgstr ""
7860
"Ésta es la fecha en la que los bienes con este nº de serie empiezan a "
79-
"deteriorarse, pero sin ser peligroso aún."
61+
"deteriorarse, pero sin ser peligroso aún."

stock_quant_expiration_date_tree/i18n/stock_quant_expiration_date_tree.pot

+7-17
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 13.0\n"
7+
"Project-Id-Version: Odoo Server 16.0\n"
88
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2024-07-17 12:33+0000\n"
10+
"PO-Revision-Date: 2024-07-17 12:33+0000\n"
911
"Last-Translator: \n"
1012
"Language-Team: \n"
1113
"MIME-Version: 1.0\n"
@@ -31,8 +33,8 @@ msgid ""
3133
msgstr ""
3234

3335
#. module: stock_quant_expiration_date_tree
34-
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date
35-
msgid "End of Life Date"
36+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
37+
msgid "Expiration Date"
3638
msgstr ""
3739

3840
#. module: stock_quant_expiration_date_tree
@@ -41,27 +43,15 @@ msgid "Quants"
4143
msgstr ""
4244

4345
#. module: stock_quant_expiration_date_tree
44-
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date
45-
msgid "Removal Date"
46-
msgstr ""
47-
48-
#. module: stock_quant_expiration_date_tree
49-
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date
46+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__expiration_date
5047
msgid ""
5148
"This is the date on which the goods with this Serial Number may become "
5249
"dangerous and must not be consumed."
5350
msgstr ""
5451

55-
#. module: stock_quant_expiration_date_tree
56-
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date
57-
msgid ""
58-
"This is the date on which the goods with this Serial Number should be "
59-
"removed from the stock. This date will be used in FEFO removal strategy."
60-
msgstr ""
61-
6252
#. module: stock_quant_expiration_date_tree
6353
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date
6454
msgid ""
6555
"This is the date on which the goods with this Serial Number start "
6656
"deteriorating, without being dangerous yet."
67-
msgstr ""
57+
msgstr ""

stock_quant_expiration_date_tree/models/stock_quant.py

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@
77
class StockQuant(models.Model):
88
_inherit = "stock.quant"
99

10-
life_date = fields.Datetime(
11-
string="End of Life Date",
12-
related="lot_id.life_date",
10+
expiration_date = fields.Datetime(
11+
related="lot_id.expiration_date",
1312
)
1413
use_date = fields.Datetime(
15-
string="Best before Date",
1614
related="lot_id.use_date",
1715
)
18-
removal_date = fields.Datetime(
19-
string="Removal Date",
20-
related="lot_id.removal_date",
21-
)
2216
alert_date = fields.Datetime(
23-
string="Alert Date",
2417
related="lot_id.alert_date",
2518
)

stock_quant_expiration_date_tree/static/description/index.html

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
@@ -369,7 +368,7 @@ <h1 class="title">Stock Quant Expiration Date Tree</h1>
369368
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370369
!! source digest: sha256:79ed76834756e5524f01ec75609bf8d1b2f301a65fac6985238f6fc929c541c8
371370
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_expiration_date_tree"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&amp;target_branch=13.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_expiration_date_tree"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373372
<p>This module allows to display expirations dates on stock quant tree view.</p>
374373
<p><strong>Table of contents</strong></p>
375374
<div class="contents local topic" id="contents">
@@ -388,7 +387,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
388387
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
389388
In case of trouble, please check there if your issue has already been reported.
390389
If you spotted it first, help us to smash it by providing a detailed and welcomed
391-
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
390+
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_quant_expiration_date_tree%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
392391
<p>Do not contact contributors directly about support or help with technical issues.</p>
393392
</div>
394393
<div class="section" id="credits">
@@ -414,7 +413,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
414413
promote its widespread use.</p>
415414
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
416415
<p><a class="reference external image-reference" href="https://github.com/ManuelCalero"><img alt="Manuel Calero" src="https://github.com/ManuelCalero.png?size=40px" /></a></p>
417-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
416+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
418417
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
419418
</div>
420419
</div>

stock_quant_expiration_date_tree/views/stock_quant.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
<field name="inherit_id" ref="stock.view_stock_quant_tree_editable" />
99
<field name="arch" type="xml">
1010
<xpath expr="//field[@name='product_uom_id']" position="after">
11-
<field name="life_date" optional="hide" />
11+
<field name="expiration_date" optional="hide" />
1212
<field name="use_date" optional="hide" />
13-
<field name="removal_date" optional="hide" />
1413
<field name="alert_date" optional="hide" />
1514
</xpath>
1615
</field>

0 commit comments

Comments
 (0)