Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] mail_activity_done: Migration to 18.0 #17

Open
wants to merge 38 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
8d7559e
[11.0][mail_activity_done] add new module to keep activities that
JordiBForgeFlow Aug 22, 2018
eae0af0
[MIG] Migrate module mail_activity_done to v12
AdriaGForgeFlow Jan 14, 2019
b7c60e0
[FIX] mail_activity_done: several fixes
MiquelRForgeFlow Mar 25, 2019
b3b9bac
[12.0][FIX] mail_activity_done module
AdriaGForgeFlow May 6, 2019
209a9a1
[FIX] search view
AdriaGForgeFlow May 7, 2019
91c7e79
[ADD] uninstall_hook to remove done activities
AdriaGForgeFlow May 7, 2019
798a656
[UPD] Version number
AdriaGForgeFlow May 10, 2019
bf70d10
[mail_activity_done] set activities as inactive when they have been c…
JordiBForgeFlow Jun 11, 2019
7aac7e1
[IMP]mail_activity_done: black, isort, prettier
manuelregidor Aug 13, 2021
8dd81bd
[MIG]mail_activity_done: Migration to 14.0
manuelregidor Aug 13, 2021
77126d9
[IMP] mail_activity_done: black, isort, prettier
BernatPForgeFlow Jan 19, 2022
bdeeeb4
[15.0][MIG] mail_activity_done: Migration to 15.0
BernatPForgeFlow Jan 19, 2022
1415312
[IMP] mail_activity_done: pre-commit stuff
ignissak Feb 1, 2023
a97678f
[MIG] mail_activity_done: Migration to 16.0
ignissak Feb 1, 2023
62fcd6b
[BOT] post-merge updates
OCA-git-bot Sep 27, 2023
8ab40cb
[FIX] mail_activity_done: patch _action_done in a more reliable way
hbrunn Sep 4, 2023
90f35f3
[BOT] post-merge updates
OCA-git-bot Sep 29, 2023
3c09309
Added translation using Weblate (Spanish)
Ivorra78 Nov 8, 2023
f901ace
Translated using Weblate (Spanish)
Ivorra78 Nov 8, 2023
fb98219
Added translation using Weblate (Italian)
mymage Dec 1, 2023
d6489a9
Translated using Weblate (Italian)
mymage Dec 7, 2023
3f1fbab
Added translation using Weblate (Finnish)
mlaitinen Jan 22, 2024
f894344
Translated using Weblate (Finnish)
mlaitinen Jan 22, 2024
69a84d2
Translated using Weblate (Finnish)
mlaitinen Jan 22, 2024
49cca05
Translated using Weblate (Finnish)
mlaitinen Jan 22, 2024
f9d8bf1
Added translation using Weblate (French)
houzefa-abba Mar 14, 2024
742ce94
Translated using Weblate (French)
houzefa-abba Mar 14, 2024
334ce35
[IMP] mail_activity_done: exclude completed activities from progress bar
Shamsidinkhon Mar 11, 2024
b649c82
[BOT] post-merge updates
OCA-git-bot Apr 1, 2024
b1e748c
[IMP] mail_activity_done: black, isort, prettier
vvrossem Jun 3, 2024
eb3356e
[MIG] mail_activity_done: Migration to 17.0
vvrossem Jun 5, 2024
243dc51
[FIX] mail_activity_done: Remove broken and apparently unused js file
vvrossem Jun 5, 2024
be6e757
[UPD] Update mail_activity_done.pot
Jul 22, 2024
f43c408
[BOT] post-merge updates
OCA-git-bot Jul 22, 2024
933d352
[UPD] Update mail_activity_done.pot
Jul 22, 2024
5dd648d
Update translation files
weblate Jul 22, 2024
495f95e
[IMP] mail_activity_done: pre-commit auto fixes
achulii Nov 27, 2024
5ae6a49
[MIG] mail_activity_done: Migration to 18.0
achulii Nov 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions mail_activity_done/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
==================
Mail Activity Done
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5a0ce87bede46ee3ef4aca69080182899705bb737283ce6f2e369921f635edf0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmail-lightgray.png?logo=github
:target: https://github.com/OCA/mail/tree/18.0/mail_activity_done
:alt: OCA/mail
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/mail-18-0/mail-18-0-mail_activity_done
: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/mail&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module implements the capability to keep activities that have been
completed, for future reporting, by setting them with the boolean
'Done'.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, you need to:

