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

Inventory Moves with MES Integration

Suscribirse

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

Se marcó esta pregunta
manufacturingintegration
3 Respuestas
3061 Vistas
Avatar
David Schultz

I am working on an MES integration with Odoo for a control system. I am able to select a manufacturing order, start production, modify produced and consumed quantities, and end production. However, while inventory moves are registered, they are not updated in inventory (quantity available). 

I execute read/write methods on the following models for the integration: 

​mrp.production

​stock.move

​stock.move.line

​product.template

I also create a stock.valuation.layer record for all of the material. 

Everything executes as expected, except when the production is complete. none of the inventory quantities adjust.

Thoughts?

0
Avatar
Descartar
Avatar
Lars Aam
Mejor respuesta

I would think to process as it would have been done with manual entry.

In settings for manufacturing you must have flagged "Unlock manufacturing orders" to allow flexible consumption.

Be sure that you have set Flexible Consumption to Allowed in the BOM, and Manual consumption is flagged for the components.  (I assume you do not.

You must make sure you have filled the field qty_done in the stock move line for the components, which is the actual consumed qty.  Else you will only post what is planned.  

For produce fill the field qty_producing in mrp.production.

The result should be that the order get status = To close (field state in mrp.production).

Use the action "button_mark_done" and (of course) select only the actual manufacturing order.  You will use the standard Odoo processing. It will do several posting in the background: Material movements, Accounting entries, and product valuation.  So you should not need to send anything to stock valuation layer or stock.move.

But for Button Mark done action I have configured an automatic action, that run when field state is changed into "To Close". 

model.search([('state', '=', 'to_close')]).button_mark_done()

Why do you update in product.template? Product template is masterdata, and it is not logic to update when processing confirmation of manufacturing?

Hope this helps you.


0
Avatar
Descartar
David Schultz
Autor

Lars,

Thank you for your help. I did not have the "Unlock Manufacturing Orders" checked. It appears this was the missing piece. I have outline additional steps needed.

Flexible Consumption was Allowed.

There is not a field "qty_done" in stock.move.line model. In stock.move the field "quantity" is updated to reflect material in actuals. This will create/edit lines in stock.move.line model.

I need to set the field "picked" to True in stock.move model. Otherwise materials in will not be consumed.

In mrp.production model, "qty_producing" is updated with the material out actual quantity. As you note, this will update field "state" in the same model.

Executing the "button_mark_done" method on mrp.production model outside of Odoo will result in an error, but it appears this is due to the forms that are generated in the method, but cannot be.

The product.template model was only used to create the stock.valuation.layer for materials. Only read method was used, and is no longer required.

Thank you, again, for your help. It is truly appreciated.

Avatar
David Schultz
Autor Mejor respuesta

Rajesh,

Thank you for your help. The "action_confirm" will set the state of a MO to Confirmed. I have tried using the "button_mark_done", but this only consumes material request (BOM) quantities, not material actual quantities. For example, if a MO requests 25 units of a product, but 26 are consumed, this method will only consume 25 in production inventory.

Please note I edited my original post as the stock.move and stock.move.line models were incorrect.

David

0
Avatar
Descartar
Avatar
Rajesh R
Mejor respuesta

Hello David,

Assuming that you are calling xml-rpc calls for your MES integration,
and in that if you are marking your M-order done via rpc call to 'action_confirm' (like odoo UI does the thing) then it should take care of all the stock effects


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
Is it possible to integrate Webflow into Odoo? If yes, is there any documentation on this?
integration
Avatar
Avatar
1
nov 25
7247
How to make Odoo schedule manufacturing in parallel?
manufacturing
Avatar
0
oct 25
489
Change in Work Center Productivity Accounting
manufacturing
Avatar
Avatar
1
sept 25
1308
How to disable form view if there are not registers?
manufacturing
Avatar
Avatar
2
sept 25
990
Columna calculada en orden de producción
manufacturing
Avatar
Avatar
2
sept 25
859
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