Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Discuss
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

Automated Action Not Triggering When Quotation Is Sent (state = “sent”) — CRM Stage Not Updating (Odoo 19)

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
actionconfigurationworkflow
2 Replies
254 Tampilan
Avatar
Yani Aimene
Hello everyone,

I'm trying to create a simple automated action in Odoo 19 to update the CRM stage of an opportunity when its related Sales Order (quotation) is sent by email.

Expected behavior:

When I click “Send by Email” on a quotation, the Sales Order state becomes “sent”, and the linked opportunity should automatically move to the stage “Devis envoyé” (Quotation Sent).
But the automated action never triggers, and the CRM stage never updates.

What I have done

Automated Action settings

Model: Sales Order (sale.order)

Trigger: On creation & update

Before update domain: All records

Apply on: state = sent (in the UI = “Soumission envoyée”)

On Update Fields: tried with and without selecting state

Action: Execute Python Code

Action is active

Python code used (no errors):

stage = env['crm.stage'].search([('name', '=', 'Devis envoyé')], limit=1)
for order in records:
    if not order.opportunity_id:
        continue
    if order.state == 'sent' and stage:
        order.opportunity_id.write({'stage_id': stage.id})

What is happening

Sending the quotation DOES change the Sales Order state to “sent”, confirmed in the UI.

The quotation IS linked to an opportunity (opportunity_id is not empty).

The automated action never triggers.

No error appears in the logs or UI.

Even a debug automated action that only does: order.message_post(body="DEBUG")
…does not post anything in the chatter.

This tells me the automated action is simply not running at all, even with no domains or filters.

What I have confirmed

Action is active.

Model is correct (sale.order).

The “sent” state corresponds to the value "Soumission envoyée” in the UI.

I tried versions with and without domains.

I tried “On update”, “On creation & update”, and “On update of field: state”.
Nothing triggers the action.

My questions

Is there a known issue in Odoo 19 where automated actions do NOT trigger on Sales Orders when the state changes from draft to sent?

Should "Send by Email" trigger an automated action on Sales Orders?

Does the email wizard update the record in a way that bypasses automated actions?

Is there another method recommended to react to the quotation being sent?

Is there a limitation in Odoo 19 Online / Enterprise that prevents some automated actions from executing?

Any help would be greatly appreciated


I’m simply trying to update the CRM stage when a quotation is sent — something that several Odoo forum posts suggest should work — but the automated action never fires, even with zero domain filters and a basic message_post() debug.

0
Avatar
Buang
Avatar
Ray Carnes (ray)
Jawaban Terbai

I just tested this and it worked:

stage = env['crm.stage'].search([('name', '=', 'Proposition')], limit=1)
for order in records:
if not order.opportunity_id:
continue
if order.state == 'sent' and stage:
order.opportunity_id.write({'stage_id': stage.id})
0
Avatar
Buang
Avatar
Kunjan Patel
Jawaban Terbai
Hello Yani Aimene,
I hope you are doing well

Why it doesn't work:
The "Send by Email" button changes state inside message_post() with tracking_disable=True, which bypasses automated actions.

Solution:
Create a custom module and override message_post:
from odoo import models
  class SaleOrder(models.Model):
      _inherit = 'sale.order'

      def message_post(self, **kwargs):
          result = super().message_post(**kwargs)
          if self.env.context.get('mark_so_as_sent'):
              stage = self.env['crm.stage'].search([('name', '=', 'Devis envoyé')], limit=1)
              if stage:
                  for order in self.filtered(lambda o: o.state == 'sent' and o.opportunity_id):
                      order.opportunity_id.stage_id = stage
          return result

I hope this information helps you

Thanks & Regards,
Kunjan Patel
0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
Issue with Callback Not Updating Properly When Order is Open in Odoo 17
action configuration workflow
Avatar
0
Nov 24
1660
How can I edit the Website?
action configuration
Avatar
Avatar
Avatar
2
Okt 25
815
Marketing Automation- campaign running but not emails sent.
configuration workflow
Avatar
Avatar
1
Okt 25
689
Link quotation emails to the original customer email thread
action workflow
Avatar
0
Agu 25
911
suppression site web
action configuration
Avatar
Avatar
2
Jul 25
1557
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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