diff --git a/database_age_cron/README.rst b/database_age_cron/README.rst new file mode 100644 index 000000000..e56134070 --- /dev/null +++ b/database_age_cron/README.rst @@ -0,0 +1,67 @@ +================= +Database Age Cron +================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-akretion%2Fak--odoo--incubator-lightgray.png?logo=github + :target: https://github.com/akretion/ak-odoo-incubator/tree/14.0/database_age_cron + :alt: akretion/ak-odoo-incubator + +|badge1| |badge2| |badge3| + +This module adds a simple cron that allows to know easily what is the age of the database + +You just have to check the `lastcall` date of the cron (via Odoo or via SQL) +to know when it ran for the last time. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To make it work, you will need to deactivate the cron once the database is not in production anymore. + +For instance with a script that runs: + +.. code:: sql + + UPDATE ir_cron SET active='f' WHERE cron_name = 'Database Age Cron'; + + +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 +~~~~~~~ + +* Akretion + +Maintainers +~~~~~~~~~~~ + +This module is part of the `akretion/ak-odoo-incubator `_ project on GitHub. + +You are welcome to contribute. diff --git a/database_age_cron/__init__.py b/database_age_cron/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/database_age_cron/__manifest__.py b/database_age_cron/__manifest__.py new file mode 100644 index 000000000..46113aaf3 --- /dev/null +++ b/database_age_cron/__manifest__.py @@ -0,0 +1,17 @@ +{ + "name": "Database Age Cron", + "summary": "Run a cron that determines database age", + "version": "16.0.1.0.0", + "category": "Uncategorized", + "website": "https://github.com/akretion/ak-odoo-incubator", + "author": " Akretion", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "base", + ], + "data": [ + "data/cron.xml", + ], +} diff --git a/database_age_cron/data/cron.xml b/database_age_cron/data/cron.xml new file mode 100644 index 000000000..5d2a556a0 --- /dev/null +++ b/database_age_cron/data/cron.xml @@ -0,0 +1,16 @@ + + + + + Database Age Cron + 1 + minutes + -1 + 10 + True + code + + pass + + + diff --git a/database_age_cron/readme/DESCRIPTION.rst b/database_age_cron/readme/DESCRIPTION.rst new file mode 100644 index 000000000..bb8b2ffbb --- /dev/null +++ b/database_age_cron/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module adds a simple cron that allows to know easily what is the age of the database + +You just have to check the `lastcall` date of the cron (via Odoo or via SQL) +to know when it ran for the last time. diff --git a/database_age_cron/readme/USAGE.rst b/database_age_cron/readme/USAGE.rst new file mode 100644 index 000000000..570602ee1 --- /dev/null +++ b/database_age_cron/readme/USAGE.rst @@ -0,0 +1,7 @@ +To make it work, you will need to deactivate the cron once the database is not in production anymore. + +For instance with a script that runs: + +.. code:: sql + + UPDATE ir_cron SET active='f' WHERE cron_name = 'Database Age Cron'; diff --git a/database_age_cron/static/description/index.html b/database_age_cron/static/description/index.html new file mode 100644 index 000000000..f33decc46 --- /dev/null +++ b/database_age_cron/static/description/index.html @@ -0,0 +1,418 @@ + + + + + + +Database Age Cron + + + +
+

Database Age Cron

+ + +

Beta License: AGPL-3 akretion/ak-odoo-incubator

+

This module adds a simple cron that allows to know easily what is the age of the database

+

You just have to check the lastcall date of the cron (via Odoo or via SQL) +to know when it ran for the last time.

+

Table of contents

+ +
+

Usage

+

To make it work, you will need to deactivate the cron once the database is not in production anymore.

+

For instance with a script that runs:

+
+UPDATE ir_cron SET active='f' WHERE cron_name = 'Database Age Cron';
+
+
+
+

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

+
    +
  • Akretion
  • +
+
+
+

Maintainers

+

This module is part of the akretion/ak-odoo-incubator project on GitHub.

+

You are welcome to contribute.

+
+
+
+ +