Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • eLearning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y taberna
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Brewery
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y asistencia informática
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Browse all Industries
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Services for Partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

Error at setting an automated action in Odoo studio v16 online

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
sale.order.linesales.orderMissingErrorAutomatedActionsodoo16features
1 Responder
2449 Vistas
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
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

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
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Duplicate section on Sales order Resuelto
sales sale.order.line sales.order v14 odoo16features
Avatar
Avatar
2
mar 25
3747
Change or creat Sales Order date
sales.order odoo16features
Avatar
1
dic 23
2500
Odoo16: where is Automated Actions in Technical menu Resuelto
AutomatedActions odoo16features
Avatar
Avatar
Avatar
Avatar
3
oct 23
4255
add a additional product to order.lines by automated actions
sale.order.line AutomatedActions
Avatar
0
jun 24
3074
Multiply Column In Odoo 16 enterprise ? Resuelto
sales.order odoo16features
Avatar
Avatar
1
abr 23
3399
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة 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 es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

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