Commit Graph

108 Commits (caa33a349e0913f32ae383e8a010f65ce1fa11f8)

Author SHA1 Message Date
Jesús Alan Ramos Rodríguez 809b5143ac Translated using Weblate (Spanish (Mexico))
Currently translated at 11.5% (13 of 113 strings)

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/es_MX/
2020-07-30 01:46:26 +00:00
OCA Transbot 51319265c9 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2020-07-23 11:20:59 +00:00
OCA-git-bot 8342ae08e3 mail_tracking 12.0.2.1.5 2020-07-23 11:20:42 +00:00
oca-travis c1c2625054 [UPD] Update mail_tracking.pot 2020-07-23 11:07:46 +00:00
Jairo Llopis fa7cf1ef80 [FIX] mail_tracking: performance fix
When searching for failed messages, [this line][1] made Odoo search messages in 2 steps:

1. Find which `mail.tracking.email` records are in those states.
2. Find which of them belong to the present `mail.message` records.

Step 2 could take a long time if there were a lot of failures in a DB. In our proven case, this made loading the `res.partner` form view take about ~6s per partner. It was also slowing down other views.

With this simple fix, [that nasty line linked above][1] is solved with just one query like this:

```SQL
SELECT "mail_message".id FROM "mail_tracking_email" as "mail_message__mail_tracking_ids","mail_message"
WHERE ("mail_message"."id"="mail_message__mail_tracking_ids"."maiL_message_id") AND (((("mail_message"."model" = 'res.partner')  AND ("mail_message"."mail_tracking_needs_action" = true))  AND  ("mail_message__mail_tracking_ids"."state" in ('rejected','error','bounced','soft-bounced','spam')))  AND  ("mail_message"."res_id" in (1000)))
ORDER BY "mail_message"."id" DESC
```

Thus this makes the forms load at normal speed again.

[1]: 8bd98212b8/mail_tracking/models/mail_thread.py (L25)
2020-07-23 12:53:26 +02:00
OCA Transbot 72c9c811b0 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2020-06-30 08:19:01 +00:00
oca-travis 1cfab65886 [UPD] Update mail_tracking.pot 2020-06-30 08:07:50 +00:00
OCA-git-bot e1dd26d83e mail_tracking 12.0.2.1.4 2020-06-26 11:37:42 +00:00
Jairo Llopis 50f0e6a41d [FIX] mail_tracking: do not slurp exceptions
This code chunk is expected to raise. Slurping it doesn't help upstream methods that rely on these exceptions.

@Tecnativa TT24457
2020-06-24 10:48:00 +01:00
OCA Transbot 4adde96308 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2020-05-07 17:13:07 +00:00
oca-travis 404f3935ec [UPD] Update mail_tracking.pot 2020-05-07 17:01:22 +00:00
OCA Transbot 2e74d2e925 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2020-04-22 15:10:21 +00:00
OCA-git-bot 4c5ce311d7 mail_tracking 12.0.2.1.3 2020-04-22 15:10:06 +00:00
oca-travis b0bd82593f [UPD] Update mail_tracking.pot 2020-04-22 14:59:22 +00:00
Alexandre Díaz 29b6ee1e1e [IMP] mail_tracking: Ignore catchall 2020-04-22 16:26:08 +02:00
OCA-git-bot d59b7eabc9 mail_tracking 12.0.2.1.2 2020-03-31 12:52:52 +00:00
OCA-git-bot 4413be3e63 Merge PR #531 into 12.0
Signed-off-by Yajo
2020-03-31 12:42:48 +00:00
Matjaz Mozetic 3411a1376c Translated using Weblate (Slovenian)
Currently translated at 100.0% (112 of 112 strings)

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/sl/
2020-03-30 22:13:59 +00:00
Uku Lagle d9ad346484 [FIX] mail_tracking: do not warn not found if already opened
The state will be 'opened' after first time email is opened. Each
successive open triggered warning, because state was already 'opened'
and thus did not match domain state in (sent, delivered).

