Skip to content

Commit a8118bb

Browse files
manuelcalerosolisAdrianaSaiz
authored andcommitted
[ADD] New module : stock_quant_expiration_date_tree
1 parent d5896bb commit a8118bb

File tree

10 files changed

+178
-112
lines changed

10 files changed

+178
-112
lines changed

stock_quant_expiration_date_tree/README.rst

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
==================================
2-
Stock Production Lot Quantity Tree
3-
==================================
1+
================================
2+
Stock Quant Expiration Date Tree
3+
================================
44

55
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
66
!! This file is generated by oca-gen-addon-readme !!
@@ -14,18 +14,18 @@ Stock Production Lot Quantity Tree
1414
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1515
:alt: License: AGPL-3
1616
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
17-
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_production_lot_quantity_tree
17+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree
1818
:alt: OCA/stock-logistics-warehouse
1919
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_production_lot_quantity_tree
20+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_expiration_date_tree
2121
:alt: Translate me on Weblate
2222
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/153/12.0
23+
:target: https://runbot.odoo-community.org/runbot/153/13.0
2424
:alt: Try me on Runbot
2525

26-
|badge1| |badge2| |badge3| |badge4| |badge5|
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
2727

28-
This module allows to display the lot quantity on its tree view.
28+
This module allows to display expirations dates on stock quant tree view.
2929

3030
**Table of contents**
3131

@@ -38,7 +38,7 @@ Bug Tracker
3838
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
3939
In case of trouble, please check there if your issue has already been reported.
4040
If you spotted it first, help us smashing it by providing a detailed and welcomed
41-
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_production_lot_quantity_tree%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
41+
`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**>`_.
4242

4343
Do not contact contributors directly about support or help with technical issues.
4444

@@ -48,12 +48,12 @@ Credits
4848
Authors
4949
~~~~~~~
5050

51-
* ACSONE SA/NV
51+
* Xtendoo
5252

5353
Contributors
5454
~~~~~~~~~~~~
5555

56-
* Denis Roussel <denis.roussel@acsone.eu>
56+
* Manuel Calero <manuelcalerosolis@gmail.com>
5757

5858
Maintainers
5959
~~~~~~~~~~~
@@ -74,8 +74,8 @@ promote its widespread use.
7474

7575
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
7676

77-
|maintainer-rousseldenis|
77+
|maintainer-rousseldenis|
7878

