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-profitorganisatie
    • 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

Error at setting an automated action in Odoo studio v16 online

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
sale.order.linesales.orderMissingErrorAutomatedActionsodoo16features
1 Beantwoorden
2456 Weergaven
Avatar
JOSE CARLOS Sanchez

Hi. I'm trying to set an automated action in the Sales Order model that creates a new sales order line (for an existing product) every time I add a specific sales order line with the product_template_id called Project A.

For example, when I create a new sales order and then add the product Project A, and then save it, it should automatically add the product Set Up to my lines. 

I configured the automated actions like this:

Model: Sales Order Line

Trigger: On Update

Apply on: Match records with the rule: "Product Template>Name=Project A"

Action To Do: Create a New Record

Target model: Sales Order Line

Data to Write:
​Field: Order Reference (Sales Order Line)
​Evaluation Type: Python expression
​Record:
​Value: record.id

​Field: Product Template (Sales Order Line)
​Evaluation Type: Reference
​Record: Set Up
​Value: 6

 

With this configuration, I encounter the following issue: 

Missing Record: Record does not exist or has been deleted (Record: sale order(145), User: 14

 

I have been testing, and I can't get this to work. Could someone help me? Thank you.


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

Hi,

It seems like the issue might be related to how the automated action is triggered and the configuration of the action itself. Here's how you can troubleshoot and potentially fix the problem:

  1. Trigger Condition: Instead of using "On Update" as the trigger condition, consider using "On Create" or "Before Update" depending on your specific requirements. This ensures that the action is triggered when a new sales order line is created or updated, which is likely when you want the Set Up product line to be added.
  2. Apply On Condition: Ensure that the "Apply on" condition is correctly set to "Match records with the rule: Product Template > Name = Project A". This ensures that the action is applied only to sales order lines with the specified product template.
  3. Data to Write: Check the values you are providing for the "Order Reference" and "Product Template" fields. Ensure that the "Order Reference" field is correctly mapped to the sales order line's order reference, and the "Product Template" field is set to the correct product template ID for the Set Up product.
  4. Record and Evaluation Type: Verify the evaluation type for each field. For the "Order Reference" field, use the Python expression record.order_id.id to correctly reference the sales order's ID. For the "Product Template" field, ensure that you're providing the correct product template ID for the Set Up product.
  5. Error Message: The error message "Missing Record: Record does not exist or has been deleted" suggests that there might be an issue with retrieving the sales order record or the Set Up product record. Double-check that the records exist and that the IDs provided in the automated action are correct.

By reviewing and potentially adjusting these aspects of the automated action configuration, you should be able to resolve the issue and have the Set Up product line automatically added to sales order lines with the Project A product template.


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
Duplicate section on Sales order Opgelost
sales sale.order.line sales.order v14 odoo16features
Avatar
Avatar
2
mrt. 25
3755
Change or creat Sales Order date
sales.order odoo16features
Avatar
1
dec. 23
2502
Odoo16: where is Automated Actions in Technical menu Opgelost
AutomatedActions odoo16features
Avatar
Avatar
Avatar
Avatar
3
okt. 23
4264
add a additional product to order.lines by automated actions
sale.order.line AutomatedActions
Avatar
0
jun. 24
3080
Multiply Column In Odoo 16 enterprise ? Opgelost
sales.order odoo16features
Avatar
Avatar
1
apr. 23
3402
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