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 Do I Attach Functionality To Drag & Drop Kanban Movements?

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
developmentworkflowkanbanfunctionality
7 Replies
16892 Tampilan
Avatar
Alex Malone

Hi folks,

I am looking to add some functionality to the kanban view that I've not seen elsewhere so I'm unsure if it is possible.

Essentially, I have an entity called "Cases" within my system. These are used to track issues raised by customers. Cases have states. We dont allow users to directly edit states, instead they must go through a custom workflow in order to progress a state. For example, if they want to close a case (move case from work complete to closed status) then they must press a "Close" button which launches a popup. The popup asks the user to fill in some details, they press another button which then updates the cases and changes the state.

I would like to add this functionality to the kanban view for cases. So, if a user drags a case from the "Work Complete" column in to the "Closed" column, I would like them to fill out the same form as before.

Does anyone know if this is possible? If it is possible, has it already been done in one of the standard OpenERP modules?

Many thanks for your time,

-Alex

10
Avatar
Buang
Timo Talvitie, Vizucom Oy

Hi Alex, did you find a solution or workaround for this?

Soohoo

Hi how we can write the python function ......... can you provide some example did you find any solution

Avatar
Ray Carnes (ray)
Jawaban Terbai

This can easily be achieved with an Automated Action that 'listens' to the update of the record being moved.

It can check that certain data is populated, and can prevent movement if the conditions in the Automated Action are not met.

Example Python Code you can use:

stage_new = 'New'
stage_opp = 'Opportunities'
stage_gath = 'Requirements'
stage_eng = 'Scoping'
stage_pqc = 'Pending Quotation'
stage_pca = 'Customer Approval'
stage_pma = 'Manager Approval'
stage_ver = 'Verbally Approved'
stage_po = 'Purchase Order'
stage_app = 'Approved Orders'
stage_tm = 'T & M'
stage_hand = 'Project Handoff'
stage_done = 'Completed'

# Require Project 
if record.stage_id.name in [stage_gath,stage_eng, stage_pqc, stage_pca, stage_pma, stage_ver, stage_po, stage_app, stage_tm, stage_hand, stage_done] and not record.x_project: 
raise Warning('Please create a Project for this Opportunity!')

# Opportunity cannot be moved into Project Handoff OR Completed.
if record.stage_id.name in [stage_hand, stage_done]:   
needs_warning = False   
for quote in record.order_ids:      
if quote.state not in ['sale','done','cancel']:          
needs_warning = True   
if needs_warning:       
raise Warning('Please confirm or cancel each Quote before moving!')



Note: This does not require development of a module.  Automated Actions can be created within Odoo like another other record. 

2
Avatar
Buang
Avatar
Ivan Elizaryev
Jawaban Terbai

You can modify web client to fit your needs. You can inject some javascript code in OpenERP, which will do things you described. Also, you probably should make some modifications via python code.

UPD

Here you can find some example. It overwrite the write function to check changes in the state field. If some conditions is not passed it raises warning and doesn't allows to make such changes. I think this approach doesn't allow to raise widget with a form you need. I can suggest another simple solution: add button to a kanban card, which will raise widget and if user will move state and some conditions is not passed show to him warning "Click button ... before moving to new state"

    @api.multi
    def write(self, vals):
        if 'stage_id' in vals:
            new_stage = self.env['crm.case.stage'].browse(vals['stage_id'])
            for r in self:
                res = r.try_update_stage(new_stage)[0]
                if res.get('warning'):
                    raise exceptions.Warning(res.get('warning'))
                ...
        result = super(crm_lead, self).write(vals)
        return result 

3
Avatar
Buang
Soohoo

Hi how we can write the python function ......... can you provide some example

Ivan Elizaryev

@Soohoo try to find information about how to write modules in odoo

Avatar
Leonardo Donelli
Jawaban Terbai

If you want to automatically open a wizard/popup or another window when a kanban card is moved, you'll have to modify the web client, which is usually not easy and not recommended.

I was in a similar situation where I created a kanban view for sale orders based on the "expected delivery week". So if a sale order was having some problems in production, the user could just move the card to the next week. The idea was originally to open a wizard when the card was moved to send a mail alerting the customer of the change of the date, so similar to what you want to do, but we quickly discovered it was not possible without modifying the client code of Odoo.

We ended up using two field "previously agreed delivery week" and "expected delivery week". When the user moves the kanban the "expected delivery week" is changed, and when "expected delivery week" and "previously agreed delivery week" are different, it shows a button "alert customer of change" which opens the wizard to send the email.

You could try to work around the problem in a similar fashion. For example, in the kanban view, you could show a "Insert closing information" button/link when the state = closed, so that when an user drags a card to the closed column the link will appear. It will not be automatic (the user will have to remember to click the link to open the wizard instead of having it opens automatically) but I think it's a good compromise.

 

2
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
Multiple approver in Expense Odoo 16 E
development workflow
Avatar
Avatar
1
Jun 25
1400
Inquiry About Route Planning with Live Location Tracking
development functionality
Avatar
0
Mei 24
2465
Change the Checkout name in Odoo 18 Diselesaikan
development workflow shop
Avatar
Avatar
2
Jul 25
2047
How can I customize Odoo 18 HRMS modules to add unique value beyond the standard features?
development hr workflow
Avatar
0
Mar 25
2162
API: Connect error: Connection refused (111)
action development workflow
Avatar
Avatar
2
Mar 25
2224
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