Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Duplicate Repair Order

Subscribe

Get notified when there's activity on this post

This question has been flagged
repairduplicate13
1 Reply
3223 Views
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
Discard
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
Discard
Marco Vogels
Author

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
Author

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
Author

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
Author

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!

Sign up
Related Posts Replies Views Activity
How can I hide the 'duplicate' option in the 'more' button for a specific object Solved
duplicate
Avatar
Avatar
Avatar
Avatar
Avatar
4
Oct 25
16610
Reopen repair order after status "repaired"
repair
Avatar
Avatar
1
Nov 24
5084
Avoid validation when merging contacts, odoo 13 community
vat merge duplicate odoo 13
Avatar
0
Sep 24
1581
how to add a remove tab with studio in repair in odoo v17.
repair
Avatar
Avatar
1
Sep 24
1968
repair
repair
Avatar
Avatar
1
Sep 24
1730
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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