resolves #530
2020-03-30 19:41:27 +03:00
OCA-git-bot 8d985d8da9 [UPD] README.rst 2020-03-29 06:13:53 +00:00
Alexandre Díaz 599d470142 [IMP] mail_tracking: Test 'to' and named emails 2020-03-26 20:43:45 +01:00
OCA-git-bot 7f3623f2ce mail_tracking 12.0.2.1.1 2020-03-25 15:38:43 +00:00
Alexandre Díaz d5f3483eec [IMP] mail_tracking: Use 'self' directly 2020-03-25 15:40:25 +01:00
OCA Transbot 2480c282da Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2020-03-24 18:37:31 +00:00
OCA-git-bot b578f5aaa9 mail_tracking 12.0.2.1.0 2020-03-24 18:37:17 +00:00
OCA-git-bot 8e938b4cca [UPD] README.rst 2020-03-24 18:37:17 +00:00
oca-travis 37d5b1e7f4 [UPD] Update mail_tracking.pot 2020-03-24 18:25:09 +00:00
Alexandre Díaz 4f2018471e [IMP] mail_tracking: Store To recipients and omit aliases 2020-03-24 18:32:03 +01:00
Matjaz Mozetic b2abeca6e3 Translated using Weblate (Slovenian)
Currently translated at 100.0% (108 of 108 strings)

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/sl/
2020-03-19 10:13:54 +00:00
Pedro Castro Silva f1036e4220 Translated using Weblate (Portuguese)
Currently translated at 97.2% (105 of 108 strings)

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/pt/
2020-03-02 17:13:47 +00:00
OCA-git-bot 1f4c9976bd mail_tracking 12.0.2.0.2 2019-12-09 20:53:29 +00:00
Alexandre Díaz d389d7f8f7 [FIX] mail_tracking: Changed injection method for 'failed_message_ids' field
Before this commit, some methods with views crashes trying to
process 'failed_message_ids' field.
After this commit the 'failed_message_ids' field description
is properly generated.
2019-12-09 15:45:47 +01:00
OCA Transbot 0192ae49bd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2019-11-17 16:00:29 +00:00
OCA-git-bot 387ecb2579 mail_tracking 12.0.2.0.1 2019-11-17 16:00:16 +00:00
oca-travis 4ffa13974a [UPD] Update mail_tracking.pot 2019-11-17 15:49:05 +00:00
Alexandre Díaz 68173a18b0 [FIX] mail_tracking: Refresh thread widget when sets a message as reviewed
Previous this commit, failed messages widget data wasn't updated properly when you
set as reviewed/retry the last message displayed.

This commit resolve the problem and improves the "set as reviewed" action to avoid
multi-user inconsistencies (don't toggle the value).
2019-11-15 20:55:41 +01:00
OCA Transbot da91b48b59 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-12.0/social-12.0-mail_tracking
Translate-URL: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking/
2019-11-13 11:47:56 +00:00
OCA-git-bot ec6a55a3f6 mail_tracking 12.0.2.0.0 2019-11-13 11:47:45 +00:00
OCA-git-bot 2ce637ce77 [UPD] README.rst 2019-11-13 11:47:45 +00:00
oca-travis ad62b1d209 [UPD] Update mail_tracking.pot 2019-11-13 11:06:55 +00:00
Alexandre Díaz d050805c7d fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-11-12 18:26:53 +01:00
Alexandre Díaz f4b56004a9 fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-11-07 12:53:57 +01:00
Alexandre Díaz 032499297c fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-11-06 02:44:01 +01:00
Alexandre Díaz f6a561fe07 fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-10-31 18:56:33 +01:00
Alexandre Díaz 714983bdae fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-10-31 14:46:08 +01:00
Alexandre Díaz 322a3e0437 fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-10-30 19:24:47 +01:00
Alexandre Díaz 9a18de6229 fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-10-29 13:21:00 +01:00
Alexandre Díaz 3a729cf544 fixup! [IMP] mail_tracking: Failed Messages to 12.0 2019-10-29 13:01:21 +01:00
Alexandre Díaz 293dd39ff6 [IMP] mail_tracking: Failed Messages to 12.0 2019-10-25 20:15:44 +02:00
Alexandre Díaz 3aba1d476a [IMP] mail_tracking: translations 2019-10-21 12:24:54 +02:00