diff --git a/egd_account_due_date_extended/README.rst b/egd_account_due_date_extended/README.rst new file mode 100644 index 0000000..9844016 --- /dev/null +++ b/egd_account_due_date_extended/README.rst @@ -0,0 +1,63 @@ +============================ +EGD Account Full Date Format +============================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:defaa5f36c379426bffb091a671356f7a410d80779a1a966221f331338a901da + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-Escodoo%2Fegd--addons-lightgray.png?logo=github + :target: https://github.com/Escodoo/egd-addons/tree/14.0/egd_account_due_date_extended + :alt: Escodoo/egd-addons + +|badge1| |badge2| |badge3| + +This module customizes the supplier invoice dashboard by introducing a new field that displays the due date in the **full date format (dd/mm/yyyy)**. The default behavior of showing the remaining days until the due date is replaced with a static and clear date format, making it easier for users to understand and track invoice due dates. + +**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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Escodoo + +Contributors +~~~~~~~~~~~~ + +* `Escodoo `_: + + * Marcel Savegnago + * Kaynnan Lemes + +Maintainers +~~~~~~~~~~~ + +This module is part of the `Escodoo/egd-addons `_ project on GitHub. + +You are welcome to contribute. diff --git a/egd_account_due_date_extended/__init__.py b/egd_account_due_date_extended/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/egd_account_due_date_extended/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/egd_account_due_date_extended/__manifest__.py b/egd_account_due_date_extended/__manifest__.py new file mode 100644 index 0000000..242dd73 --- /dev/null +++ b/egd_account_due_date_extended/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2024 - TODAY, Escodoo +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "EGD Account Full Date Format", + "summary": """ + Display due date in dd/mm/yyyy""", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "Escodoo", + "website": "https://github.com/Escodoo/egd-addons", + "depends": ["account"], + "data": [ + "views/account_move.xml", + ], +} diff --git a/egd_account_due_date_extended/models/__init__.py b/egd_account_due_date_extended/models/__init__.py new file mode 100644 index 0000000..9c0a421 --- /dev/null +++ b/egd_account_due_date_extended/models/__init__.py @@ -0,0 +1 @@ +from . import account_move diff --git a/egd_account_due_date_extended/models/account_move.py b/egd_account_due_date_extended/models/account_move.py new file mode 100644 index 0000000..78a6aa0 --- /dev/null +++ b/egd_account_due_date_extended/models/account_move.py @@ -0,0 +1,23 @@ +# Copyright 2024 - TODAY, Kaynnan Lemes +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class AccountMove(models.Model): + + _inherit = "account.move" + + formatted_invoice_date_due = fields.Char( + string="Full Date Format (Due Date)", + compute="_compute_formatted_invoice_date_due", + ) + + def _compute_formatted_invoice_date_due(self): + for record in self: + if record.invoice_date_due: + record.formatted_invoice_date_due = record.env[ + "ir.qweb.field.date" + ].value_to_html(record.invoice_date_due, {"widget": "date"}) + else: + record.formatted_invoice_date_due = "" diff --git a/egd_account_due_date_extended/readme/CONTRIBUTORS.rst b/egd_account_due_date_extended/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..079da7f --- /dev/null +++ b/egd_account_due_date_extended/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Escodoo `_: + + * Marcel Savegnago + * Kaynnan Lemes diff --git a/egd_account_due_date_extended/readme/DESCRIPTION.rst b/egd_account_due_date_extended/readme/DESCRIPTION.rst new file mode 100644 index 0000000..285d6e0 --- /dev/null +++ b/egd_account_due_date_extended/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module customizes the supplier invoice dashboard by introducing a new field that displays the due date in the **full date format (dd/mm/yyyy)**. The default behavior of showing the remaining days until the due date is replaced with a static and clear date format, making it easier for users to understand and track invoice due dates. diff --git a/egd_account_due_date_extended/static/description/icon.png b/egd_account_due_date_extended/static/description/icon.png new file mode 100644 index 0000000..12ab005 Binary files /dev/null and b/egd_account_due_date_extended/static/description/icon.png differ diff --git a/egd_account_due_date_extended/static/description/index.html b/egd_account_due_date_extended/static/description/index.html new file mode 100644 index 0000000..9f7b7e4 --- /dev/null +++ b/egd_account_due_date_extended/static/description/index.html @@ -0,0 +1,420 @@ + + + + + +EGD Account Full Date Format + + + +
+

EGD Account Full Date Format

+ + +

Beta License: AGPL-3 Escodoo/egd-addons

+

This module customizes the supplier invoice dashboard by introducing a new field that displays the due date in the full date format (dd/mm/yyyy). The default behavior of showing the remaining days until the due date is replaced with a static and clear date format, making it easier for users to understand and track invoice due dates.

+

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

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Escodoo
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the Escodoo/egd-addons project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/egd_account_due_date_extended/views/account_move.xml b/egd_account_due_date_extended/views/account_move.xml new file mode 100644 index 0000000..ebe5924 --- /dev/null +++ b/egd_account_due_date_extended/views/account_move.xml @@ -0,0 +1,20 @@ + + + + + + + account.invoice.tree (in egd_account_due_date_extended) + account.move + + + + + + + + + diff --git a/setup/egd_account_due_date_extended/odoo/addons/egd_account_due_date_extended b/setup/egd_account_due_date_extended/odoo/addons/egd_account_due_date_extended new file mode 120000 index 0000000..4d95d9a --- /dev/null +++ b/setup/egd_account_due_date_extended/odoo/addons/egd_account_due_date_extended @@ -0,0 +1 @@ +../../../../egd_account_due_date_extended \ No newline at end of file diff --git a/setup/egd_account_due_date_extended/setup.py b/setup/egd_account_due_date_extended/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/egd_account_due_date_extended/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)