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í
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • 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
    • Services for Partners
    • 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

Issue with Digest Emails Showing Incorrect Data for One Company

Odebírat

Get notified when there's activity on this post

This question has been flagged
opportunitiessalescrmemailrevenueodoodigestodoo17digest.digestdigest emailsodoo v17Bank & Cash Moves
2 Odpovědi
1064 Zobrazení
Avatar
Sibelle Ibri

I’m facing an issue with digest emails in Odoo. We have two companies set up, and each company is supposed to receive its own separate digest email. However, for one of the companies, the data in the digest email is not correct.

The KPIs included in the digest email are:

  • Revenue
  • All Sales
  • Opportunities Won
  • Bank & Cash Moves

For the company with incorrect data:

  • There is no data available for All Sales, Opportunities Won, and Bank & Cash Moves.
  • The Revenue value is displayed in AED instead of USD, and there’s another USD value next to it. We need to convert the AED value to USD.

I’ve checked the configurations and everything seems fine, but the data is still incorrect for this company. Can anyone suggest what might be causing this discrepancy and how to fix it?

0
Avatar
Zrušit
Avatar
Gracious Joseph
Nejlepší odpověď

The issue with incorrect data in digest emails for one of your companies in Odoo could be related to configuration, data synchronization, or currency settings. Let’s troubleshoot step by step and resolve the problem:

1. Verify Company-Specific Settings

Digest emails are company-specific, so incorrect data can arise if the configuration is not aligned with the company settings.

Steps to Check:

  1. Enable Debug Mode:
    • Go to Settings > Activate Developer Mode.
  2. Check Company Assignment:
    • Navigate to Settings > Users & Companies > Companies.
    • Open the affected company and verify:
      • The currency is set correctly (e.g., USD).
      • The related journals, accounts, and warehouses are properly configured for the company.
  3. Digest Configuration:
    • Go to Settings > Technical > Automation > Scheduled Actions.
    • Search for Digest Emails.
    • Ensure that the digest email is configured to display metrics specific to the affected company.

2. Investigate Data Sources for Metrics

Each KPI (e.g., Revenue, Opportunities Won, Bank & Cash Moves) in the digest email pulls data from specific models. Ensure the data is available and correctly recorded for the affected company.

Metrics and Data Sources:

  • Revenue:
    • Source: Invoices in Accounting > Invoices.
    • Verify that invoices for the affected company have:
      • The correct company set on each invoice.
      • The correct currency (e.g., AED or USD).
    • If the currency is incorrect, ensure exchange rates are set up (see Step 3).
  • All Sales:
    • Source: Sales orders in Sales > Orders.
    • Ensure sales orders for the affected company are confirmed and linked to the correct company.
  • Opportunities Won:
    • Source: CRM leads/opportunities in CRM > Opportunities.
    • Check that opportunities for the affected company:
      • Have the Won stage applied.
      • Are assigned to the correct company.
  • Bank & Cash Moves:
    • Source: Journals in Accounting > Journals.
    • Verify that bank and cash transactions are posted to journals associated with the correct company.

3. Check and Configure Multi-Currency Settings

The discrepancy between AED and USD values in the Revenue metric might be caused by currency configuration issues.

Steps to Fix:

  1. Enable Multi-Currency:
    • Go to Settings > Accounting.
    • Enable Multi-Currency if it isn’t already enabled.
  2. Set Exchange Rates:
    • Navigate to Accounting > Configuration > Currencies.
    • Open AED and USD, and ensure exchange rates are up to date.
    • Update rates if necessary:
      • Go to Accounting > Configuration > Settings.
      • Enable automatic exchange rate fetching.
  3. Ensure Correct Currency on Transactions:
    • Check invoices, journals, and sales orders for the affected company to confirm they are recorded in AED or USD as expected.
  4. Test Conversion:
    • If the Revenue value is being displayed in AED but needs to be converted to USD:
      • Navigate to the invoice or sales order in question.
      • Validate whether the AED value is correctly converted to USD using the set exchange rate.

4. Ensure Digest Email is Fetching the Correct Data

The digest email relies on digest.digest configurations. Misalignment between the email configuration and the company-specific data might cause incorrect values.

Steps to Fix:

  1. Review Digest Email Settings:
    • Navigate to Settings > Technical > Digest > Digest Emails.
    • Open the digest email configuration for the affected company.
    • Verify:
      • The metrics are correctly defined (e.g., Revenue, All Sales).
      • The company filter is applied.
  2. Check the Python Code (if customized):
    • If the digest email has been customized, ensure the code correctly fetches data for the company.
    • Example:
      revenue = self.env['account.move'].search([
          ('move_type', '=', 'out_invoice'),
          ('company_id', '=', company.id),
          ('currency_id', '=', usd_currency_id)
      ]).mapped('amount_total')
      

5. Troubleshoot Currency Conversion in Digest

To ensure Revenue values are displayed correctly in USD:

  1. Navigate to Settings > Technical > Digest > Digest Emails.
  2. Look for the Revenue metric's computation logic.
  3. If the currency mismatch persists, add conversion logic:
    usd_amount = self.env['res.currency']._convert(
        amount_in_aed,
        usd_currency,
        company,
        fields.Date.today()
    )
    

6. Test and Validate

After implementing the above changes:

  1. Force a Digest Email:
    • Manually trigger the digest email:
      • Go to Settings > Technical > Scheduled Actions > Digest Emails.
      • Click Run Manually.
    • Verify that the email displays the correct data.
  2. Cross-Check Values:
    • Compare the values in the digest email with records in Odoo (e.g., Sales Orders, Invoices).

7. Common Pitfalls

  • Incorrect Journal Assignments: Ensure bank and cash journals are linked to the correct company.
  • Data Inconsistencies: Check that sales orders, invoices, and opportunities explicitly belong to the affected company.
  • Currency Configuration Issues: Always set the base currency correctly for each company.

Conclusion

By verifying company-specific configurations, ensuring correct data sources, and properly handling multi-currency settings, you can resolve the discrepancies in digest emails. Let me know if you need more help with specific configurations!

0
Avatar
Zrušit
Sibelle Ibri
Autor

I’ve gone through the steps you mentioned and reviewed the system settings, but I’m still unsure about a few things:

Customization: We don’t have any customizations beyond the conversion rate logic. However, I’m not sure if this might be affecting the data being displayed in the digest emails. Could the conversion handling possibly be causing discrepancies in the figures?

Multiple Companies: We have two companies with different data (such as currencies and financial records). Could this difference in company setup be affecting the data shown in the digest emails? I’m not sure if the system handles multiple companies with different configurations properly when generating the email.

Could you provide some guidance on whether the conversion rate or the presence of two different companies could be causing these issues? Any suggestions on how to proceed would be greatly appreciated!

Thanks in advance for your help.

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
limiting the sales cycle to a salesperson?
opportunities sales crm
Avatar
Avatar
1
bře 15
4686
Change email model from "email_from" to "reply_to"
opportunities crm email leads
Avatar
0
led 22
3685
Is their a way to turn an email to me into a lead / opportunity Vyřešeno
opportunities sales email alias odoo10
Avatar
Avatar
Avatar
Avatar
3
dub 24
11712
How to call create method of Purchase.Order from create method of Sale.Order?
purchase sales crm odoo v15
Avatar
0
zář 22
4320
How to set up e-mail in Opportunity/lead? Vyřešeno
sales crm email lead incomingemail
Avatar
Avatar
1
čvn 22
3724
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