Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Remove view invoice button from email template.

Subscribe

Get notified when there's activity on this post

This question has been flagged
8 Replies
20585 Views
Avatar
Joris Bakx

When I send an invoice there appears an purple button in the email that gets send to the customer. I cannot find the button in a template so I wonder is there a way to remove this button? 

0
Avatar
Discard
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Best Answer

Hi Joris,

You can remove the button part of the code in the e-mail template that is named "Invoicing: Invoice email". You can find it under Settings > Technical > E-mail > Templates (needs developer mode on) and by then searching on the name "Invoicing: Invoice email". Open up the template and then click on the translation button at the right:


This will open up all translations for this e-mail template. Find the term for your language and edit the field "Translation value". In this column remove the part for the button (which is between the % if is_online) statement:


Finally save the translation, reload the page and you'll see that the button is gone from the e-mail now.
P.S: You will need to do this for all your languages that are not English. The e-mail that is being sent is defined by the language set on the customer so it will render that translation.

Regards,
Yenthe

2
Avatar
Discard
Maureen

Got the same issue as Grip ICT... any solution?

Avatar
Wojciech Nadobnik
Best Answer

Hello there,

I was dealing with the same trouble, and I've realized there is another way to remove the button (without source code edition). You just have to enter developer mode, then go for technical settings->user interface->views, search for "  Mail: Pay Now mail notification template" and remove code lines in question.

Best regards,

Wojciech Nadobnik

3
Avatar
Discard
Avatar
daan curvers
Best Answer

Hi, 

I have the same problem as Grip ICT and Maureen: the part with  % if is_online is not in the template, but the button stil shows up. 

Wouldnt be so much of a problem, but the link on the button is leading to a Page not Found error, so we really cant use the mail feature right now. 

Any help would be appreciated!

1
Avatar
Discard
daan curvers

OK, I have found a solution (meddling with the source code, however):

The base template for the mails is in /addons/mail/data/mail_data.xml

There, I deleted:

"<div t-if="is_online and not record._context.get('proforma')" style="margin: 32px 0px 32px 0px; text-align: center;">

<a t-att-href="access_url"

style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">

<t t-esc="access_name"/>

</a>

</div>

<div style="margin: 0px; padding: 0px; font-size:13px;">

Best regards,

</div>

"

(starting at line number 259; in template "Mail: Pay Now mail notification template")

Then, you have to 'upgrade' the mail module (goto apps -> search for mail -> three dots -> select 'Upgrade').

As stated above: this is meddling with the source code, something I don't recommend, but I don't have the knowledge, nor the skills, to override this with a custom module :-)

Avatar
Luis Dueñas
Best Answer

In Odoo V16 the view is: Mail: mail notification layout template.

In my case I've added a style="display:none; in the tr tag

0
Avatar
Discard
Avatar
Frédéric PANNETIER
Best Answer

Hi I find a better solution than  Wojciech Nadobnik to solve this issue by adding only 2 words

In settings->user interface->views, search for "Mail: Pay Now mail notification template"

Find and add "false and " like I write below in "bold" :

< t t-out="message.body"/ >
< div t-if="false and is_online and not record._context.get('proforma')" style="margin: 32px 0px 32px 0px; text-align: center;" >


So if you need to cancel your choice, you only have to delete "false and "

Best regards

0
Avatar
Discard
Avatar
Guy Clerx
Best Answer

Actually I found a much easier solution.
Although it concerns editing a small part of the source code, within Odoo(14).
In developer mode go to settings>Technical>User Interface>views
Filter "notification"
Edit the view "Purchase: Confirmation mail notification template".
Delete the following part of code below:



And you're done. The button in ALL mails is gone. In quotation, order, purchase order etc.
Mind you, this is absolutely not the prettiest way but only the fastest way to a solution.




0
Avatar
Discard
Avatar
Joris Bakx
Best Answer

Hi guys,

I didnt resolve the issue because i cant find the translate button. What I did find was this https://jorisbakx.stackstorage.com/s/pFc2WpIF97Mqe19

But when i try to delete access_url it gives a warning that I cant delete this column.

How do I delete this? If I need to use Phyton please give a specific answer (not the best programmer).


Kind regards,

Joris Bakx

0
Avatar
Discard
Avatar
Gripict BV
Best Answer

Hi guys,

I would also like to remove that button but somehow in my odoo system i don't see "Invoicing: Invoice email". If i search for invoice i have to templates. see below image.

If i than open Invoice: Send by email and press Edit and press that translate button is see the options and field you also stated. 

But the part (which is between the % if is_online) is not there. But still the customer gets an email with that button in it.

What am i doing wrong.

Br, Norbert

sorry, somehow i cannot add images to this answer!! please see remarks with links to the 1st and the 2nd image.


0
Avatar
Discard
Gripict BV

https://gripict.com/wp-content/uploads/2019/03/eerste.JPG

Gripict BV

https://gripict.com/wp-content/uploads/2019/03/laatste.jpg

Maureen

Got the same issue... any solution?

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now