Commit Graph

188 Commits (2009ce45a528c838628c72766a86c5115d4df785)

Author SHA1 Message Date
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
David Vidal 6953201f2a [MIG] mass_mailing_partner: Migration to 10.0 2024-03-27 16:18:43 +00:00
Jairo Llopis bcac2ed7f9 [FIX] mass_mailing_partner: Several things:
* Exclude opt_out.

  Now opted-out records will not be counted in the "Mailing lists" smart button
  in the partner form.

* Avoid duplicate error.

  By indicating the exact `partner_id` and ensuring no contacts associated to it are found, you avoid possible duplication errors when several partners share the same name or email.
2024-03-27 16:18:43 +00:00
Antonio Espinosa b7ef9148e8 Link mail statistics to partner (#104)
[IMP] mass_mailing_partner: Link mail statistics to partner
2024-03-27 16:18:43 +00:00
Javier Iniesta e3f9bc0e73 mass_mailing_partner 2024-03-27 16:18:43 +00:00
OCA-git-bot 449852bef1 [BOT] post-merge updates 2024-03-25 07:44:13 +00:00
OCA-git-bot b16b65be2f Merge PR #1325 into 17.0
Signed-off-by pedrobaeza
2024-03-25 07:42:15 +00:00
Mohamed Osman 65e6f69908 [UPD] copier version 1.20 2024-03-20 11:03:58 +00:00
OCA-git-bot e2aaea4d85 [BOT] post-merge updates 2024-02-29 11:44:50 +00:00
oca-ci adc7e80d8b [UPD] Update mail_activity_board.pot 2024-02-29 11:42:51 +00:00
oca-ci 996030b72d [UPD] Update base_search_mail_content.pot 2024-02-29 11:42:50 +00:00
OCA-git-bot 1a8fba970b Merge PR #1284 into 17.0
Signed-off-by etobella
2024-02-29 11:41:08 +00:00
docker-odoo b24e056551 [MIG] mail_activity_board: Migration to 17.0 2024-02-16 17:35:20 +00:00
Franco Leyes 86119fada0 [IMP] mail_activity_board: pre-commit auto fixes 2024-02-16 17:35:20 +00:00
mymage af9a41fde1 Added translation using Weblate (Italian) 2024-02-16 17:35:20 +00:00
OCA-git-bot 4e157f44ce [BOT] post-merge updates 2024-02-16 17:35:20 +00:00
Yann Papouin f1e386a06a [FIX] mail_activity_board: Use valid field for user avatar
`image_small` field has been renamed to `image_small` since the use of `image.mixin`
2024-02-16 17:35:20 +00:00
Ivorra78 ad4e1278fd Translated using Weblate (Spanish)
Currently translated at 100.0% (22 of 22 strings)

Translation: social-16.0/social-16.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_board/es/
2024-02-16 17:35:20 +00:00
OCA-git-bot 69abe16cbf [UPD] README.rst 2024-02-16 17:35:20 +00:00
Houzéfa Abbasbhay 4ed6f07791 Translated using Weblate (French)
Currently translated at 95.4% (21 of 22 strings)

Translation: social-16.0/social-16.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_board/fr/
2024-02-16 17:35:20 +00:00
Weblate ac2b314890 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_board/
2024-02-16 17:35:20 +00:00
OCA-git-bot f137a69ae8 mail_activity_board 16.0.1.1.0 2024-02-16 17:35:20 +00:00
oca-ci 90db619398 [UPD] Update mail_activity_board.pot 2024-02-16 17:35:20 +00:00
Víctor Martínez b0c5f49769 [IMP] mail_activity_board: Add group so that the activity dashboard is only visible if the user has the permission.
TT43037
2024-02-16 17:35:20 +00:00
Weblate e94db6f942 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-16.0/social-16.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-16-0/social-16-0-mail_activity_board/
2024-02-16 17:35:20 +00:00
OCA-git-bot 5c77833fd9 [UPD] README.rst 2024-02-16 17:35:20 +00:00
oca-ci 31a7561139 [UPD] Update mail_activity_board.pot 2024-02-16 17:35:20 +00:00
augusto-weiss da60ac1256 [MIG] mail_activity_board: Migration to 16.0 2024-02-16 17:35:20 +00:00
OCA-git-bot f658f6ed45 mail_activity_board 15.0.1.1.1 2024-02-16 17:35:20 +00:00
AaronHForgeFlow bdde5ce902 [FIX] mail_activity_board: read access to ir.model for non admin
users when accessing records that inherit mail.activity mixing
2024-02-16 17:35:20 +00:00
jabelchi d3ef33daae Translated using Weblate (Catalan)
Currently translated at 90.0% (18 of 20 strings)

Translation: social-15.0/social-15.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_activity_board/ca/
2024-02-16 17:35:20 +00:00
jabelchi bdc5d9fe84 Added translation using Weblate (Catalan) 2024-02-16 17:35:20 +00:00
OCA Transbot a6e026e151 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: social-15.0/social-15.0-mail_activity_board
Translate-URL: https://translation.odoo-community.org/projects/social-15-0/social-15-0-mail_activity_board/
2024-02-16 17:35:20 +00:00
OCA-git-bot cc0da01d4f mail_activity_board 15.0.1.1.0 2024-02-16 17:35:20 +00:00
OCA-git-bot 00fa5a3633 [UPD] README.rst 2024-02-16 17:35:20 +00:00