Most Odoo projects get the business logic right and then lose goodwill on something small. The quotation email lands in spam. The invoice reminder reads like a translated robot. Odoo email templates are not an afterthought feature. They are the last thing a customer sees before deciding whether to trust the document attached to it, and getting them right takes more than typing a subject line.
This is how we set up Odoo email templates in practice. We start with the mail server layer that decides whether a message arrives at all. Then we move to the placeholders that pull real data onto the page, and finally the bilingual structure that Thai and English customers both read as natural, not translated.
Start with the outgoing mail server, not the template
Before touching a single template, we check what server is actually sending the mail. Odoo lets you configure one or more outgoing mail servers under Settings > Technical > Email > Outgoing Mail Servers. This choice affects deliverability more than any wording decision inside the template itself.
A few things we verify on every project:
- The sending domain has correct SPF, DKIM and, ideally, DMARC records published in DNS. Without these, mail providers like Gmail and Outlook increasingly route the message straight to spam, regardless of content.
- The "from" address on transactional templates matches a domain the company actually controls. It should not be a generic odoo.com test address left over from a demo database.
- Bulk or marketing sends are routed through a separate server or provider account. A bounce spike from a newsletter can damage the sender reputation of the address customers rely on for their invoice.
- The default outgoing server set at company level matches what we expect. On multi-company databases it is common to find one company silently falling back to a server configured for another entity.
This part of the work has nothing to do with Odoo-specific skill. It is standard email infrastructure. Treating it as an afterthought is the single most common reason a perfectly good template never reaches anyone.
How Odoo email templates are structured
An email template in Odoo is tied to a model: invoice, sales order, purchase order, delivery, and so on. Each template stores a subject line, a body in the QWeb templating language, and optional attachments such as the invoice PDF or a signed quotation. The focus keyword here, Odoo email templates, really describes a family of records rather than one setting. Each document type behaves slightly differently when triggered.
Templates are reused across three common trigger points:
- Manual send from the document itself, where a user clicks Send by Email and reviews the content before it goes out.
- Automated send, for example an invoice email triggered at validation, or a sales order confirmation triggered at signature.
- Scheduled actions, such as a payment reminder sequence that checks overdue invoices on a daily cron and selects a template based on how many days the invoice has been overdue.
Knowing which trigger applies matters. Manual sends tolerate a slightly longer, more conversational template. Automated sends need to be shorter and dependable, since no human reviews them before they leave the system.
Placeholders: what to pull, what to leave out
Placeholders are the dynamic fields inside the QWeb body: the customer name, the invoice number, the amount due, the due date. The temptation is to add every available field because the editor makes it easy. We push back on that instinct for a specific reason. A placeholder resolves to nothing, or to "False", when the underlying field is empty. A visible gap or stray word in a sent email looks worse than a template with fewer fields.
A reliable rule we follow: only place a field in the template body if it is required at the model level, or if we can confirm it is populated for close to 100% of records that will trigger this template. Optional fields, like a secondary contact person or a custom note field, belong in a conditional block that only renders if the field has a value, not as a bare placeholder.
| Document | Safe placeholders | Use with caution |
|---|---|---|
| Invoice | partner name, invoice number, amount due, due date | payment term label if customized per contract |
| Sales order | customer name, order reference, order total, salesperson | delivery address if shipping to a third party |
| Delivery order | tracking reference, carrier name, expected date | customer notes field (often blank) |
| Payment reminder | days overdue, invoice list, total outstanding | last payment date (null for new customers) |
This is also where we point clients toward our Odoo customization services when the standard template structure is not enough. Conditional blocks, multi-currency formatting and per-partner branding rules usually require touching the underlying QWeb, and sometimes a small server-side method rather than the drag-and-drop editor. Teams weighing whether to extend the editor or write actual code can see our broader reasoning in configure first, code last.
Bilingual templates: why one template in two languages does not work
Odoo supports translating a template string by string. The system serves the version matching the partner's language if translations exist. In practice, a single template translated field-by-field often reads stiff in Thai. Sentence structure and the level of formality differ from the English original rather than mapping one to one.
We build two separate templates per document type instead of one translated template. One is a Thai version written with natural phrasing for Thai business correspondence. The other is an English version for international or English-preferring customers. The trigger logic then selects the template based on the partner's language field, which is a small server action or an automated action condition rather than a core override.
This has a real cost: twice the templates to maintain. Every wording change on an invoice reminder means editing two records instead of one. We accept that trade-off because the alternative undermines the professional tone the email is supposed to project. A single awkwardly-translated template rarely reads as intended.
A few patterns worth matching specifically for Thai customers:
- Reference the Thai tax invoice number alongside the Odoo-generated invoice number when e-Tax Invoice and e-Receipt documents are in use. Accounting teams on the receiving end will look for that reference first.
- Keep the Thai subject line shorter than the English one. Long subject lines truncate differently across Thai mail clients and can cut off the invoice number.
- Avoid literal translation of phrases like "Please find attached" that have no natural Thai equivalent. A native-sounding opening line reads better than a translated one.
Businesses running local marketplace channels alongside Odoo face a related version of this problem. Our post on Shopee order confirmation emails and stock sync covers how the same deliverability checks extend to channel-triggered messages.
Testing before go-live
Every template deserves a short test pass before it goes live for real customers. We treat this as a fixed step rather than something to skip when a project is behind schedule:
- Send a test email to at least two personal mailboxes (Gmail and Outlook, at minimum) and check the spam folder, not just the inbox.
- Confirm the PDF attachment generates correctly in both Thai and English company configurations if Thai legal text appears on the invoice layout.
- Trigger the template through its real automated path, not just the manual send button. Automated sends sometimes use a different context and can render placeholders differently.
- Check mobile rendering specifically. A two-column layout that looks fine on desktop often collapses badly on a phone screen, where most customers will actually open it.
None of this requires custom development in the majority of cases. It requires discipline: checking the mail server first, keeping placeholders to fields that are reliably populated, and accepting that two well-written bilingual templates beat one translated compromise. For teams running Shopee, Lazada or TikTok Shop alongside Odoo, the same deliverability checks apply to order confirmation emails triggered from those channels. Our guide to Lazada SKU mapping and stock reconciliation is worth reading if that email layer still needs auditing. If the mail server configuration itself feels unfamiliar, our Odoo support services page outlines how we handle that kind of setup work directly.



