This question has been flagged
13 Replies
42028 Views

Hello,

I have started using openERP and whenever I send an email through Openerp, the recipient receive the email with the footer "Sent by XXX using OpenERP."

I don't know where I can remove this footer.

Can anyone help me ?

Thanks.

Avatar
Discard

Hi I have been searching for this answer all over the internet and i found nothing. So i sat hours wondering where it could be to be changed. Here is the solution: You go to the file /opt/odoo/addons/mail/mail_followers.py and search for 'Odoo'. Delete this: "using %(odoo)s" from line " sent_by = _('Sent by %(company)s using %(odoo)s') " Then under that - > Delete this whole line: 'odoo': "Odoo" Dont forget to remove the comma before this line next to 'company': company, So it should read: else: company = user.company_id.name sent_by = _('Sent by %(company)s') signature_company = '
%s' % (sent_by % { 'company': company }) Now restart Odoo server and then email invoice / quote to yourself to see its not there anymore

Best Answer

I think the best way is to revise translation string Sent by %(company)s using %(odoo)s to something else that you preferred. With this way, you get more benefits:

  1. No additional module required

  2. No core hack, hence no future source code update difficulty.

How to do it?

Navigate to Settings > Application Terms > Translated Terms and search old source for: Sent by %(company)s using %(odoo)s

Now, you can apply translation term with any that you want

Avatar
Discard

Im using odoo 15, there is no such translation string, they broke it up into two separate terms: "Sent by" and "using" so we have no control anymore over what is in between

Are there any other workarounds in odoo15?

Best Answer

Hello, 

There are 2 options :

1. Override and hide the parent "get_signature_footer" method in class of mail.notification ( in mail module ). By doing so when Odoo update anything in that method later, you will not able to get that latest code. Remove odoo content in following block.

        sent_by = _('Sent by %(company)s using %(odoo)s')

        signature_company = '<br /><small>%s</small>' % (sent_by % {

            'company': company,

            'odoo': "<a style='color:inherit' href='https://www.odoo.com/'>Odoo</a>"
        })

2. I know following way is not good but I choose this way to keep active Odoo standard method too. I have inherited and just remove the odoo content by standard string function of python ( find and replace ). 

def get_signature_footer(self, cr, uid, user_id, res_model=None, res_id=None, context=None, user_signature=True):
        footer=super(mail_notification,self).get_signature_footer(cr, uid, user_id, res_model=res_model, res_id=res_id, context=context, user_signature=user_signature)
        str=footer.replace("""using <a style='color:inherit' href='https://www.odoo.com/'>Odoo</a>""",' ') 
        return str

By going with 2nd way, I am still able to keep active Odoo main method. 

You can implement any of above 2 ways ! 

I am sure this will help you !

Avatar
Discard
Best Answer

You can try my modules, if you use odoo 8:

  • mail_delete_access_link -- deletes "About ..." or "Access ..." part of footer https://github.com/yelizariev/addons-yelizariev/blob/8.0/mail_delete_access_link/mail_delete_access_link.py 

  • mail_delete_sent_by_footer -- deletes "Sent by ..." part of footer https://github.com/yelizariev/addons-yelizariev/blob/8.0/mail_delete_sent_by_footer/mail_delete_sent_by_footer.py

  • mail_delete_odoo_footer -- wrapper for two modules above https://apps.odoo.com/apps/modules/8.0/mail_delete_odoo_footer

For odoo 9+  footer can be customized via Template

  • Activate developer mode (Top right-hand corner -> About) 

  • Navigate to Settings\Technical\Email\Templates

  • Select (set checkbox)  "Notification Email" record

  • click Action ->Export

  • add field "Body" to export fields

  • click "Export to Field"

  • open csv via your editor

  • Change footer as you need

  • Navigate to Settings\Technical\Email\Templates

  • click "Import"

  • Validate and Import your file

Avatar
Discard

I suddenly clicked "Convert as comment" and votes for my answer disappeared :-(

Changing the Body field from Odoo 9 affectes all the outgoing mail?

Best Answer

As far as I can read the code (see line 133), nothing has been foreseen to remove this sentence in the footer.

Avatar
Discard

Maybe a module can override this function? Not sure.

@frenoy.net I would prefer to use a module to override these default Odoo email templates. Do you know where I can find the default email template XML files for Odoo modules? I've been trying to search through github.com/odoo/odoo without much luck so far.

Best Answer

Thank you  Ivan Yelizariev.. your module helped me

Avatar
Discard
Best Answer

Would have been nice if Settings > Application Terms > Translated Terms worked, but it unfortunately didn't for me. Haven't restarted the ERP though (since we try not to "disturb" it in production usage).

Would be glad to hear from anyone who successfully trimmed the footnote by editing Translated Terms.

Thanks

Ashant Chalasani / euroblaze

Avatar
Discard
Best Answer

Have also look at this module: https://www.odoo.com/fr_FR/forum/aide-1/question/how-to-change-favicon-38363. Beside the mentioned feature, it also allows customizaing by each user individually

Avatar
Discard
Best Answer

 

 

Have you tried this ?

https://www.odoo.com/apps/modules/8.0/disable_openerp_online/

 

 

Avatar
Discard

This module is useful, but has no effect on email templates.