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
    • Información
    • 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 merge the delivery order?

Suscribirse

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

Se marcó esta pregunta
v7merge6.1
4 Respuestas
12127 Vistas
Avatar
klacus

The question is in the topic, so How can I merge the delivery orders? It's a useful if I want to create one delivery slip but the products come from different sale orders. (the partner is same)

Thanks in advance. In 6.1 all of the apps. isn't function... in 7.0 I didn't find the solution.

3
Avatar
Descartar
Avatar
Serpent Consulting Services Pvt. Ltd.
Mejor respuesta

Hello Mr Klacus,

There is one module in community for this functionality to merge pickings.

Here you can download that module.

but it is in 6.0 you need to migrate it in 7.0.

1
Avatar
Descartar
Avatar
Mayur Maheshwari
Mejor respuesta

Hello 

Hope follwing link will helps you . have a look.

http://maheshwarimayur.blogspot.in/2014/06/how-to-merge-delivery-order-in-openerp.html

1
Avatar
Descartar
klacus
Autor

Nice video THX!

Avatar
klacus
Autor Mejor respuesta

I try to install merge.picking modul. It cannot be use, because drop some exception when check the field.

I hack some parts from the code, and it's will be run, avoiding the problems when the code try to understand what is the diff. between the models. this is merge_picking.py

    def is_compatible_many2one(self, cr, uid, target, merge, context=None):
    fields_pool = self.pool.get("ir.model.fields")
    fields_search = fields_pool.search(cr, uid, [('ttype','=','many2one'),('model','=','stock.picking'),('relation','<>',self._name)])
    failedfields = []
    for field in fields_pool.browse(cr, uid, fields_search, context):

        # don't handle specialhandlers fields as incompatible            
        if field.name in self.get_specialhandlers().keys():
            continue

        # compare fields
        related_target_id = getattr(target, field.name)
        related_merge_id = getattr(merge, field.name)
        if (related_target_id.id != related_merge_id.id):
            failedfields.append(field)
    failedfields = [] # modify here always be empty  
    return {'result': (len(failedfields)==0), 'fields': failedfields}

I hack the failed fields and it will be ok. But this code drop the other place also the error, and I cut off also.

    def do_target(self, cr, uid, ids, context=None):
    # look if we got compatible views
    picking_pool = self.pool.get('stock.picking')

    found = False
    found_incompatible = False
    incompatible_notes = _('Near misses:')

    for session in self.browse(cr, uid, ids):
        # search if there are any compatible merges at all
        similiar_ids = picking_pool.search(cr, uid, [('id','<>',session.target_picking_id.id),
                                            ('state','=',session.target_picking_id.state),
                                            ('type','=',session.target_picking_id.type),
                                            ('invoice_state','=',session.target_picking_id.invoice_state),
                                           ])

        # ensure that many2one relations are compatible 
        for merge in picking_pool.browse(cr, uid, similiar_ids):
            is_compatible = self.is_compatible_many2one(cr, uid, session.target_picking_id, merge, context)
            found = True
            if (is_compatible['result']):
                found = True
            else:
                found_incompatible = True
                for f in is_compatible['fields']:
                    desc = self.get_fieldname_translation(cr, uid, f, context)
                    incompatible_notes += "\n" + _('%s: %s (%s) differs.') % (str(merge.name), desc, f.name) 
    found = True # modify here always be true
    found_incompatible = False # modify here always be true
    if not found: 
        if (found_incompatible):
            raise osv.except_osv(_('Note'),_('There are no compatible pickings to be merged.') + "\n" + incompatible_notes)
        else:
            raise osv.except_osv(_('Note'),_('There are no compatible pickings to be merged.'))

        return self.return_view(cr, uid, 'merge_picking_form_init', ids[0])
    # else:
    return self.return_view(cr, uid, 'merge_picking_form_target', ids[0])

Now it can be use under 6,1. I tested it, the code run it without problems. I think this is safe because some other item can be guarantee what you can merge. Example wizzard domain filtering in merge_picking_view.xml

Now i need to make some modification in sales modul, because when I merge the delivery orders and invoice it, the sales order view progressbar cannot find the items. (never be go on 100%)

0
Avatar
Descartar
klacus
Autor

I really do not understand, why the openerp cannot do it in base mode? This is a really life.

Avatar
Viktor léhner
Mejor respuesta

Kedves klacus, amennyiben jártas vagy az OPENERP rendszerben kérlek vedd fel velem a kapcsolatot: lehnerviktor@gmail.com

0
Avatar
Descartar
Els Van Vossel (evv)

This is an English forum, please answer in English.

klacus
Autor

Dear Els. This just a contacting info's no more..LOL

¿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 long could you use 6.1?
v8 v7 6.1
Avatar
Avatar
Avatar
2
mar 15
5503
Merging a manufacturing order for variant (shoes) Urgent
manufacturing merge 6.1
Avatar
0
mar 15
5433
How to include origin RFQ doc into merged PO PDF
v7 merge purchase_order
Avatar
0
mar 15
5358
what is python version used to build allinone windows 6.1 and 7 ?
v7 6.1 allinone installer
Avatar
1
mar 15
8433
Why can't I merge Procurement Requisitions?
purchase v7 merge requisition
Avatar
0
mar 15
4870
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