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

Email template - list of followers

Odebírat

Get notified when there's activity on this post

This question has been flagged
pythonqwebemail
2 Odpovědi
3250 Zobrazení
Avatar
Dominik Lisiakiewicz

Good morning, I want a list of followers (email address) to be added at the beginning of every email coming from odoo, regardless of whether it is an internal user or not.
I found this code,

% for follower in object.message_follower_ids:

${follower.name} ${follower.email}

% endfor


 but I can't add it to the email template. Can anyone suggest how to get it?
I cannot modify files (enterprise version), only settings possible from the backend.

0
Avatar
Zrušit
Avatar
shubham shiroya
Nejlepší odpověď

check the below steps:

  1. In your any_think method, you are defining data as an empty dictionary. Then, you're assigning the result of self.read()[0] to data['form']. This implies that you want to pass the form data to the report. Make sure the read() method is returning the expected values. You can add some print statements to check the data['form'] before passing it to the report.

  2. The line return self.env.ref('nidal.wizreport').report_action(self, data=data) suggests that you have defined a report template with the XML ID 'nidal.wizreport'. Confirm that the XML ID is correct and that the report template exists. Also, check the report template to ensure it is properly configured to handle the data passed through the data variable.

  3. In the XML view of your wizard, the id attribute is missing for the field elements. Make sure to provide unique IDs for each field, as they are necessary for proper functioning and data binding.

  4. Check the report design and the report template associated with the XML ID 'nidal.wizreport'. Verify that the report template is correctly defined and that it handles the data passed through the data variable. Make sure you are using the correct placeholders and syntax to display the data in the report.


0
Avatar
Zrušit
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Nejlepší odpověď

Hi,

You can create a custom template in the xml file 










<?xml version="1.0" encoding="UTF-8"?>
<odoo>
        <record id="template_id" model="mail.template">
            <field name="name">Template name</field>
            <field name="model_id" ref="module_name.model_model_name"/>
            <field name="auto_delete" eval="False"/>
            <field name="email_from">{{ (object.env.user.login) }}</field>
            <field name="subject">Type your own subject</field>
            <field name="body_html">
                <![CDATA[
               <p>
               //Write your email details
               </p>
               ]]>
            </field>
        </record>
</odoo>



mail_template = self.env.ref(module_name.tempalte_id)
mail_template.send_mail(self
.id, force_send=True,email_values={
                             
'email_to':// email address})


If you have multiple people you can create it has in loop statements

Hope it helps

0
Avatar
Zrušit
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
Related Posts Odpovědi Zobrazení Aktivita
Issue with a new Product Label Template (102x102) in Odoo V17
development python qweb
Avatar
0
pro 24
1886
My custom report is changing when user Configured the Document Layout Vyřešeno
python qweb v14
Avatar
Avatar
1
led 23
3415
How to mapped same values in a list Vyřešeno
python qweb list
Avatar
Avatar
1
bře 21
4019
How can display my Compnay name in t-field in Qweb (v14)
python qweb v14
Avatar
Avatar
1
říj 20
5164
How to print invoices with there payments
python qweb odooV8
Avatar
Avatar
Avatar
Avatar
4
čvc 17
8042
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