Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Limitations in Automation Rules (Odoo 17)

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
AutomatedActionsAutomationv17
2 Răspunsuri
5826 Vizualizări
Imagine profil
Chris TRINGHAM

In Odoo 16 and previous versions, it was very easy to use Automated Actions to create a record in a linked Model and set fields.  For example, to create an Analytic Account for a Sales Order in Odoo 15:


In Odoo 17, Automation Rules allow you to create a linked record, but do not allow you to set other fields.  So it will fail when trying to create an Analytic Account because it needs some fields to be set (including the Plan).

It is possible to write Python code for some of this, though (not being a Python programmer) I can't figure out how to create an Analytic Account and link it to the sales order.

Similar problem if you want to update multiple fields or use a Python expression rather than set a fixed value.

Also (as discussed elsewhere), only some triggers can be selected, though all of them still seem to be there!

Are these "improvements" because Automated Actions were too powerful or was it overlooked?  Or is there a solution I am missing?  

2
Imagine profil
Abandonează
Ricardo Gross

I hope it was only be overlooked and that it will be a solution/fix soon!

Chris TRINGHAM
Autor

For reference: https://github.com/odoo/odoo/pull/114352

Esraa Abu Amer

Hello,

can I ask if you use a execute code , do I have to have the custome plan ? if I am using odoo standard how can I create a new recored 

Tammie Morris

Help - I've been trying to create this but even with Ray's work around we still get an error that a mandatory field isn't being set? What am I missing?

Chris TRINGHAM
Autor

Hi Tammie - it should work if you set a user-defined default for the Plan field: https://odootricks.tips/user-defined-defaults/

Imagine profil
Ray Carnes (ray)
Cel mai bun răspuns

The issue here is that an Analytic Account has two required fields (Name and Plan) and the Automation Rules only allow you to specify a value for the Name.

If you have a User Defined Default setup for Plan, then the following Automation Rule works, updating through the linked field:


When using the UPDATE Action, you can switch from UPDATE to COMPUTE like this:

1
Imagine profil
Abandonează
Ray Carnes (ray)

In Odoo 19.0, we are bringing back "ON CREATE" and "ON CREATE AND EDIT" and removing "ON SAVE".

We are adding DUPLICATE and SEND WHATSAPP Actions.

Chris TRINGHAM
Autor

Thanks @Ray - but I think I'm missing something here. How do you create an action that is "Compute...."

Ray Carnes (ray)

@Chris, see the last part of my updated answer above.

Chris TRINGHAM
Autor

Thanks @Ray - and it's good news that some of the simplification to the UI in v17 is being reverted.

Imagine profil
Roeland Vandecan
Cel mai bun răspuns

Hey Esraa,


try this post:https://www.odoo.com/nl_NL/forum/help-1/server-action-create-record-in-v17-where-to-fill-in-the-target-model-field-values-data-to-write-246871

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
v17: Automation Rules - Trigger is missing?
Automation v17
Imagine profil
Imagine profil
Imagine profil
2
mar. 24
4196
Odoo 17: Alternative to deprecated "On Creation" for automated actions? Rezolvat
Studio AutomatedActions v17
Imagine profil
Imagine profil
Imagine profil
2
ian. 25
5258
Automated Action on Odoo 17
automated AutomatedActions v17
Imagine profil
Imagine profil
1
mar. 24
4659
Odoo 17 : Automation Rules (base.automation) not working correctly
Rules Automation v17
Imagine profil
Imagine profil
1
feb. 24
4379
automated actions creation using XML file Odoo 17
AutomatedActions Actions v17
Imagine profil
Imagine profil
1
feb. 24
3780
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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