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

Duplicate Repair Order

Suscribirse

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

Se marcó esta pregunta
repairduplicate13
1 Responder
3236 Vistas
Avatar
Marco Vogels

Dear Forum,

In the application 'Repairs' you make your Repair Orders. Within a Repair Order you have the option in the Actions to Duplicate it. This only works if the Repair Order itself is empty in the Repair Lines, but if there is something within the Parts or the Operations tab. You will get the error message: "The name of the Repair Order must be unique!". It has nothing to do with the name because when there is nothing within those tabs and you simply have your name and customer stated, it will just generate the same order, without a name. So it should do the same when the order is fully filled with lines.

The same function of Duplicate is within the Sales Orders, within this application it is not a problem if you have Sale Order Lines. I am guessing this is a mistake in the code. Anyone any idea what an easy fix could be?

Sometimes these orders are re-occuring repairs and then it would be much easier to just duplicate the entire order with lines. It should be an easy fix but I don't know how.



0
Avatar
Descartar
Avatar
Waleed Ali Mohsen
Mejor respuesta

I have Odoo 13 and I was able to duplicate any order even if there is Parts and Operations. The default repair name is / and its updated automatically once the order created and it depends on repair.order sequence to get the next sequence value.

Update answer:

The order name is unique for all companies and you have multi company, You need to create sequence for each company with different prefix because of the constraint of the name to be unique in all company. as per below line:

_sql_constraints = [
('name', 'unique (name)', 'The name of the Repair Order must be unique!'),
]

1
Avatar
Descartar
Marco Vogels
Autor

Hi Waleed, interesting. Ours works exactly the same with the '/' when duplicating. But the moment you use a line in Parts or Operations, it stops working. I wonder what caused that then.

Waleed Ali Mohsen

Do you have a repair order created with / as a name? if Yes then that's what cause the issue just change the name of this order and try to duplicate.
Do you have any custom module for repair module?
When you duplicate an empty order is the order number increasing?
Do you have multi company?

Marco Vogels
Autor

Hi Waleed. Sorry for the late reply. No, the one that I want to copy does have a different name, not the default '/', but 'FM-002'. We do not have any custom modules in the repair module. The ID number is increasing when duplicating an 'empty' order yes. And yes, we have a multi-company system.

Waleed Ali Mohsen

Since you have multi company, do you have a sequence for each company for repair order. The prefix of the sequence need to be different for each company because the order name is unique but not for each company.

Marco Vogels
Autor

Oh wow. You might be right, it has something to do with that. I just found out what fixed it when meddling with sequences and the prefix '/'. So, when there is a repair order that was duplicated but just not updated, it keeps the name with '/'. The moment that is the case, you cannot duplicate any other repairs. Doesn't matter in which company you are, there is an existing repair order with the name '/' and it just stops working. Now I deleted the one named '/', now there is no problem with duplications. Interesting. THank you for your help!

Waleed Ali Mohsen

Great. You need to create sequence for each company with different prefix because of the constraint of the name to be unique in all company. as per below line:

_sql_constraints = [
('name', 'unique (name)', 'The name of the Repair Order must be unique!'),
]

Marco Vogels
Autor

I will discuss the wishes of the sequences with the corresponding companies. Not everyone wants numbering, so might just change the default to 'Title' so everyone knows they should change '/'. Perfect thanks.

¿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 can I hide the 'duplicate' option in the 'more' button for a specific object Resuelto
duplicate
Avatar
Avatar
Avatar
Avatar
Avatar
4
oct 25
16672
Reopen repair order after status "repaired"
repair
Avatar
Avatar
1
nov 24
5099
Avoid validation when merging contacts, odoo 13 community
vat merge duplicate odoo 13
Avatar
0
sept 24
1594
how to add a remove tab with studio in repair in odoo v17.
repair
Avatar
Avatar
1
sept 24
1997
repair
repair
Avatar
Avatar
1
sept 24
1741
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