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
    • Artificial Intelligence
    • 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
    • Property 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
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

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
accountingemailaccount.move
3 Replies
1083 Views
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
Discard
Avatar
Jyotin DRKDS INFOTECH
Best Answer
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
Discard
Avatar
Zehntech Technologies Inc.
Best Answer

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
Discard
Avatar
Codesphere Tech
Best Answer
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
Discard
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
Related Posts Replies Views Activity
Remove bank account from supplier
accounting account.move
Avatar
Avatar
1
Mar 25
4200
Forward facing email - v17 Solved
accounting email
Avatar
Avatar
2
Feb 24
1851
Mexican location, stamped to billing address. Odoo v14 enterprise
accounting account.move
Avatar
0
Nov 22
3297
Internal notes on Journal Entries Solved
accounting account.move journal_entry
Avatar
Avatar
1
Mar 16
7109
Section line on customer invoice not displayed in invoice lines (but appears in accounting entries)
accounting invoicing account.move odoo V18
Avatar
0
Dec 25
1325
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 Svenska ภาษาไทย 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