diff --git a/stock_lot_production_date/README.rst b/stock_lot_production_date/README.rst new file mode 100644 index 00000000000..75181846f1b --- /dev/null +++ b/stock_lot_production_date/README.rst @@ -0,0 +1,108 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + +========================= +Stock Lot Production Date +========================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:ae4aada7c599c87c29c08417778504f32a40722c58e3fd41a6db2bb72f25da23 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/license-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%2Fproduct--attribute-lightgray.png?logo=github + :target: https://github.com/OCA/product-attribute/tree/19.0/stock_lot_production_date + :alt: OCA/product-attribute +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/product-attribute-19-0/product-attribute-19-0-stock_lot_production_date + :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/product-attribute&target_branch=19.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the possibility to set a production date on lots/serial +numbers. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +A new field *Production Date* is available on the lot/SN form: + +|image| + +.. |image| image:: https://raw.githubusercontent.com/OCA/stock-logistics-workflow/5c13b66f989ce3b02a2098cee272cc36fad49723/stock_lot_production_date/static/description/lot.png + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Camptocamp + +Contributors +------------ + +- Sébastien Alix + +Other credits +------------- + +**Financial support** + +- Cosanum + +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-atchuthan| image:: https://github.com/atchuthan.png?size=40px + :target: https://github.com/atchuthan + :alt: atchuthan +.. |maintainer-sebalix| image:: https://github.com/sebalix.png?size=40px + :target: https://github.com/sebalix + :alt: sebalix + +Current `maintainers `__: + +|maintainer-atchuthan| |maintainer-sebalix| + +This module is part of the `OCA/product-attribute `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/stock_lot_production_date/__init__.py b/stock_lot_production_date/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/stock_lot_production_date/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/stock_lot_production_date/__manifest__.py b/stock_lot_production_date/__manifest__.py new file mode 100644 index 00000000000..9033df8ce4a --- /dev/null +++ b/stock_lot_production_date/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) +{ + "name": "Stock Lot Production Date", + "Summary": "Set a production date on lot.", + "version": "19.0.1.0.0", + "author": "Camptocamp, Odoo Community Association (OCA)", + "maintainers": ["atchuthan", "sebalix"], + "website": "https://github.com/OCA/product-attribute", + "category": "Warehouse Management", + "depends": ["stock"], + "data": [ + "views/stock_lot.xml", + ], + "installable": True, + "license": "AGPL-3", +} diff --git a/stock_lot_production_date/i18n/ca.po b/stock_lot_production_date/i18n/ca.po new file mode 100644 index 00000000000..ae603b5c469 --- /dev/null +++ b/stock_lot_production_date/i18n/ca.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_lot_production_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-11-23 12:25+0000\n" +"Last-Translator: Eugeni Chafer \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: stock_lot_production_date +#: model:ir.model,name:stock_lot_production_date.model_stock_lot +msgid "Lot/Serial" +msgstr "Lot/Núm.Serie" + +#. module: stock_lot_production_date +#: model:ir.model.fields,field_description:stock_lot_production_date.field_stock_lot__production_date +msgid "Production Date" +msgstr "Data de producció" + +#. module: stock_lot_production_date +#: model:ir.model.fields,help:stock_lot_production_date.field_stock_lot__production_date +msgid "" +"This is the date when the goods with this lot/serial number have been " +"produced." +msgstr "" +"Aquesta és la data en la qual es van produir els productes amb aquest lot/" +"número de sèrie." diff --git a/stock_lot_production_date/i18n/es.po b/stock_lot_production_date/i18n/es.po new file mode 100644 index 00000000000..1ad0464ddd4 --- /dev/null +++ b/stock_lot_production_date/i18n/es.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_lot_production_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-01-30 16:35+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: stock_lot_production_date +#: model:ir.model,name:stock_lot_production_date.model_stock_lot +msgid "Lot/Serial" +msgstr "Lote / Serie" + +#. module: stock_lot_production_date +#: model:ir.model.fields,field_description:stock_lot_production_date.field_stock_lot__production_date +msgid "Production Date" +msgstr "Fecha de Producción" + +#. module: stock_lot_production_date +#: model:ir.model.fields,help:stock_lot_production_date.field_stock_lot__production_date +msgid "" +"This is the date when the goods with this lot/serial number have been " +"produced." +msgstr "" +"Es la fecha en la que se han producido las mercancías con este número de " +"lote/serie." diff --git a/stock_lot_production_date/i18n/fr.po b/stock_lot_production_date/i18n/fr.po new file mode 100644 index 00000000000..6dc7197cdfc --- /dev/null +++ b/stock_lot_production_date/i18n/fr.po @@ -0,0 +1,32 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_lot_production_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" + +#. module: stock_lot_production_date +#: model:ir.model,name:stock_lot_production_date.model_stock_lot +msgid "Lot/Serial" +msgstr "" + +#. module: stock_lot_production_date +#: model:ir.model.fields,field_description:stock_lot_production_date.field_stock_lot__production_date +msgid "Production Date" +msgstr "" + +#. module: stock_lot_production_date +#: model:ir.model.fields,help:stock_lot_production_date.field_stock_lot__production_date +msgid "" +"This is the date when the goods with this lot/serial number have been " +"produced." +msgstr "" diff --git a/stock_lot_production_date/i18n/it.po b/stock_lot_production_date/i18n/it.po new file mode 100644 index 00000000000..53ab61235bc --- /dev/null +++ b/stock_lot_production_date/i18n/it.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_lot_production_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-11-17 09:33+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: stock_lot_production_date +#: model:ir.model,name:stock_lot_production_date.model_stock_lot +msgid "Lot/Serial" +msgstr "Lotto/seriale" + +#. module: stock_lot_production_date +#: model:ir.model.fields,field_description:stock_lot_production_date.field_stock_lot__production_date +msgid "Production Date" +msgstr "Data produzione" + +#. module: stock_lot_production_date +#: model:ir.model.fields,help:stock_lot_production_date.field_stock_lot__production_date +msgid "" +"This is the date when the goods with this lot/serial number have been " +"produced." +msgstr "" +"Questa è la data quando la merce con questo numero di lotto/serie è stata " +"prodotta." diff --git a/stock_lot_production_date/i18n/stock_lot_production_date.pot b/stock_lot_production_date/i18n/stock_lot_production_date.pot new file mode 100644 index 00000000000..6d4af34b7b6 --- /dev/null +++ b/stock_lot_production_date/i18n/stock_lot_production_date.pot @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_lot_production_date +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \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_lot_production_date +#: model:ir.model,name:stock_lot_production_date.model_stock_lot +msgid "Lot/Serial" +msgstr "" + +#. module: stock_lot_production_date +#: model:ir.model.fields,field_description:stock_lot_production_date.field_stock_lot__production_date +msgid "Production Date" +msgstr "" + +#. module: stock_lot_production_date +#: model:ir.model.fields,help:stock_lot_production_date.field_stock_lot__production_date +msgid "" +"This is the date when the goods with this lot/serial number have been " +"produced." +msgstr "" diff --git a/stock_lot_production_date/models/__init__.py b/stock_lot_production_date/models/__init__.py new file mode 100644 index 00000000000..ee1c64fbcd3 --- /dev/null +++ b/stock_lot_production_date/models/__init__.py @@ -0,0 +1 @@ +from . import stock_lot diff --git a/stock_lot_production_date/models/stock_lot.py b/stock_lot_production_date/models/stock_lot.py new file mode 100644 index 00000000000..d62fb75665c --- /dev/null +++ b/stock_lot_production_date/models/stock_lot.py @@ -0,0 +1,15 @@ +# Copyright 2022 Camptocamp SA +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) + +from odoo import fields, models + + +class StockProductionLot(models.Model): + _inherit = "stock.lot" + + production_date = fields.Datetime( + help=( + "This is the date when the goods with this " + "lot/serial number have been produced." + ) + ) diff --git a/stock_lot_production_date/pyproject.toml b/stock_lot_production_date/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/stock_lot_production_date/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/stock_lot_production_date/readme/CONTRIBUTORS.md b/stock_lot_production_date/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..7cb3de16d07 --- /dev/null +++ b/stock_lot_production_date/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Sébastien Alix \<\> diff --git a/stock_lot_production_date/readme/CREDITS.md b/stock_lot_production_date/readme/CREDITS.md new file mode 100644 index 00000000000..2d0a4600ba2 --- /dev/null +++ b/stock_lot_production_date/readme/CREDITS.md @@ -0,0 +1,3 @@ +**Financial support** + +- Cosanum diff --git a/stock_lot_production_date/readme/DESCRIPTION.md b/stock_lot_production_date/readme/DESCRIPTION.md new file mode 100644 index 00000000000..214c91d6ed6 --- /dev/null +++ b/stock_lot_production_date/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module adds the possibility to set a production date on lots/serial +numbers. diff --git a/stock_lot_production_date/readme/USAGE.md b/stock_lot_production_date/readme/USAGE.md new file mode 100644 index 00000000000..66cdfd9bb7f --- /dev/null +++ b/stock_lot_production_date/readme/USAGE.md @@ -0,0 +1,3 @@ +A new field *Production Date* is available on the lot/SN form: + +![image](https://raw.githubusercontent.com/OCA/stock-logistics-workflow/5c13b66f989ce3b02a2098cee272cc36fad49723/stock_lot_production_date/static/description/lot.png) diff --git a/stock_lot_production_date/static/description/icon.png b/stock_lot_production_date/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/stock_lot_production_date/static/description/icon.png differ diff --git a/stock_lot_production_date/static/description/index.html b/stock_lot_production_date/static/description/index.html new file mode 100644 index 00000000000..92e60754ce5 --- /dev/null +++ b/stock_lot_production_date/static/description/index.html @@ -0,0 +1,446 @@ + + + + + +README.rst + + + +
+ + + +Odoo Community Association + +
+

Stock Lot Production Date

+ +

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

+

This module adds the possibility to set a production date on lots/serial +numbers.

+

Table of contents

+ +
+

Usage

+

A new field Production Date is available on the lot/SN form:

+

image

+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Camptocamp
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

Financial support

+
    +
  • Cosanum
  • +
+
+
+

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 maintainers:

+

atchuthan sebalix

+

This module is part of the OCA/product-attribute project on GitHub.

+

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

+
+
+
+
+ + diff --git a/stock_lot_production_date/static/description/lot.png b/stock_lot_production_date/static/description/lot.png new file mode 100644 index 00000000000..14b5ab7e271 Binary files /dev/null and b/stock_lot_production_date/static/description/lot.png differ diff --git a/stock_lot_production_date/views/stock_lot.xml b/stock_lot_production_date/views/stock_lot.xml new file mode 100644 index 00000000000..e1618fe9cb3 --- /dev/null +++ b/stock_lot_production_date/views/stock_lot.xml @@ -0,0 +1,15 @@ + + + + + stock.lot.form.inherit + stock.lot + + + + + + + +