Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Duplicate Repair Order

Subscriure's

Get notified when there's activity on this post

This question has been flagged
repairduplicate13
1 Respondre
3221 Vistes
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
Best Answer

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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
How can I hide the 'duplicate' option in the 'more' button for a specific object Solved
duplicate
Avatar
Avatar
Avatar
Avatar
Avatar
4
d’oct. 25
16597
Reopen repair order after status "repaired"
repair
Avatar
Avatar
1
de nov. 24
5077
Avoid validation when merging contacts, odoo 13 community
vat merge duplicate odoo 13
Avatar
0
de set. 24
1574
how to add a remove tab with studio in repair in odoo v17.
repair
Avatar
Avatar
1
de set. 24
1963
repair
repair
Avatar
Avatar
1
de set. 24
1729
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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