From 0172c7de716e47e9b9b50719ee891bbacfe9775c Mon Sep 17 00:00:00 2001 From: Adriana Saiz Date: Wed, 17 Jul 2024 11:28:17 +0200 Subject: [PATCH] [MIG] stock_quant_expiration_date_tree: Migration to 16.0 --- stock_quant_expiration_date_tree/README.rst | 10 ++--- .../__manifest__.py | 2 +- stock_quant_expiration_date_tree/i18n/es.po | 38 +++++-------------- .../i18n/stock_quant_expiration_date_tree.pot | 24 ++++-------- .../models/stock_quant.py | 11 +----- .../static/description/index.html | 7 ++-- .../views/stock_quant.xml | 3 +- 7 files changed, 29 insertions(+), 66 deletions(-) diff --git a/stock_quant_expiration_date_tree/README.rst b/stock_quant_expiration_date_tree/README.rst index 8db9c8cfe..5e0e06436 100644 --- a/stock_quant_expiration_date_tree/README.rst +++ b/stock_quant_expiration_date_tree/README.rst @@ -17,13 +17,13 @@ Stock Quant Expiration Date Tree :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github - :target: https://github.com/OCA/stock-logistics-warehouse/tree/13.0/stock_quant_expiration_date_tree + :target: https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_quant_expiration_date_tree :alt: OCA/stock-logistics-warehouse .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-13-0/stock-logistics-warehouse-13-0-stock_quant_expiration_date_tree + :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_quant_expiration_date_tree :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/stock-logistics-warehouse&target_branch=13.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -41,7 +41,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -79,6 +79,6 @@ Current `maintainer `__: |maintainer-Manuel Calero| -This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. +This module is part of the `OCA/stock-logistics-warehouse `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_quant_expiration_date_tree/__manifest__.py b/stock_quant_expiration_date_tree/__manifest__.py index 6461a0006..72ca865d8 100644 --- a/stock_quant_expiration_date_tree/__manifest__.py +++ b/stock_quant_expiration_date_tree/__manifest__.py @@ -5,7 +5,7 @@ "name": "Stock Quant Expiration Date Tree", "summary": """ Allows to display expirations dates on stock quant tree view""", - "version": "13.0.1.0.0", + "version": "16.0.1.0.0", "license": "AGPL-3", "author": "Xtendoo, Odoo Community Association (OCA)", "maintainers": ["Manuel Calero"], diff --git a/stock_quant_expiration_date_tree/i18n/es.po b/stock_quant_expiration_date_tree/i18n/es.po index 076385ceb..05069a6f8 100644 --- a/stock_quant_expiration_date_tree/i18n/es.po +++ b/stock_quant_expiration_date_tree/i18n/es.po @@ -4,13 +4,12 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-03-25 12:53+0000\n" -"PO-Revision-Date: 2021-03-25 12:53+0000\n" +"POT-Creation-Date: 2024-07-17 12:31+0000\n" +"PO-Revision-Date: 2024-07-17 12:31+0000\n" "Last-Translator: \n" "Language-Team: \n" -"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" @@ -32,13 +31,13 @@ msgid "" "Date to determine the expired lots and serial numbers using the filter " "\"Expiration Alerts\"." msgstr "" -"Fecha para determinar los lotes caducados y los números de serie mediante el " -"filtro\"Alertas de caducidad\"." +"Fecha para determinar los lotes caducados y los números de serie mediante el" +" filtro\"Alertas de caducidad\"." #. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date -msgid "End of Life Date" -msgstr "Fecha de Caducidad" +#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__expiration_date +msgid "Expiration Date" +msgstr "Fecha de caducidad" #. module: stock_quant_expiration_date_tree #: model:ir.model,name:stock_quant_expiration_date_tree.model_stock_quant @@ -46,28 +45,11 @@ msgid "Quants" msgstr "" #. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date -msgid "Removal Date" -msgstr "Fecha de eliminación" - -#. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date +#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__expiration_date msgid "" "This is the date on which the goods with this Serial Number may become " "dangerous and must not be consumed." msgstr "" -"Ésta es la fecha en la que los bienes con este nº de serie se convierten en " -"peligrosos, y no deben ser consumidos." - -#. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date -msgid "" -"This is the date on which the goods with this Serial Number should be " -"removed from the stock. This date will be used in FEFO removal strategy." -msgstr "" -"Es la fecha en la que las mercancías con este número de serie deben " -"retirarse del stock. Esta fecha se utilizará en la estrategia de eliminación " -"de la FIFO." #. module: stock_quant_expiration_date_tree #: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date @@ -76,4 +58,4 @@ msgid "" "deteriorating, without being dangerous yet." msgstr "" "Ésta es la fecha en la que los bienes con este nº de serie empiezan a " -"deteriorarse, pero sin ser peligroso aún." +"deteriorarse, pero sin ser peligroso aún." \ No newline at end of file diff --git a/stock_quant_expiration_date_tree/i18n/stock_quant_expiration_date_tree.pot b/stock_quant_expiration_date_tree/i18n/stock_quant_expiration_date_tree.pot index 7a062174b..5eacd94bd 100644 --- a/stock_quant_expiration_date_tree/i18n/stock_quant_expiration_date_tree.pot +++ b/stock_quant_expiration_date_tree/i18n/stock_quant_expiration_date_tree.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-07-17 12:33+0000\n" +"PO-Revision-Date: 2024-07-17 12:33+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -31,8 +33,8 @@ msgid "" msgstr "" #. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__life_date -msgid "End of Life Date" +#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__expiration_date +msgid "Expiration Date" msgstr "" #. module: stock_quant_expiration_date_tree @@ -41,27 +43,15 @@ msgid "Quants" msgstr "" #. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,field_description:stock_quant_expiration_date_tree.field_stock_quant__removal_date -msgid "Removal Date" -msgstr "" - -#. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__life_date +#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__expiration_date msgid "" "This is the date on which the goods with this Serial Number may become " "dangerous and must not be consumed." msgstr "" -#. module: stock_quant_expiration_date_tree -#: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__removal_date -msgid "" -"This is the date on which the goods with this Serial Number should be " -"removed from the stock. This date will be used in FEFO removal strategy." -msgstr "" - #. module: stock_quant_expiration_date_tree #: model:ir.model.fields,help:stock_quant_expiration_date_tree.field_stock_quant__use_date msgid "" "This is the date on which the goods with this Serial Number start " "deteriorating, without being dangerous yet." -msgstr "" +msgstr "" \ No newline at end of file diff --git a/stock_quant_expiration_date_tree/models/stock_quant.py b/stock_quant_expiration_date_tree/models/stock_quant.py index 2f2eb3d0d..d7a0df93f 100644 --- a/stock_quant_expiration_date_tree/models/stock_quant.py +++ b/stock_quant_expiration_date_tree/models/stock_quant.py @@ -7,19 +7,12 @@ from odoo import fields, models class StockQuant(models.Model): _inherit = "stock.quant" - life_date = fields.Datetime( - string="End of Life Date", - related="lot_id.life_date", + expiration_date = fields.Datetime( + related="lot_id.expiration_date", ) use_date = fields.Datetime( - string="Best before Date", related="lot_id.use_date", ) - removal_date = fields.Datetime( - string="Removal Date", - related="lot_id.removal_date", - ) alert_date = fields.Datetime( - string="Alert Date", related="lot_id.alert_date", ) diff --git a/stock_quant_expiration_date_tree/static/description/index.html b/stock_quant_expiration_date_tree/static/description/index.html index f54917ae4..b7c684e75 100644 --- a/stock_quant_expiration_date_tree/static/description/index.html +++ b/stock_quant_expiration_date_tree/static/description/index.html @@ -1,4 +1,3 @@ - @@ -369,7 +368,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:79ed76834756e5524f01ec75609bf8d1b2f301a65fac6985238f6fc929c541c8 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/stock-logistics-warehouse Translate me on Weblate Try me on Runboat

This module allows to display expirations dates on stock quant tree view.

Table of contents

@@ -388,7 +387,7 @@ ul.auto-toc {

Bugs are tracked on GitHub 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.

+feedback.

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

@@ -414,7 +413,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

Manuel Calero

-

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

+

This module is part of the OCA/stock-logistics-warehouse project on GitHub.

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

diff --git a/stock_quant_expiration_date_tree/views/stock_quant.xml b/stock_quant_expiration_date_tree/views/stock_quant.xml index 44b13d39e..5b0d3a2e4 100644 --- a/stock_quant_expiration_date_tree/views/stock_quant.xml +++ b/stock_quant_expiration_date_tree/views/stock_quant.xml @@ -8,9 +8,8 @@ - + -