1. Access to an activity from the systray activities menu.
2. Once finished, open the activity and mark it as Done.

To check activities:

1. Go to Settings -> Technical -> Activities
2. To see finished activities filter by Completed Activities

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/mail/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 <https://github.com/OCA/mail/issues/new?body=module:%20mail_activity_done%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* ForgeFlow

Contributors
------------

- Jordi Ballester <[email protected]>
(`www.forgeflow.com <http://www.forgeflow.com>`__)
- Eduardo Magdalena <[email protected]> (C2i Change 2 improve
http://www.c2i.es)
- Radovan Skolnik <[email protected]> (https://www.kema.sk)
- Manuel Regidor <[email protected]> (https://www.sygel.es)
- Bernat Puig <[email protected]>
(`www.forgeflow.com <http://www.forgeflow.com>`__)

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.

This module is part of the `OCA/mail <https://github.com/OCA/mail/tree/18.0/mail_activity_done>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions mail_activity_done/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import pre_init_hook, uninstall_hook
14 changes: 14 additions & 0 deletions mail_activity_done/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2018-22 ForgeFlow <http://www.forgeflow.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
{
"name": "Mail Activity Done",
"version": "18.0.1.0.0",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"license": "LGPL-3",
"category": "Discuss",
"website": "https://github.com/OCA/mail",
"depends": ["mail"],
"data": ["views/mail_activity_views.xml"],
"pre_init_hook": "pre_init_hook",
"uninstall_hook": "uninstall_hook",
}
42 changes: 42 additions & 0 deletions mail_activity_done/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright 2018-22 ForgeFlow <http://www.forgeflow.com>
# Copyright 2018 Odoo, S.A.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).


def pre_init_hook(env):
"""The objective of this hook is to default to false all values of field
'done' of mail.activity
"""
cr = env.cr
cr.execute(
"""SELECT column_name
FROM information_schema.columns
WHERE table_name='mail_activity' AND
column_name='done'"""
)
if not cr.fetchone():
cr.execute(
"""
ALTER TABLE mail_activity ADD COLUMN done boolean;
"""
)

cr.execute(
"""
UPDATE mail_activity
SET done = False
"""
)


def uninstall_hook(env):
"""The objective of this hook is to remove all activities that are done
upon module uninstall
"""
cr = env.cr
cr.execute(

Check warning on line 37 in mail_activity_done/hooks.py

View check run for this annotation

Codecov / codecov/patch

mail_activity_done/hooks.py#L36-L37

Added lines #L36 - L37 were not covered by tests
"""
DELETE FROM mail_activity
WHERE done=True
"""
)
101 changes: 101 additions & 0 deletions mail_activity_done/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_activity_done
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-11-08 13:36+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__active
msgid "Active"
msgstr "Activo"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_account_bank_statement_line__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_journal__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_move__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_payment__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_setup_bank_manual_config__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity_mixin__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_mailing_mailing__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_product_pricelist__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_product_product__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_product_template__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_res_partner__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_res_partner_bank__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_res_users__activity_ids
msgid "Activities"
msgstr "Actividades"

#. module: mail_activity_done
#: model:ir.model,name:mail_activity_done.model_mail_activity
msgid "Activity"
msgstr "Actividad"

#. module: mail_activity_done
#: model:ir.model,name:mail_activity_done.model_mail_activity_mixin
msgid "Activity Mixin"
msgstr "Mezclador de Actividad"

#. module: mail_activity_done
#: model_terms:ir.ui.view,arch_db:mail_activity_done.mail_activity_view_search
#: model_terms:ir.ui.view,arch_db:mail_activity_done.res_partner_view_search_inherit_mail
msgid "Completed Activities"
msgstr "Actividades Completadas"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__date_done
msgid "Completed Date"
msgstr "Completado Fecha"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__done
#: model:ir.model.fields.selection,name:mail_activity_done.selection__mail_activity__state__done
msgid "Done"
msgstr "Hecho"

#. module: mail_activity_done
#: model_terms:ir.ui.view,arch_db:mail_activity_done.res_partner_view_search_inherit_mail
msgid "Open Activities"
msgstr "Actividades Abiertas"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__state
msgid "State"
msgstr "Estado"

#. module: mail_activity_done
#: model:ir.model,name:mail_activity_done.model_res_users
msgid "User"
msgstr "Usuario"

#, python-format
#~ msgid "%d days overdue"
#~ msgstr "%d días de retraso"

#, python-format
#~ msgid "Due in %d days"
#~ msgstr "Vencimiento en %d días"

#, python-format
#~ msgid "Today"
#~ msgstr "Hoy"

#, python-format
#~ msgid "Tomorrow"
#~ msgstr "Mañana"

#, python-format
#~ msgid "Yesterday"
#~ msgstr "Ayer"
101 changes: 101 additions & 0 deletions mail_activity_done/i18n/fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mail_activity_done
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-01-22 16:35+0000\n"
"Last-Translator: Miku Laitinen <[email protected]>\n"
"Language-Team: none\n"
"Language: fi\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: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__active
msgid "Active"
msgstr "Aktiivinen"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_account_bank_statement_line__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_journal__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_move__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_payment__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_account_setup_bank_manual_config__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity_mixin__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_mailing_mailing__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_product_pricelist__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_product_product__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_product_template__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_res_partner__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_res_partner_bank__activity_ids
#: model:ir.model.fields,field_description:mail_activity_done.field_res_users__activity_ids
msgid "Activities"
msgstr "Toimenpiteet"

#. module: mail_activity_done
#: model:ir.model,name:mail_activity_done.model_mail_activity
msgid "Activity"
msgstr "Toimenpide"

#. module: mail_activity_done
#: model:ir.model,name:mail_activity_done.model_mail_activity_mixin
msgid "Activity Mixin"
msgstr "Toimenpide-mixin"

#. module: mail_activity_done
#: model_terms:ir.ui.view,arch_db:mail_activity_done.mail_activity_view_search
#: model_terms:ir.ui.view,arch_db:mail_activity_done.res_partner_view_search_inherit_mail
msgid "Completed Activities"
msgstr "Tehdyt toimenpiteet"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__date_done
msgid "Completed Date"
msgstr "Merkattu tehdyksi"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__done
#: model:ir.model.fields.selection,name:mail_activity_done.selection__mail_activity__state__done
msgid "Done"
msgstr "Tehty"

#. module: mail_activity_done
#: model_terms:ir.ui.view,arch_db:mail_activity_done.res_partner_view_search_inherit_mail
msgid "Open Activities"
msgstr "Avoimet toimenpiteet"

#. module: mail_activity_done
#: model:ir.model.fields,field_description:mail_activity_done.field_mail_activity__state
msgid "State"
msgstr "Tila"

#. module: mail_activity_done
#: model:ir.model,name:mail_activity_done.model_res_users
msgid "User"
msgstr "Käyttäjä"

#, python-format
#~ msgid "%d days overdue"
#~ msgstr "%d päivää myöhässä"

#, python-format
#~ msgid "Due in %d days"
#~ msgstr "Erääntyy %d päivän päästä"

#, python-format
#~ msgid "Today"
#~ msgstr "Tänään"

#, python-format
#~ msgid "Tomorrow"
#~ msgstr "Huomenna"

#, python-format
#~ msgid "Yesterday"
#~ msgstr "Eilen"
Loading
Loading