Skip to content

Commit d5896bb

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

File tree

12 files changed

+634
-0
lines changed

12 files changed

+634
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
==================================
2+
Stock Production Lot Quantity Tree
3+
==================================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |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
18+
:alt: OCA/stock-logistics-warehouse
19+
.. |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
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/153/12.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
This module allows to display the lot quantity on its tree view.
29+
30+
**Table of contents**
31+
32+
.. contents::
33+
:local:
34+
35+
Bug Tracker
36+
===========
37+
38+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
39+
In case of trouble, please check there if your issue has already been reported.
40+
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**>`_.
42+
43+
Do not contact contributors directly about support or help with technical issues.
44+
45+
Credits
46+
=======
47+
48+
Authors
49+
~~~~~~~
50+
51+
* ACSONE SA/NV
52+
53+
Contributors
54+
~~~~~~~~~~~~
55+
56+
* Denis Roussel <denis.roussel@acsone.eu>
57+
58+
Maintainers
59+
~~~~~~~~~~~
60+
61+
This module is maintained by the OCA.
62+
63+
.. image:: https://odoo-community.org/logo.png
64+
:alt: Odoo Community Association
65+
:target: https://odoo-community.org
66+
67+
OCA, or the Odoo Community Association, is a nonprofit organization whose
68+
mission is to support the collaborative development of Odoo features and
69+
promote its widespread use.
70+
71+
.. |maintainer-rousseldenis| image:: https://github.com/rousseldenis.png?size=40px
72+
:target: https://github.com/rousseldenis
73+
:alt: rousseldenis
74+
75+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
76+
77+
|maintainer-rousseldenis|
78+
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.
80+
81+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2021 Xtendoo
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Stock Quant Expiration Date Tree",
6+
"summary": """
7+
Allows to display expirations dates on stock quant tree view""",
8+
"version": "13.0.1.0.0",
9+
"license": "AGPL-3",
10+
"author": "Xtendoo, Odoo Community Association (OCA)",
11+
"maintainers": ["Manuel Calero"],
12+
"website": "https://github.com/OCA/stock-logistics-warehouse",
13+
"depends": [
14+
"stock",
15+
"product_expiry"
16+
],
17+
"data": [
18+
"views/stock_quant.xml"
19+
],
20+
}
21+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_production_lot_quantity_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-24 22:48+0000\n"
10+
"PO-Revision-Date: 2021-03-24 22:48+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_production_lot_quantity_tree
19+
#: model:ir.model,name:stock_production_lot_quantity_tree.model_stock_production_lot
20+
msgid "Lot/Serial"
21+
msgstr "Lote/Serie"
22+
23+
#. module: stock_production_lot_quantity_tree
24+
#: model:ir.model.fields,field_description:stock_production_lot_quantity_tree.field_stock_production_lot__product_qty
25+
msgid "Quantity"
26+
msgstr "Cantidad"
27+
28+
#. module: stock_production_lot_quantity_tree
29+
#: model_terms:ir.ui.view,arch_db:stock_production_lot_quantity_tree.search_product_lot_filter_inherit_product_expiry
30+
msgid "With quantities"
31+
msgstr "Con cantidades"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * stock_production_lot_quantity_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-24 22:48+0000\n"
10+
"PO-Revision-Date: 2021-03-24 22:48+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_production_lot_quantity_tree
19+
#: model:ir.model,name:stock_production_lot_quantity_tree.model_stock_production_lot
20+
msgid "Lot/Serial"
21+
msgstr ""
22+
23+
#. module: stock_production_lot_quantity_tree
24+
#: model:ir.model.fields,field_description:stock_production_lot_quantity_tree.field_stock_production_lot__product_qty
25+
msgid "Quantity"
26+
msgstr ""
27+
28+
#. module: stock_production_lot_quantity_tree
29+
#: model_terms:ir.ui.view,arch_db:stock_production_lot_quantity_tree.search_product_lot_filter_inherit_product_expiry
30+
msgid "With quantities"
31+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import stock_quant
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
2+
# Copyright 2021 Xtendoo - Manuel Calero
3+
4+
from odoo import api, fields, models
5+
6+
7+
class StockQuant(models.Model):
8+
_inherit = "stock.quant"
9+
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+
)
18+
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',
25+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Manuel Calero <manuelcalerosolis@gmail.com>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows to display the life date on its tree view.
Loading

0 commit comments

Comments
 (0)