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
    • e-learning
    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

Parse partner_id from sales order to manufacturing order

Suscribirse

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

Se marcó esta pregunta
manufacturingcustomerpartner_idsales.order
3 Respuestas
7367 Vistas
Avatar
Ray

Hi,

When I create a sales order, we have set it up to produce a manufacturing order automatically using some products with a bill of materials.

I am trying to display the customer name on our kanban view on our manufacturing pages, however I can not find a way to parse the partner_id value from sales.order to the manufacturing page.

There is a default "origin" field set up with a reference to the Sales order id number, however this is not a hyperlink - just text.

If anyone could offer support that would be fantastic.

1
Avatar
Descartar
Avatar
Alex Lyngsoe
Mejor respuesta

Take a look at this v11 module: https://apps.odoo.com/apps/modules/11.0/mrp_sale_info/

Let me know if you need it for v12, which i can provide for you.

0
Avatar
Descartar
Ray
Autor

Hi, we looked at this before but it was only a v11 module. It would be perfect for what we are looking for! If you could provide v12 that would be fantastic!

Alex Lyngsoe

Hi Ray. If you share here your github username, i will give you access to the module. The module is provided "As is". Please provide your feedback on the module to me afterwards, as we have only had little testing.

Rıza Gökay Kıvırcıoğlu

This module can't set the sale_order_id if there is any reordering rule on the product because the procurement_group_id.sale_id is empty when this is the scenario. Can you guide me about this scenario.

Avatar
Anoop Menon
Mejor respuesta

in Odoo 12 there is a method called 

def _run_manufacture(self, product_id, product_qty, product_uom, location_id, name, origin, values): 

defined in mrp module stock.rules.py file.

override this method , in the values parameter, you will be able to find a fileld called 'sale_line_id' this is the sale line from which this MO came from  (this value wont be present if it is not created from a sale order eg: orderpoint created MO)

declare a field in mrp.production with name sale_partner_id and update the values in this method with {'partner_id': sale_line_id.order_id.partner_id.id}

this would solve your problem


5
Avatar
Descartar
Ray
Autor

Hi, thank you for your response. I am having trouble following your instructions - I have added "sale_line_id" to the argument list for the _run_manufacture method ( def _run_manufacture(......,values, sale_line_id). I have done "settings -> technical -> models -> mrp.production -> add a line' and added "partner_id" as a custom field.I am not sure where I can "update the values in this method". Could you explain further please? Kind regards

Rıza Gökay Kıvırcıoğlu

If any there is a defined re-ordering rule for the product _run_manufacture is being called with orderpoint instead of sale.order so in the values there is only "orderpoint_id". I need to find the reference between an orderpoint and sale order which i could not find.

¿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
how to generate manufacturing from a sales order? Resuelto
manufacturing sales.order
Avatar
Avatar
1
jul 18
11008
Prefill sales order with customer data Resuelto
customer sales.order prefill
Avatar
Avatar
Avatar
2
ago 24
1739
ver14 : How can generate automatic manufacturing order from confirmed Saled order in ver 14? Resuelto
manufacturing mrp sales.order
Avatar
Avatar
Avatar
Avatar
Avatar
4
oct 21
11196
SO -> MO: do not confirm MO automatically
manufacturing v7 sales.order
Avatar
0
jul 16
4399
Display Customer Name on Manufacturing Order? Resuelto
manufacturing customer name
Avatar
1
may 15
5124
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