Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Intelligence artificielle
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

How to remove "view invoice" button from emails on Odoo 18 Online

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
accountingemailaccount.move
3 Réponses
1085 Vues
Avatar
Del Sur Inversiones, Sebastian Lemos

Hi, I can't find a way to get rid of the button "view invoice" in the email template "Invoice: Sending".

Already tried to edit the code in the template but it doesn't show a section for this button, only the part that start below.


Thanks in advance,

Sebastian

0
Avatar
Ignorer
Avatar
Jyotin DRKDS INFOTECH
Meilleure réponse
In Odoo 18, the "View Invoice" button in invoice emails comes from the mail template associated with the invoice. Here's how to remove it:

**Method 1: Edit the Mail Template (No Code)**

1. Go to **Settings → Technical → Email → Templates**
2. Search for the template named **"Invoice: Sending"** (or `account.email_template_edi_invoice`)
3. Edit the **Body HTML** and remove the button markup — look for something like:
```html
<a t-att-href="ctx.get('portal_url')" ...>View Invoice</a>
```
4. Save.

**Method 2: If you're on Odoo Online (SaaS)**

Since you mentioned **Odoo 18 Online**, you likely don't have full technical menu access. Try this:

1. Enable **Developer Mode** (Settings → scroll down → Activate Developer Mode)
2. Then navigate to **Settings → Technical → Email → Templates**
3. Find `account.email_template_edi_invoice` and edit the body

If the button is rendered via a sub-template or `_portal_link` mechanism rather than inline HTML, look in the template body for:

```xml
<t t-set="actions">
    ...button markup...
</t>
```

Remove or comment out the relevant block.

**Important note for Odoo Online:** You cannot create custom modules, but you *can* edit mail templates through the UI. However, be aware that Odoo updates may reset your changes on the SaaS platform. Document what you changed so you can re-apply after upgrades.

**Method 3: Override via Studio (if available)**

If you have the Studio app, you can sometimes customize email templates more safely, though for this specific case, direct template editing is more reliable.

After editing, send a test invoice email to yourself to verify the button is gone.

0
Avatar
Ignorer
Avatar
Zehntech Technologies Inc.
Meilleure réponse

Hi Sebastian,

In Odoo 18 Online, the “View Invoice” button in the Invoice: Sending email is usually automatically generated by Odoo to give customers portal access to their invoice. Because of this, it may not appear directly in the editable HTML of the email template, which is why you cannot see it in the code.

On Odoo Online (SaaS), removing this button through the template editor is generally not supported, since it is injected by the system. Possible workarounds include adjusting portal/payment settings or modifying the email flow, but full control typically requires customization (available on Odoo.sh or On-Premise environments).

Hope this works for you! Feel free to reach out for further discussion.

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Avatar
Ignorer
Avatar
Codesphere Tech
Meilleure réponse
Hello,

This is built using a dynamic method from the backend, but you can change it from here. However, please keep in mind that this template is also used by other modules. Also check the condition inside view code
Views → Mail: Mail Notification Layout Template -> find button_access
<t t-out="button_access['title']"/>
Hope this helps

Thanks.

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
Remove bank account from supplier
accounting account.move
Avatar
Avatar
1
mars 25
4202
Forward facing email - v17 Résolu
accounting email
Avatar
Avatar
2
févr. 24
1854
Mexican location, stamped to billing address. Odoo v14 enterprise
accounting account.move
Avatar
0
nov. 22
3300
Internal notes on Journal Entries Résolu
accounting account.move journal_entry
Avatar
Avatar
1
mars 16
7112
Section line on customer invoice not displayed in invoice lines (but appears in accounting entries)
accounting invoicing account.move odoo V18
Avatar
0
déc. 25
1326
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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