Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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

  • CRM
  • e-Commerce
  • Akuntansi
  • Inventaris
  • PoS
  • Project
  • MRP
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

How can I add bulk duplicate to the action?

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
duplicateManufacturing Orderbulkupdate
3 Replies
8073 Tampilan
Avatar
Mohammad Moghimi

I want to have the option in action dropdown to bulk duplicate the selected Manufacturing Orders. Is there any way of doing this non-programmatically or programmatically?

What about implementing the functionality to bulk delete and bulk duplicate at the same time?

0
Avatar
Buang
Avatar
Jake Robinson
Jawaban Terbai

You would need to create a server action (in settings turn on developer mode then Settings -> Technical -> Server Acrions -> Create) called bulk copy on the manufacturing order that calls python code. 

It should just be

for rec in records:

    rec.copy()        

Once saved, make sure you add a context menu in the top right. Then once you refresh, go to the manufacturing orders, select some and click action at the top. You should now have bulk copy.

To copy then delete, just add rec.unlink() after the last line.      

2
Avatar
Buang
Chris TRINGHAM

Very good! But Odoo will only let you delete a Manufacturing Order if the state is "cancel" so you add the following:

rec.copy()

record['state'] = "cancel" <=== Add this

rec.unlink()

Mohammad Moghimi
Penulis

Thank you, Jake and Chris, your both replies are very helpful.

I created the server action and it works almost fine. The thing that is not copied was the Source (the origin which refers to the sale order). I managed to copy it as well.

But my question is, why it was not copied? Could it be possible that I lose other data like this and how can I handle it?

My initial purpose to copy and delete MOs is to make it possible to change the Routing in the new MO (since it is not possible after the creation of workorders). Do you think is it a good idea or should I do it in another way?

Chris TRINGHAM

The field origin is not copied (as per base properties). You can check which fields will be copied by looking at the model definition or field list.

It may be possible to change the model definition so that field is copied, but that's not my area of expertise!

In my opinion, it makes sense that Odoo doesn't copy the origin field (though I understand why you want it)

Avatar
Ravi Gadhia
Jawaban Terbai

yes, you can develop it programmatically but not possible non-programmatically.

In list view select the records and using action option you can delete bulk record but for duplicate have to implement this functionality 
​

0
Avatar
Buang
Avatar
Achuthan
Jawaban Terbai

If it possible pls try this. https://apps.odoo.com/apps/modules/11.0/dev_bulk_duplicate/

0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
How can I hide the 'duplicate' option in the 'more' button for a specific object Diselesaikan
duplicate
Avatar
Avatar
Avatar
Avatar
Avatar
4
Okt 25
16567
How do you find the amount of raw materials from finished products?
Manufacturing Order
Avatar
Avatar
1
Mei 24
2417
How Can I set about Manufacturing Order?
Manufacturing Order
Avatar
0
Mei 24
1975
How to implement custom version of "Duplicate" for products ?
duplicate
Avatar
Avatar
Avatar
2
Jun 23
4987
Manufacturing 'Mark as Done' error
Manufacturing Order
Avatar
Avatar
2
Mar 23
3099
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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