Commit Graph

285 Commits (f8834106f4773b3b5b8514fe20a99980817a68df)

Author SHA1 Message Date
OCA-git-bot f8834106f4 mail_notification_custom_subject 15.0.1.0.1 2024-04-09 11:39:32 +02:00
OCA-git-bot 8afaee2f3b [UPD] README.rst 2024-04-09 11:39:32 +02:00
Jairo Llopis 36d7f7b8ef [BUILD] mail_notification_custom_subject: change maintainer 2024-04-09 11:39:32 +02:00
Jairo Llopis c284bafbc1 [FIX] mail_notification_custom_subject: do not require being admin to send messages
After installing the module, any user was required to have admin rights to be able to search across models.

This fix does just that search with sudo and returns back to non-sudo mode immediately after. This way, we don't need to increase permissions for everybody.

Tests now run unprivileged, to assert this problem never happens again.

@moduon MT-1644 MT-1645
2024-04-09 11:39:32 +02:00
Weblate 97d86d13c7 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-15.0/social-15.0-mail_notification_custom_subject
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_notification_custom_subject/
2024-04-09 11:39:32 +02:00
OCA-git-bot ae9c002cf5 [UPD] README.rst 2024-04-09 11:39:32 +02:00
oca-ci 4da22056f9 [UPD] Update mail_notification_custom_subject.pot 2024-04-09 11:39:32 +02:00
Víctor Martínez 254dc57e44 [MIG] mail_notification_custom_subject: Migration to 15.0
TT36470
2024-04-09 11:39:32 +02:00
Olga Marco 3522215b51 [FIX] mail_notification_custom_subject: Error modifying subtype_id
[IMP] update dotfiles [ci skip]
2024-04-09 11:39:32 +02:00
oca-travis 709d56631c [UPD] Update mail_notification_custom_subject.pot
[UPD] README.rst
2024-04-09 11:39:32 +02:00
Naglis Jonaitis 25c182822e [MIG] mail_notification_custom_subject: Migration to 14.0 2024-04-09 11:39:32 +02:00
Naglis Jonaitis 04734da384 [IMP] mail_notification_custom_subject: black, isort, prettier 2024-04-09 11:39:32 +02:00
Víctor Martínez 1eae3ba683 [IMP] mail_notification_custom_subject: Add comment to explain test_bad_template_does_not_break test 2024-04-09 11:39:32 +02:00
Carlos Roca 6fd81dafca [MIG] mail_notification_custom_subject: Migration to v13.0 2024-04-09 11:39:32 +02:00
Carlos Roca cec4c079c5 [IMP] mail_notification_custom_subject: black, isort, prettier 2024-04-09 11:39:32 +02:00
João Marques 7e44259b35 [ADD] mail_notification_custom_subject: Apply a custom subject to mail notifications
This module allows you to specify templates to override the subject on the notification
emails sent by Odoo.

TT27191

Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
2024-04-09 11:39:32 +02:00
OCA-git-bot 8727f61f8d [BOT] post-merge updates 2024-04-05 10:08:02 +00:00
oca-ci a52d58d97f [UPD] Update mail_activity_team.pot 2024-04-05 10:06:00 +00:00
OCA-git-bot d7db2ded9c Merge PR #1321 into 17.0
Signed-off-by gurneyalex
2024-04-05 10:04:14 +00:00
OCA-git-bot b9e9b23000 [BOT] post-merge updates 2024-03-28 13:27:26 +00:00
oca-ci 0b409151c4 [UPD] Update mass_mailing_partner.pot 2024-03-28 13:25:26 +00:00
oca-ci c83fe27205 [UPD] Update base_search_mail_content.pot 2024-03-28 13:25:24 +00:00
OCA-git-bot fd67a576d0 Merge PR #1326 into 17.0
Signed-off-by pedrobaeza
2024-03-28 13:23:38 +00:00
Mohamed Osman 005260d030 [MIG] mass_mailing_partner: Migration to 17.0 2024-03-27 16:18:43 +00:00
Mohamed Osman 7e9bb5dd5c [IMP] mass_mailing_partner: black, isort, prettier 2024-03-27 16:18:43 +00:00
mymage fa3fd52571 Translated using Weblate (Italian)
Currently translated at 100.0% (28 of 28 strings)

Translation: social-16.0/social-16.0-mass_mailing_partner
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner/it/
2024-03-27 16:18:43 +00:00
Ivorra78 024bb4ea7b Translated using Weblate (Spanish)
Currently translated at 100.0% (29 of 29 strings)

Translation: social-16.0/social-16.0-mass_mailing_partner
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner/es/
2024-03-27 16:18:43 +00:00
mymage 0f83ad197e Translated using Weblate (Italian)
Currently translated at 32.1% (9 of 28 strings)

Translation: social-16.0/social-16.0-mass_mailing_partner
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner/it/
2024-03-27 16:18:43 +00:00
Matjaz Mozetic cabd0246fb Translated using Weblate (Slovenian)
Currently translated at 32.1% (9 of 28 strings)

Translation: social-16.0/social-16.0-mass_mailing_partner
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner/sl/
2024-03-27 16:18:43 +00:00
mymage 296e558c23 Translated using Weblate (Italian)
Currently translated at 32.1% (9 of 28 strings)

