Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profit organisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Setting up Email Notifications in Odoo 17.

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
emailautomatednotificationsautomaticallyActions
3 Antwoorden
12449 Weergaven
Avatar
Master

Hello everyone,
I'm currently in the process of configuring email notifications for certain key events. I would like to automate email notifications for the following scenarios:

  1. Notification for Unpaid Invoice: I want the system to automatically send an email to the client and the company director when an invoice becomes overdue and remains unpaid.

  2. Notification for Project Delay: I aim to have the project manager receive an email when any of our projects are delayed according to the planned schedule.

Does anyone have any advice or instructions on how to achieve this effectively within Odoo?

Any help would be greatly appreciated. Thank you in advance for your responses.


Best regards,


1
Avatar
Annuleer
Avatar
Niyas Raphy (Walnut Software Solutions)
Beste antwoord

HI,
Using automated actions in Odoo, you can achieve it. 




Also you can check the follow up levels in the accounting application for sending the reminder emails



Thanks

2
Avatar
Annuleer
Avatar
Master
Auteur Beste antwoord

Thank you guys, you did it, you always save me :)

0
Avatar
Annuleer
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Beste antwoord

Hi,

You can achieve this functionality using a scheduled action. You can send the email notification using triggering a scheduled action.


example:

1)First create a scheduled action in a XML file

 <record id="run_mail_notification" model="ir.cron">
        <field name="name">Invoice: Email Notification Unpaid</field>
<field name="interval_number">1</field>
<field name="interval_type">hours</field>
        <field name="numbercall">-1</field>
        <field name="user_id" ref="base.user_root"/>
        <field name="doall" eval="False"/>
        <field name="model_id" ref="model_account.move"/>
<field name="code">model.run_unpaid_invoice_notification()</field>
        <field name="state">code</field>
    </record>

2) Write the Python function to execute the scheduled action in the model account.move by inheriting the model account.move


def run_unpaid_invoice_notification(self):

    not_paid_invoices = self.env['account.move].search([('payment_state','=','not_paid')])

    for rec in not_paid_invoices:

         email_values = {

'email_cc': False,

                    'email_to': rec.partner_id.email,

                }

                mail_template = self.env.ref(

'module_name.unpaid_invoice_mail')

mail_template.send_mail(http://rec.id" target="_blank" data-saferedirecturl="rec.id,

" rel="ugc">https://www.google.com/url?q=http://rec.id&source=gmail&ust=1710908582329000&usg=AOvVaw2eTE3bY3BBixRqBli-r2Kl">rec.id,

                                                              email_values=email_values,

force_send=True)


3) Create a mail template


 <record id="unpaid_invoice_mail" model="mail.template">
        <field name="name">Invoice: Unpaid State</field>
<field name="email_from">{{user.email}}</field>
<field name="subject">{{http://object.name" target="_blank" data-saferedirecturl="object.name" rel="ugc">https://www.google.com/url?q=http://object.name&source=gmail&ust=1710908582329000&usg=AOvVaw1SOx5zJQ2B5zQDmrv50O0V">object.name}} is still unpaid</field>
<field name="model_id" ref="module_name.model_account_move"/>
        <field name="auto_delete" eval="True"/>
        <field name="body_html" type="html">
            <div>
                <p>
<t t-out="http://object.name" target="_blank" data-saferedirecturl="object.name"/>
 " rel="ugc">https://www.google.com/url?q=http://object.name&source=gmail&ust=1710908582329000&usg=AOvVaw1SOx5zJQ2B5zQDmrv50O0V">object.name"/>
                    Is still in Unpaid state,
                    <br/>
                </p>
            </div>
        </field>
    </record>


Please check with the above codes to send an email notification when the amount is not paid.


In the same way you can send notifications for project delay

Please refer to the below blogs also:

How to configure scheduled action in odoo 17

How to Create an Email Template in Odoo 17


Hope it helps

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How to automatically notify a partner when an item is received by the warehouse.
stock v8 email automated notifications
Avatar
0
jun. 15
4695
Automated Action Error
automated Actions
Avatar
0
sep. 23
2363
python code in automated actions Opgelost
automated Actions
Avatar
Avatar
2
mrt. 24
8863
Sending emails automatically Opgelost
email automatically
Avatar
Avatar
1
aug. 22
4090
odoo message notifications: wrong urls, change FROM and REPLY-TO
email notifications
Avatar
Avatar
2
sep. 20
5794
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 is een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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