Commit Graph

12 Commits (0b54346837f9de3818cb19cb01ffbb17a2eb75b5)

Author SHA1 Message Date
Carlos Lopez ad24aa2f93 [IMP] mail_show_follower: Add an option to exclude specific models from the CC note. 2024-11-15 02:21:40 +00:00
Carlos Lopez d298684306 [FIX] mail_show_follower: Use company from the document to render messages correctly + proper lang handle
In a multi-company environment, if one company uses the
show_followers_partner_format by partner_name and another company
uses partner_email, a user with permissions in both companies may
experience issues. If a document belongs to Company A, but the current
company is set to Company B, the message format is taken from the
current company (Company B) instead of the document’s company
(Company A). This fix ensures that the message format is rendered based
on the document's company.

It also fixes the lang handling for cases with False values.
2024-11-04 06:25:26 -05:00
Vincent Van Rossem fec04625b1 fixup! [16.0][FIX][REF] mail_show_follower: internal notes 2024-06-24 15:10:40 +02:00
Vincent Van Rossem 33cbb12a33 [16.0][FIX][REF] mail_show_follower: internal notes
This module aims to show the recipients of an email in the email header, but the previous implementation was not suitable for internal notes.

When **logging an internal note** with tagged users and/or partners, those specific recipients should be displayed
as well as the document's followers subscribed to this message subtype.

When **sending an email**, the recipients should be the document's followers.

This is achieved by using the union of `mail.mail`'s `recipient_ids` and `notified_partner_ids`.
2024-06-12 15:10:54 +02:00
Jairo Llopis fa29d05151 [FIX] mail_show_follower: failure when partner has more than 1 user
In the highly improbable but actually possible and real world case that a partner has more than one user associated, this change makes the emails able to send.

@moduon MT-1634
2023-09-21 07:53:31 +02:00
Eduardo De Miguel b4a223a357 [FIX] Add recipients of the all related messages on the notification
When using composer, doesn't include all recipients of the message on the notification.
2023-09-21 07:53:31 +02:00
Eduardo De Miguel cd1ca9c5bb [ADD] Customize notification appearance
Added settings to customize notification and translations to important parts of the message.

[FIX] Security fixes and simplified customization

Field `show_followers_partner_format` formatted with %(param)s
Removed CSS customizations

[FIX] README options

[FIX] Index.html configure

[FIX] Several changes

- Removed unnecesary properties on res_config_settings
- Markup safe on partner_format
- Use email_domain_extract instead own one
2023-09-21 07:53:31 +02:00
Eduardo De Miguel 6fe60c5dbb [MIG] mail_show_follower: Migration to 15.0
[REF] Compact comment
2023-09-21 07:53:31 +02:00
Eduardo De Miguel 19a7014124 [IMP] mail_show_follower: black, isort, prettier 2023-09-21 07:53:31 +02:00
eLBati de9b0fc010 FIX mail_show_follower: ValueError: Expected singleton: res.users 2023-09-21 07:53:30 +02:00
eLBati 5b4b12ec48 IMP mail_show_follower metadata and style
Display CC according to notification_type
2023-09-21 07:53:30 +02:00
Valentin Vinagre Urteaga e26b82eab5 ADD mail_show_follower copied from https://github.com/sygel-technology/sy-server-backend/tree/12.0/mail_show_follower 2023-09-21 07:53:30 +02:00