Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Remove view invoice button from email template.

Odebírat

Get notified when there's activity on this post

This question has been flagged
8 Odpovědi
20589 Zobrazení
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šit
Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Nejlepší odpověď

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šit
Maureen

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

Avatar
Wojciech Nadobnik
Nejlepší odpověď

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šit
Avatar
daan curvers
Nejlepší odpověď

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šit
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
Nejlepší odpověď

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šit
Avatar
Frédéric PANNETIER
Nejlepší odpověď

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šit
Avatar
Guy Clerx
Nejlepší odpověď

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šit
Avatar
Joris Bakx
Nejlepší odpověď

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šit
Avatar
Gripict BV
Nejlepší odpověď

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šit
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!

Přihlásit se
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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