79-
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_production_lot_quantity_tree>`_ project on GitHub.
79+
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.
8080

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

stock_quant_expiration_date_tree/__manifest__.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
"author": "Xtendoo, Odoo Community Association (OCA)",
1111
"maintainers": ["Manuel Calero"],
1212
"website": "https://github.com/OCA/stock-logistics-warehouse",
13-
"depends": [
14-
"stock",
15-
"product_expiry"
16-
],
17-
"data": [
18-
"views/stock_quant.xml"
19-
],
13+
"depends": ["stock", "product_expiry"],
14+
"data": ["views/stock_quant.xml"],
2015
}
21-
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_quant_expiration_date_tree
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 13.0\n"
8+
"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"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: stock_quant_expiration_date_tree
19+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__alert_date
20+
msgid "Alert Date"
21+
msgstr "Fecha Alerta"
22+
23+
#. module: stock_quant_expiration_date_tree
24+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__use_date
25+
msgid "Best before Date"
26+
msgstr "Consumir Preferentemente"
27+
28+
#. module: stock_quant_expiration_date_tree
29+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__alert_date
30+
msgid ""
31+
"Date to determine the expired lots and serial numbers using the filter "
32+
"\"Expiration Alerts\"."
33+
msgstr ""
34+
"Fecha para determinar los lotes caducados y los números de serie mediante el filtro"
35+
"\"Alertas de caducidad\"."
36+
37+
#. module: stock_quant_expiration_date_tree
38+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date
39+
msgid "End of Life Date"
40+
msgstr "Fecha de Caducidad"
41+
42+
#. module: stock_quant_expiration_date_tree
43+
#: model:ir.model,name:stock_quant_expiration_date_tree.model_stock_quant
44+
msgid "Quants"
45+
msgstr ""
46+
47+
#. module: stock_quant_expiration_date_tree
48+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date
49+
msgid "Removal Date"
50+
msgstr "Fecha de eliminación"
51+
52+
#. module: stock_quant_expiration_date_tree
53+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date
54+
msgid ""
55+
"This is the date on which the goods with this Serial Number may become "
56+
"dangerous and must not be consumed."
57+
msgstr ""
58+
"Ésta es la fecha en la que los bienes con este nº de serie se convierten en "
59+
"peligrosos, y no deben ser consumidos."
60+
61+
#. module: stock_quant_expiration_date_tree
62+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date
63+
msgid ""
64+
"This is the date on which the goods with this Serial Number should be "
65+
"removed from the stock. This date will be used in FEFO removal strategy."
66+
msgstr ""
67+
"Es la fecha en la que las mercancías con este número de serie deben "
68+
"retirarse del stock. Esta fecha se utilizará en la estrategia de eliminación"
69+
" de la FIFO."
70+
71+
#. module: stock_quant_expiration_date_tree
72+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date
73+
msgid ""
74+
"This is the date on which the goods with this Serial Number start "
75+
"deteriorating, without being dangerous yet."
76+
msgstr ""
77+
"Ésta es la fecha en la que los bienes con este nº de serie empiezan a "
78+
"deteriorarse, pero sin ser peligroso aún."

stock_quant_expiration_date_tree/i18n/es.pot

-31
This file was deleted.

stock_quant_expiration_date_tree/i18n/stock_production_lot_quantity_tree.pot

-31
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_quant_expiration_date_tree
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 13.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2021-03-25 12:28+0000\n"
10+
"PO-Revision-Date: 2021-03-25 12:28+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: stock_quant_expiration_date_tree
19+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__alert_date
20+
msgid "Alert Date"
21+
msgstr ""
22+
23+
#. module: stock_quant_expiration_date_tree
24+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__use_date
25+
msgid "Best before Date"
26+
msgstr ""
27+
28+
#. module: stock_quant_expiration_date_tree
29+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__alert_date
30+
msgid ""
31+
"Date to determine the expired lots and serial numbers using the filter "
32+
"\"Expiration Alerts\"."
33+
msgstr ""
34+
35+
#. module: stock_quant_expiration_date_tree
36+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date
37+
msgid "End of Life Date"
38+
msgstr ""
39+
40+
#. module: stock_quant_expiration_date_tree
41+
#: model:ir.model,name:stock_quant_expiration_date_tree.model_stock_quant
42+
msgid "Quants"
43+
msgstr ""
44+
45+
#. module: stock_quant_expiration_date_tree
46+
#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date
47+
msgid "Removal Date"
48+
msgstr ""
49+
50+
#. module: stock_quant_expiration_date_tree
51+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date
52+
msgid ""
53+
"This is the date on which the goods with this Serial Number may become "
54+
"dangerous and must not be consumed."
55+
msgstr ""
56+
57+
#. module: stock_quant_expiration_date_tree
58+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date
59+
msgid ""
60+
"This is the date on which the goods with this Serial Number should be "
61+
"removed from the stock. This date will be used in FEFO removal strategy."
62+
msgstr ""
63+
64+
#. module: stock_quant_expiration_date_tree
65+
#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date
66+
msgid ""
67+
"This is the date on which the goods with this Serial Number start "
68+
"deteriorating, without being dangerous yet."
69+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
22
# Copyright 2021 Xtendoo - Manuel Calero
33

4-
from odoo import api, fields, models
4+
from odoo import fields, models
55

66

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',
13-
)
14-
use_date = fields.Datetime(
15-
string='Best before Date',
16-
related='lot_id.use_date',
17-
)
10+
life_date = fields.Datetime(string="End of Life Date", related="lot_id.life_date",)
11+
use_date = fields.Datetime(string="Best before Date", related="lot_id.use_date",)
1812
removal_date = fields.Datetime(
19-
string='Removal Date',
20-
related='lot_id.removal_date',
21-
)
22-
alert_date = fields.Datetime(
23-
string='Alert Date',
24-
related='lot_id.alert_date',
13+
string="Removal Date", related="lot_id.removal_date",
2514
)
15+
alert_date = fields.Datetime(string="Alert Date", related="lot_id.alert_date",)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This module allows to display the life date on its tree view.
1+
This module allows to display expirations dates on stock quant tree view.

stock_quant_expiration_date_tree/static/description/index.html

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
66
<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" />
7-
<title>Stock Production Lot Quantity Tree</title>
7+
<title>Stock Quant Expiration Date Tree</title>
88
<style type="text/css">
99

1010
/*
@@ -367,8 +367,8 @@ <h1 class="title">Stock Production Lot Quantity Tree</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
370-
<p><a class="reference external" 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" 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" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_production_lot_quantity_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" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_production_lot_quantity_tree"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371-
<p>This module allows to display the lot quantity on its tree view.</p>
370+
<p><a class="reference external" 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" 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" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_production_lot_quantity_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" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_production_lot_quantity_tree"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
371+
<p>Allows to display expirations dates on stock quant tree view.</p>
372372
<p><strong>Table of contents</strong></p>
373373
<div class="contents local topic" id="contents">
374374
<ul class="simple">
@@ -394,13 +394,13 @@ <h1><a class="toc-backref" href="#id2">Credits</a></h1>
394394
<div class="section" id="authors">
395395
<h2><a class="toc-backref" href="#id3">Authors</a></h2>
396396
<ul class="simple">
397-
<li>ACSONE SA/NV</li>
397+
<li>Manuel Calero - https://xtendoo.es</li>
398398
</ul>
399399
</div>
400400
<div class="section" id="contributors">
401401
<h2><a class="toc-backref" href="#id4">Contributors</a></h2>
402402
<ul class="simple">
403-
<li>Denis Roussel &lt;<a class="reference external" href="mailto:denis.roussel&#64;acsone.eu">denis.roussel&#64;acsone.eu</a>&gt;</li>
403+
<li>Manuel Calero &lt;<a class="reference external" href="mailto:manuelcalerosolis&#64;gmail.com">manuelcalerosolis&#64;gmail.com</a>&gt;</li>
404404
</ul>
405405
</div>
406406
<div class="section" id="maintainers">
@@ -411,8 +411,7 @@ <h2><a class="toc-backref" href="#id5">Maintainers</a></h2>
411411
mission is to support the collaborative development of Odoo features and
412412
promote its widespread use.</p>
413413
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
414-
<p><a class="reference external" href="https://github.com/rousseldenis"><img alt="rousseldenis" src="https://github.com/rousseldenis.png?size=40px" /></a></p>
415-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_production_lot_quantity_tree">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
414+
<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>
416415
<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>
417416
</div>
418417
</div>

0 commit comments

Comments
 (0)