Ir al contenido
Odoo Menú
  • Iniciar 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
    • Aprobaciones
    • 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 bienes inmuebles
    • 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
  • Odoo Community
    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

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

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • 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

Product weight calculation based on BoM

Suscribirse

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

Se marcó esta pregunta
inventorydeliveryweightcalculationdeliveryslipBoMKeepItSimpleproduct_weight
5 Respuestas
10531 Vistas
Avatar
Ricardo Gross

Manufacturing and delivery weights:

In the Manufacturing app, I would like to know how to auto calculate the weights?

If my product C weight = A + B weights, why are the weights not calculated and printed in the delivery slip (A weight+ B weight = C weight) ?

Thanks

Ricardo

2
Avatar
Descartar
Ricardo Gross
Autor

4 years later and I am faced with the same question, maybe it is badly elaborated:
So let's go:
in a product with a BOM and a manufacturing route, can I not obtain the weight and, why not, also the volume automatically?
product C Weight = component A + component B weight
is it so hard to automatically calculate and provide this information in an integrated system?

Avatar
vishalratani
Mejor respuesta

There is no law of conservation of mass in Odoo manufacturing :) 

If your UoM of every product is Kg here then you take care of it while creating products/ BoM. But if you are working through different units and still want to act on "law of conservation of weight" you've got to figure out a customized solution or consult an expert.

Thanks

Vishal

1
Avatar
Descartar
Ricardo Gross
Autor

Thanks, but why the system does not sum all the BOM products weights automatically?

Avatar
OdooThinking
Mejor respuesta

A simple solution to this question could be the creation of the following server action (image from Odoo version 18):

hope it helps!

code:

for product in records:
    bom = product.bom_ids and product.bom_ids[0] or False
    if not bom:
        continue
    bom_lines = bom.bom_line_ids
    if not bom_lines:
        continue
    total_weight = 0.0
    for line in bom_lines:
        component = line.product_id
        quantity = line.product_qty  # Quantity in units
        component_weight = component.weight or 0.0  # Weight in kg
        weight_contribution = component_weight * quantity
        total_weight += weight_contribution
    product.write({'weight': total_weight})
   
1
Avatar
Descartar
Avatar
Niyas Raphy (Walnut Software Solutions)
Mejor respuesta

Hi,

You can check this community module : https://www.odoo.com/apps/modules/10.0/product_weight/

This will help you to get the weight of a product as the sum of its component products. Have a look at the module.


Then regarding the weight in delivery slip you can inherit the report template and access the weight of the product from the product master and add to it.


Thanks

1
Avatar
Descartar
Avatar
Ettore Alberto Pietro Lampertico
Mejor respuesta

I have slightly improved the code by inserting UOM conversion


for product in records:

    bom = product.bom_ids and product.bom_ids[0] or False

    if not bom:

        continue

    bom_lines = bom.bom_line_ids

    if not bom_lines:

        continue

    total_weight = 0.0

    for line in bom_lines:

        component = line.product_id

        component_uom=component.uom_id.relative_factor

        quantity = line.product_qty  # Quantity in units

        line_uom = line.product_uom_id.relative_factor

        component_weight = component.weight or 0.0  # Weight in kg

        weight_contribution = line_uom/component_uom * component_weight * quantity

        total_weight += weight_contribution

    product.write({'weight': total_weight})


0
Avatar
Descartar
Avatar
Ricardo Gross
Autor Mejor respuesta

Thanks for the reply, but I still have not found a solution for Odoo 11

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
Publicaciones relacionadas Respuestas Vistas Actividad
Weight and volume in the Transfers
inventory delivery volume v15 KeepItSimple
Avatar
Avatar
1
ago 22
3737
Inventory management v12 delivering another warehouse Resuelto
inventory delivery
Avatar
Avatar
Avatar
2
may 19
3711
1 product which comes in multiple boxes
orders inventory delivery
Avatar
Avatar
1
mar 23
2641
Quantity done not working properly?
models inventory weight
Avatar
0
abr 21
2855
Sales > Warehouse pickup
sales inventory delivery
Avatar
Avatar
1
jul 19
3608
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 ภาษาไทย 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.

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