Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

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

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
actionconfigurationworkflow
2 Replies
312 Rodiniai
Portretas
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
Portretas
Atmesti
Portretas
Ray Carnes (ray)
Best Answer

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
Portretas
Atmesti
Portretas
Kunjan Patel
Best Answer
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
Portretas
Atmesti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registracija
Related Posts Replies Rodiniai Veikla
Issue with Callback Not Updating Properly When Order is Open in Odoo 17
action configuration workflow
Portretas
0
lapkr. 24
1680
How can I edit the Website?
action configuration
Portretas
Portretas
Portretas
2
spal. 25
820
Marketing Automation- campaign running but not emails sent.
configuration workflow
Portretas
Portretas
1
spal. 25
700
Link quotation emails to the original customer email thread
action workflow
Portretas
0
rugp. 25
944
suppression site web
action configuration
Portretas
Portretas
2
liep. 25
1563
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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