diff --git a/stock_quant_expiration_date_tree/README.rst b/stock_quant_expiration_date_tree/README.rst new file mode 100644 index 000000000..0b104c992 --- /dev/null +++ b/stock_quant_expiration_date_tree/README.rst @@ -0,0 +1,81 @@ +================================== +Stock Production Lot Quantity Tree +================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :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/12.0/stock_production_lot_quantity_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-12-0/stock-logistics-warehouse-12-0-stock_production_lot_quantity_tree + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/153/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to display the lot quantity on its tree view. + +**Table of contents** + +.. contents:: + :local: + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ACSONE SA/NV + +Contributors +~~~~~~~~~~~~ + +* Denis Roussel + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-rousseldenis| image:: https://github.com/rousseldenis.png?size=40px + :target: https://github.com/rousseldenis + :alt: rousseldenis + +Current `maintainer `__: + +|maintainer-rousseldenis| + +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/__init__.py b/stock_quant_expiration_date_tree/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/stock_quant_expiration_date_tree/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_quant_expiration_date_tree/__manifest__.py b/stock_quant_expiration_date_tree/__manifest__.py new file mode 100644 index 000000000..6416815c3 --- /dev/null +++ b/stock_quant_expiration_date_tree/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2021 Xtendoo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Stock Quant Expiration Date Tree", + "summary": """ + Allows to display expirations dates on stock quant tree view""", + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "Xtendoo, Odoo Community Association (OCA)", + "maintainers": ["Manuel Calero"], + "website": "https://github.com/OCA/stock-logistics-warehouse", + "depends": [ + "stock", + "product_expiry" + ], + "data": [ + "views/stock_quant.xml" + ], +} + diff --git a/stock_quant_expiration_date_tree/i18n/es.pot b/stock_quant_expiration_date_tree/i18n/es.pot new file mode 100644 index 000000000..29232d75e --- /dev/null +++ b/stock_quant_expiration_date_tree/i18n/es.pot @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_production_lot_quantity_tree +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-03-24 22:48+0000\n" +"PO-Revision-Date: 2021-03-24 22:48+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_production_lot_quantity_tree +#: model:ir.model,name:stock_production_lot_quantity_tree.model_stock_production_lot +msgid "Lot/Serial" +msgstr "Lote/Serie" + +#. module: stock_production_lot_quantity_tree +#: model:ir.model.fields,field_description:stock_production_lot_quantity_tree.field_stock_production_lot__product_qty +msgid "Quantity" +msgstr "Cantidad" + +#. module: stock_production_lot_quantity_tree +#: model_terms:ir.ui.view,arch_db:stock_production_lot_quantity_tree.search_product_lot_filter_inherit_product_expiry +msgid "With quantities" +msgstr "Con cantidades" diff --git a/stock_quant_expiration_date_tree/i18n/stock_production_lot_quantity_tree.pot b/stock_quant_expiration_date_tree/i18n/stock_production_lot_quantity_tree.pot new file mode 100644 index 000000000..6fb55b460 --- /dev/null +++ b/stock_quant_expiration_date_tree/i18n/stock_production_lot_quantity_tree.pot @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_production_lot_quantity_tree +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-03-24 22:48+0000\n" +"PO-Revision-Date: 2021-03-24 22:48+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: stock_production_lot_quantity_tree +#: model:ir.model,name:stock_production_lot_quantity_tree.model_stock_production_lot +msgid "Lot/Serial" +msgstr "" + +#. module: stock_production_lot_quantity_tree +#: model:ir.model.fields,field_description:stock_production_lot_quantity_tree.field_stock_production_lot__product_qty +msgid "Quantity" +msgstr "" + +#. module: stock_production_lot_quantity_tree +#: model_terms:ir.ui.view,arch_db:stock_production_lot_quantity_tree.search_product_lot_filter_inherit_product_expiry +msgid "With quantities" +msgstr "" diff --git a/stock_quant_expiration_date_tree/models/__init__.py b/stock_quant_expiration_date_tree/models/__init__.py new file mode 100644 index 000000000..70f8e6c8d --- /dev/null +++ b/stock_quant_expiration_date_tree/models/__init__.py @@ -0,0 +1 @@ +from . import stock_quant diff --git a/stock_quant_expiration_date_tree/models/stock_quant.py b/stock_quant_expiration_date_tree/models/stock_quant.py new file mode 100644 index 000000000..d2a9b0afc --- /dev/null +++ b/stock_quant_expiration_date_tree/models/stock_quant.py @@ -0,0 +1,25 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +# Copyright 2021 Xtendoo - Manuel Calero + +from odoo import api, fields, models + + +class StockQuant(models.Model): + _inherit = "stock.quant" + + life_date = fields.Datetime( + string='End of Life Date', + related='lot_id.life_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/readme/CONTRIBUTORS.rst b/stock_quant_expiration_date_tree/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..08a373a66 --- /dev/null +++ b/stock_quant_expiration_date_tree/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Manuel Calero diff --git a/stock_quant_expiration_date_tree/readme/DESCRIPTION.rst b/stock_quant_expiration_date_tree/readme/DESCRIPTION.rst new file mode 100644 index 000000000..21e9c7ca5 --- /dev/null +++ b/stock_quant_expiration_date_tree/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to display the life date on its tree view. diff --git a/stock_quant_expiration_date_tree/static/description/icon.png b/stock_quant_expiration_date_tree/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/stock_quant_expiration_date_tree/static/description/icon.png differ diff --git a/stock_quant_expiration_date_tree/static/description/index.html b/stock_quant_expiration_date_tree/static/description/index.html new file mode 100644 index 000000000..6985b572d --- /dev/null +++ b/stock_quant_expiration_date_tree/static/description/index.html @@ -0,0 +1,421 @@ + + + + + + +Stock Production Lot Quantity Tree + + + +
+

Stock Production Lot Quantity Tree

+ + +

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

+

This module allows to display the lot quantity on its tree view.

+

Table of contents

+ +
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainer:

+

rousseldenis

+

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 new file mode 100644 index 000000000..d78869b0b --- /dev/null +++ b/stock_quant_expiration_date_tree/views/stock_quant.xml @@ -0,0 +1,20 @@ + + + + + + stock.quant.tree.editable.inherit + stock.quant + + + + + + + + + + + +