Ir al contenido
Odoo Menú
  • Inicia sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Inteligencia artificial
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de propiedades
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Comunidad
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda
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

auto assign responsible for MO (MTO)

Suscribirse

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

Se marcó esta pregunta
3 Respuestas
1032 Vistas
Avatar
nissim yaish and sons Ltd., NIR YAM INDUSTRIES LTD

Hello everyone,


I created an automation that sends an alert to the sales representative once a manufacturing order created from their sales order is completed.


The sales rep should be responsible for the manufacturing order they initiated.


I would like to set up an automation where the sales rep who created the manufacturing order is automatically assigned as responsible, without needing to manually assign themselves each time.


Has anyone implemented something similar, or can suggest the best way to achieve this?


Thanks in advance!


0
Avatar
Descartar
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Mejor respuesta

Hi,

By default, when a Manufacturing Order (MO) is generated from a Sales Order (SO), Odoo doesn’t assign a Responsible user automatically. The field user_id on mrp.production (MO) usually defaults to the Manufacturing team lead or stays empty, not the sales rep.


Try any of the following methods.

1-Server Action (Automated Action)

  • Model: Manufacturing Order (mrp.production)
  • Trigger: On Creation
  • Action: Write user_id from the related Sales Order (origin) → which points to the SO. Example code in a Python action:

    if record.origin: sale = env['sale.order'].search([('name', '=', record.origin)], limit=1) if sale and sale.user_id: record.user_id = sale.user_id.id

This ensures the Sales Rep (sale.order.user_id) becomes the MO’s responsible.

2- Studio / No-Code (if you have Odoo Studio)

  • Add a related field on MO: sales_order_user = fields.Many2one('res.users', related='sale_id.user_id')
  • Then set a default for Responsible = that related field.

3- Custom Module (Cleanest for Production)

If you want it consistent across all environments, override the create method in mrp.production:

from odoo import models, api class MrpProduction(models.Model): _inherit = "mrp.production" @api.model def create(self, vals): res = super().create(vals) if res.origin: sale = self.env['sale.order'].search([('name', '=', res.origin)], limit=1) if sale and sale.user_id: res.user_id = sale.user_id.id return res

* If you want a quick solution, go with the Automated Action — no code deployment needed.

*If this is for a multinational / production setup, implement it as a small custom module so it’s clean, version-controlled, and works regardless of Studio/Automation.


Hope it helps

1
Avatar
Descartar
Avatar
Dawid Gacek
Mejor respuesta

Hi,
You could try to make an automated action, and assign `record.sale_order_id.user_id` as Value.
Best Regards,
Dawid Gacek, Adapt IT

0
Avatar
Descartar
Avatar
Yadenis Pinero
Mejor respuesta

Hi! I have worked with an automated allocation app (xopgi_allocation) that allows you to apply rules using different assignment methods to manage routing logic across helpdesk tickets, tasks, CRM opportunities, and purchase orders.

Since I don't have enough forum karma to post active links yet, you can check out how its logic is structured by searching for xopgi_allocation directly on the Odoo Apps Store. 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.

Registrarse
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 Svenska ภาษาไทย 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 estar totalmente integrado.

Sitio web hecho con

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