Commit Graph

12 Commits (91be802fee1cadfe79f677376cd037fbae10c603)

Author SHA1 Message Date
Carlos Lopez 91be802fee [IMP] mail_show_follower: Add an option to exclude specific models from the CC note. 2025-02-11 15:34:01 +01:00
Carlos Lopez 1defcdf39c [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.
2025-02-11 15:34:01 +01:00
Vincent Van Rossem da1b7e16cc fixup! [16.0][FIX][REF] mail_show_follower: internal notes 2025-02-11 15:34:01 +01:00
Vincent Van Rossem 402a466165 [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`.
2025-02-11 15:34:01 +01:00
Jairo Llopis fb95064ecb [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
2025-02-11 15:34:00 +01:00
Eduardo De Miguel a4e328525e [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.
2025-02-11 15:34:00 +01:00
Eduardo De Miguel e1919a1b3e [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
2025-02-11 15:34:00 +01:00
Eduardo De Miguel 9fa9d9a744 [MIG] mail_show_follower: Migration to 15.0
[REF] Compact comment
2025-02-11 15:34:00 +01:00
Eduardo De Miguel 76e524527f [IMP] mail_show_follower: black, isort, prettier 2025-02-11 15:34:00 +01:00
eLBati f5b3c5981e FIX mail_show_follower: ValueError: Expected singleton: res.users 2025-02-11 15:34:00 +01:00
eLBati 27fa5f1f3e IMP mail_show_follower metadata and style
Display CC according to notification_type
2025-02-11 15:34:00 +01:00
Valentin Vinagre Urteaga dc58fe19b2 ADD mail_show_follower copied from https://github.com/sygel-technology/sy-server-backend/tree/12.0/mail_show_follower 2025-02-11 15:34:00 +01:00