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

How to adapt your Email Template for Invoice vs Refund (customer) ?

Odoberať

Get notified when there's activity on this post

This question has been flagged
quickstart11.0
1 Odpoveď
4522 Zobrazenia
Avatar
Audric Despontin (ade)

How to adapt your Email Template for Invoice vs Refund (customer) ?

0
Avatar
Zrušiť
Avatar
Audric Despontin (ade)
Autor Best Answer

Hello,


When sending a refund by email, the default template is not update as it should. 

If it is a refund, Odoo still shows Invoice in the email. 

This can mislead the customer. 


Object update: 

${object.company_id.name}  ${object.type in ('out_refund') and 'Refund' or 'Invoice'} (Ref ${object.number or 'n/a'})


Body update:

<div>

<p>Dear ${object.partner_id.name}

% set access_action = object.with_context(force_website=True).get_access_action()

% set is_online = access_action and access_action['type'] == 'ir.actions.act_url'

% set access_url = object.get_mail_url()


% if object.partner_id.parent_id:

    (<i>${object.partner_id.parent_id.name}</i>)

% endif

,</p>

<p>Here is, in attachment, your 

% if object.number:

% if object.type=='out_refund': 

refund <strong>${object.number}</strong>

% else:

invoice <strong>${object.number}</strong>

% endif

% else:

% if object.type=='out_refund':

refund

% else:

invoice

% endif

% endif

% if object.origin:

(with reference: ${object.origin})

% endif

amounting in <strong>${format_amount(object.amount_total, object.currency_id)}</strong>

from ${object.company_id.name}.

</p>


% if is_online:

    <br><br>

    <center>

      <a href="${access_url}" style="background-color: #1abc9c; padding: 20px; text-decoration: none; color: #fff; border-radius: 5px; font-size: 16px;" class="o_default_snippet_text">View Document</a>

    </center>

% endif

    <br><br>


% if object.type=='out_refund':

% if object.partner_id.bank_account_count != 0:

<p> Payment will be done on your bank account.</p>

% else:

<p>Please, send us your bank account details.</p>

%endif

%endif


% if object.state=='paid':

   <p>This invoice has been paid. If you are a direct debit customer we will debit your account on the due date of your invoice.</p> 

% else:

   <p>Please remit payment at your earliest convenience.</p>

% endif


<p>Thank you,</p>

<p style="color:#888888">

% if object.user_id and object.user_id.signature:

    ${object.user_id.signature | safe}

% endif

</p>

</div>

0
Avatar
Zrušiť
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
Related Posts Replies Zobrazenia Aktivita
What happens when a day of leave is displayed in decimal? (0,75 -> 1) Solved
quickstart 12.0 11.0
Avatar
Avatar
2
sep 24
4833
How to automate Customer Statement Follow-up levels Solved
accounting quickstart 11.0
Avatar
Avatar
2
máj 24
6883
Re-reconciling a bank statement line after it has been reconciled incorrectly Solved
quickstart Accounting 11.0
Avatar
Avatar
Avatar
2
aug 21
10515
How to use Attendance App to identify overtime? Solved
attendance quickstart 11.0
Avatar
1
máj 21
4659
Show price list on pos Dashbord
quickstart
Avatar
Avatar
1
máj 26
1772
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 Svenska ภาษาไทย 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