Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Remove view invoice button from email template.

Odoberať

Get notified when there's activity on this post

This question has been flagged
8 Replies
20591 Zobrazenia
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
Zrušiť
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
Zrušiť
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
Zrušiť
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
Zrušiť
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
Zrušiť
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
Zrušiť
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
Zrušiť
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
Zrušiť
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
Zrušiť
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!

Registrácia
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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