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

How to deal with procurements, stock moves and stock quants with consumable, service or stockable products?

Suscribirse

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

Se marcó esta pregunta
serviceproductprocurementorderconsumable
1 Responder
7620 Vistas
Avatar
Pascal Tremblay

Hi everybody,

It is said here that when I confirm a sale of a « service » product, it should create a procurement.

Yet, it is impossible to us to create any procurement for this type of product (service). 

All works good with consumables and stockable products. They both create a procurement, picking, etc.

We tried any combinations of routes, product type, etc.

Never managed to create any procurement from a service product.

What is the problem? Idea? 


References : https://docs.google.com/document/d/1jTLZJNV14saRn1VeZt_wME18YizEnEHB9ZX97WSqavs/edit


UPDATE #1

It seems there is an error in the table at the top of this page. See the stock quant for consumable product.

https://www.odoo.com/fr_FR/forum/how-to/warehouse-management-6/whats-the-difference-between-quants-lots-and-products-55243

UPDATE #2

This table is not the same than above... Weird



references : https://www.odoo.com/fr_FR/forum/how-to/warehouse-management-6/whats-the-difference-between-quants-lots-and-products-55243

0
Avatar
Descartar
Avatar
Pascal Tremblay
Autor Mejor respuesta

For the moment, the best solution we find is here.

It works like we want it and it respects the tables above.

We are ready to correct any error according to your comments. We want your comments! 

Thanks


OUR ANSWER - AT YOUR OWN RISK - TO REVIEW


We have to modify three files 

In the file, /home/odoo-test/odoo-8.0-20150503/openerp/addons/sale_stock/sale_stock.py,

we replace

            def need_procurement(self, cr, uid, ids, context=None):

                    for product in self.browse(cr, uid, ids, context=context):

                        if product.type != 'service':

                            return True

                    return super(product_product, self).need_procurement(cr, uid, ids, context=context)

by

            def need_procurement(self, cr, uid, ids, context=None):

                for product in self.browse(cr, uid, ids, context=context):

                        if product.type in ('product', 'consu'): 

                                return True

                        elif product.type == 'service' : 

                                if product.seller_id:

                                        #Product type is service and seller_id is defined.

                                        return True

                                else: 

                                        #Product type is service and seller_id is not defined. For example, we don't need to procure our own services we offer.

                                        return False

                return super(product_product, self).need_procurement(cr, uid, ids, context=context)


In the file /home/odoo-test/odoo-8.0-20150503/openerp/addons/procurement/procurement.py,

we replace

            elif procurement.product_id.type != 'service':

by

            elif procurement.product_id.type != '':



In the file/home/odoo-test/odoo-8.0-20150503/openerp/addons/stock/stock.py,

we replace

            quants = quant_obj.quants_get_prefered_domain(cr, uid, ops.location_id, move.product_id, record.qty, domain=dom, prefered_domain_list=prefered_domain_list,restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context) 

by 

            quantityy = record.qty

            if ops.product_id.type == 'consu':

                    quantityy = 0

            quants = quant_obj.quants_get_prefered_domain(cr, uid, ops.location_id, move.product_id, quantityy, domain=dom, prefered_domain_list=prefered_domain_list, restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context)


We will override it in a module soon.



Sale quotation

We make a sale quotation with 3 differents products : service, consumable and stockable products.




Purchase quotation

Even the service product is the created purchase quotation. We buy this service at supplier.




Procurements

Procurements are created for services, consumable and stockable products. 




Stock move

No stock move is created for the service product. 




Quants

The quant is created for the consumable product. But his quantity is set to 0.

No quant for a service product.




Picking

only for consumable and stockable product


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
Unable to Select Project for Service Product in Odoo 17 Resuelto
project service product task order
Avatar
Avatar
Avatar
3
abr 24
3231
Service with consumable products
service product track consumable odoo
Avatar
0
nov 23
1695
Manufacture product that is a service Resuelto
sales service product mrp consumable
Avatar
Avatar
4
ene 24
15230
Pre-selecting products in orders depending on customer ...
product order
Avatar
Avatar
Avatar
3
feb 24
2804
How to delete a procurement order for a specific product?
procurement order
Avatar
Avatar
1
mar 15
7748
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