-
-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[15.0][ADD] mail_hide_footer #1600
base: 15.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about mail_hide_footer_signature
as the module name?
r'<p\s*style\s*=\s*["\']color:\s*#555555;\s*margin-top:\s*32px;["\']>' | ||
r"\s*Sent.*?</p>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a bit too specific and fragile. I think it may be safer to go with template inheritance.
bb77b55
to
38de628
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, please change the module name to mail_hide_footer
, removing the _signature
part.
Please also update the PR title accordingly.
inherit_id="mail.message_notification_email" | ||
> | ||
<xpath | ||
expr="//div[@t-out='signature']/following-sibling::p[1]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we try this, so that we don't depend on the position of the signature <div>
?
expr="//div[@t-out='signature']/following-sibling::p[1]" | |
expr="//span[@t-if='company.name']/parent::p" |
@AungKoKoLin1997 Can you please add tests. |
38de628
to
3642a5b
Compare
This module allows hiding the email footer for a specific model by enabling the
hide_email_footer
option.@qrtl QT4979