Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

How to call a server action depending of the state of the record ?

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
localhoststudio
1 Antworten
5530 Ansichten
Avatar
Mandresy Randriatavy

Hi,

I started using Docker to create a local instance of Odoo but I can't download the Studio App.. I realised that the Automated Action option create a Server Action to call but I don't understand how it's detect the state of the record to call the action dependending of if it's a new record, an update, a deletion etc..

I don't want to go into the code because with the Dev Mode + Studio + Attachements + Assets I can do all the things without the need of coding (my head is also in 3 differents languages at the same time so it's burning the head to switch everytime, so let's not talk about adding Python) so it's allow me to go fast and work in multple project..

Does someone have an answer to the way it's detect the state ?


Yours faithfully,

RANDRIATAVY Mandresy

0
Avatar
Verwerfen
Peter Park

Yes, it is possible to call a server action depending on the state of the record. Odoo allows you to use triggers to detect when a record is created, modified, or deleted. You can then use the appropriate server action to respond accordingly.

To set up a trigger for a record, you need to go to the Settings page and select Automated Actions. From there, you can set up a trigger for a particular record. You can choose which action to take when the record is created, modified, or deleted. You can also specify what type of action to take (e.g. create a task, send an email, etc.).

Once you have configured the trigger, you can then create a server action and specify the conditions that must be met for it to be executed. In the Conditions tab, you can select the record state (created, modified, or deleted). When the record meets the conditions, the server action will be triggered and the action will take place.

I hope this has been helpful in understanding how to call a server action depending on the state of the record. you want to call depending of the record state.

Click “Save” and you are done.

Now, whenever the state of the record is changed, the server action will be called automatically.

Mandresy Randriatavy
Autor

Thanks you Peter spark, but the thing is without Studio the option Automated Action are unavailable..

Mandresy Randriatavy
Autor

Peter Park*

Bhavin Patel

To call a server action in Odoo depending on the state of the record, you can use Automated Actions. Automated Actions are a way to automate certain actions in Odoo based on specific events or conditions.

To set up an Automated Action that calls a server action depending on the state of the record, follow these steps:

Go to the model that you want to create the Automated Action for (e.g. Sales Order, Purchase Order, etc.).
Open the "Automation" tab in the model's configuration.
Click on "Create" to create a new Automated Action.
Give the Automated Action a name and select the event that should trigger the action (e.g. "On Creation", "On Update", etc.).
In the "Conditions" section, define the conditions that must be met in order for the Automated Action to be triggered. For example, you can specify that the server action should only be called if a certain field has a specific value, or if a related record meets certain criteria.
In the "Actions" section, select "Create a Server Action" and choose the server action that you want to execute when the Automated Action is triggered. You can specify additional parameters to pass to the server action, such as the record ID or values of specific fields.
Save the Automated Action.

When the specified event occurs and the conditions are met, the Automated Action will trigger and execute the server action. The server action can then perform various actions based on the state of the record, such as sending an email, updating a record, or creating a new record.

Avatar
Bhavin Patel
Beste Antwort

When creating an Automated Action in Odoo, you can configure it to trigger on specific events, such as when a new record is created, an existing record is updated, or a record is deleted.

To do this, you can set the "Trigger Condition" field in the Automated Action configuration to one of the following values:

On Creation
On Update
On Deletion
On Change

When you select one of these options, the Automated Action will be triggered based on the corresponding event. For example, if you select "On Creation", the Automated Action will be triggered whenever a new record is created.

Under the "Action to Do" field, you can then select the "Server Action" option, which allows you to create a new server action that will be executed when the Automated Action is triggered. The server action can perform various actions based on the event that triggered the Automated Action, such as sending an email, updating a record, or creating a new record.

Regarding the Studio App, it is possible that it is not available in your Docker instance of Odoo because it may require additional dependencies or configurations that are not included in the Docker image. If you require the Studio App, you may want to consider setting up a local instance of Odoo outside of Docker, or contacting the Odoo support team for assistance with installing the Studio App in your Docker instance.

1
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
debit and credit in currency
studio
Avatar
Avatar
1
Nov. 25
2080
Menu's with different default filter Gelöst
studio
Avatar
Avatar
1
Juli 25
2171
Digest mails - any good resources for Studio Gelöst
studio
Avatar
Avatar
2
März 25
2333
Payment terms format change
studio
Avatar
0
Feb. 25
1896
V18 of odoo, How to add a computed field in a stock report? Example: Total weight of my available product.
studio
Avatar
0
Feb. 25
2366
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Ausbildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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