Translation: social-16.0/social-16.0-mass_mailing_partner
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mass_mailing_partner/it/
2024-03-27 16:18:43 +00:00
Minh Chien 0407c7cc82 [MIG] mass_mailing_partner: Migration to 16.0 2024-03-27 16:18:43 +00:00
emagdalenaC2i 9cc4512320 [MIG] mass_mailing_partner: Migration to 15.0 2024-03-27 16:18:43 +00:00
david 0b62ef8fad [FIX] mass_mailing_partner: wrong company implementation
See issue https://github.com/OCA/social/issues/776
2024-03-27 16:18:43 +00:00
Areeb Siddiqi 23ee44861d [MIG] mass_mailing_partner: Migration to 14.0
[FIX] super(Class, self) changed to super() in mass_mailing_partners
2024-03-27 16:18:43 +00:00
Areeb Siddiqi 2009ce45a5 [IMP] mass_mailing_partner: black, isort, prettier 2024-03-27 16:18:43 +00:00
Alexandre D. Díaz a8c9914ced [FIX] mass_mailing_partner: Use correct button class
Before this commit, the buttons are displayed incorrectly in mobile dropdown buttons menu
2024-03-27 16:18:43 +00:00
Víctor Martínez 0ad5deb7ee [IMP+FIX] mass_mailing_partner: Add partner_name in error constrain message + Add test related to write with multi-partner + Add sudo() to prevent user without mailing access try to merge contacts 2024-03-27 16:18:43 +00:00
Pedro M. Baeza 157ee5d0de [FIX] mass_mailing_partner: Don't match partner if no email
It doesn't make sense and even more, it crashed.

Fixes #644
2024-03-27 16:18:43 +00:00
Víctor Martínez db5c37726e [FIX] mass_mailing_partner: Fix partner merge error (dupplicate mass_mailing contacts) 2024-03-27 16:18:43 +00:00
Jared Kipe 60b079cc6c [FIX] mass_mailing_partner: Unsubscribe should not unlink the subscription.
Before, on the backend if you check the `opt_out` checkbox and saving on a `mailing.contact`, the entire row (`mailing.contact.subscription`) would be unlinked.  Combined with `mass_mailing_list_dynamic` this means the contact would just be re-subscribed over and over.

After, check `opt_out` will fill `unsubscription_date` and the row will stay.  Tests in `mass_mailing_list_dynamic` pass.
2024-03-27 16:18:43 +00:00
Manuel Calero 434e10fbe5 [MIG] mass_mailing_partner: Migration to 13.0 2024-03-27 16:18:43 +00:00
Manuel Calero 9ab0f87b50 [IMP] mass_mailing_partner: black, isort 2024-03-27 16:18:43 +00:00
david 49cb0e39f9 [FIX] mass_mailing_partner: prevent singleton error 2024-03-27 16:18:43 +00:00
Tonow-c2c c3e75f7f24 [FIX][12.0][mass_mailing_partner] _check_email_mass_mailing_contacts loop not on self but partner 2024-03-27 16:18:43 +00:00
ernesto 77ed6ac218 mass_mailing_partner: Improve wizard behavior
For each partner, if already has a contact it's added to the selected
list, otherwise a new one is created
2024-03-27 16:18:43 +00:00
Sergio Teruel 1303fbe895 [12.0][MIG] mass_mailing_partner: Migration to v12.0 2024-03-27 16:18:43 +00:00
ernesto 1754ee19f2 [MIG] mass_mailing_partner: Migration to 11.0 2024-03-27 16:18:43 +00:00
David Vidal d13815b808 [FIX] mass_mailing_partner: compute fields performance (#271)
- In DB which use large amounts of records and intesive use of
mass_mailings, not optimized compute records lead to a drastical
decrease of performance
2024-03-27 16:18:43 +00:00
Pedro M. Baeza d8281a278e [FIX+IMP] mass_mailing_list_dynamic: tests, icons, filters... (#211)
* [FIX+IMP] mass_mailing_list_dynamic: tests, icons, filters...

* Brand new icon
* Added feature of loading an existing filter as criteria
* Tests as SavepointCase for optimizing times
* Tests in post-install for avoiding errors on res.partner not null constraints
  when several modules added them.
* Updated documentation.
* Fix mock in test for not commiting test data.

* [FIX] mass_mailing_list_dynamic: Wasn't able to create contacts in fully synced lists

Syncing context was being set in the wrong object. Added to test too.

* [FIX] mass_mailing_list_dynamic: Allow to write back vals from res.partner

Module mass_mailing_partner writes back certain values from partner to
mass_mailing_contact. Module should allow that write operation.
2024-03-27 16:18:43 +00:00
Jairo Llopis 5e74507d89 [FIX] mass_mailing_partner: Allow unprivileged users to edit partners
Without this patch, users without access to reading and editing mass mailing contact records are now unable to change a partner's name or email. They'd recieve an exception such as:

    AccessError: Sorry, you are not allowed to access this document. Only users with the following access level are currently allowed to do that:
    - Mass Mailing/User

    (Document model: mail.mass_mailing.contact)

Restrictive ACLs shouldn't restrict normal user operation nor DB consistency, so using sudo mode now and testing behavior.
2024-03-27 16:18:43 +00:00