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
    Supply Chain
    • 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
    • Discuss
    • Kecerdasan Buatan
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • 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
    • Manajemen Properti
    • 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.
    • Referral Program
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Konsultasi
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
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 to change helpdeskticket's stage after sending/receiving messages?

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
stagesautomatichelpdeskupdatingtickets
2 Replies
590 Tampilan
Avatar
Luc Bernard

How can I automatically change a helpdeskticket's stage to 'Answered' after we send a reply to the customer and 'To be answered' after we receive a follow up reply from the customer?

0
Avatar
Buang
Avatar
Jonathan Quique (jqu)
Jawaban Terbai

Hello,

You can use an automation rule:

  • Model: Message (mail.message)
  • Trigger: On create
  • Apply on: Related Document Model = helpdesk.ticket
  • Action: Execute Code
Code:

mt_comment = env.ref('mail.mt_comment', raise_if_not_found=False)

if (
record.model == 'helpdesk.ticket'
and record.res_id
and record.message_type in ('email', 'comment')
and record.subtype_id == mt_comment
):
ticket = env['helpdesk.ticket'].browse(record.res_id).exists()
if ticket:
author = record.author_id

is_internal = any(not u.share and u.active for u in author.user_ids) if author else False

target_stage_name = 'Answered' if is_internal else 'To be answered'

target_stage = env['helpdesk.stage'].search([
('name', '=', target_stage_name),
'|',
('team_ids', '=', False),
('team_ids', 'in', ticket.team_id.ids),
], limit=1)

if target_stage and ticket.stage_id != target_stage:
ticket.with_context(tracking_disable=True).write({
'stage_id': target_stage.id,
})

Disclaimer: I tested this solution in a standard Odoo 19.0 database. This server action looks for stages named exactly "Answered" and "To be answered". If your Helpdesk teams use different stage names, you must update those strings in the code. Be sure to configure the "Apply on" filter in the automation rule to avoid performance issues. As always, test the automation in a staging environment before deploying it to production.

1
Avatar
Buang
Avatar
Muhammad Farooq Iqbal
Jawaban Terbai

Use Automated Actions on helpdesk.ticket.

Set two rules:

  1. When an outgoing message is posted

    • Trigger: on message creation / update

    • Check message type or author is internal user

    • Set ticket stage to Answered

  2. When an incoming customer email/message is received

    • Check author/partner is customer, not internal user

    • Set ticket stage to To be answered

In practice, this usually needs a small customization on mail.message, because the ticket stage depends on messages linked through the chatter.

Logic:

if message.model == "helpdesk.ticket":
    ticket = env["helpdesk.ticket"].browse(message.res_id)

    if message.author_id.user_ids:
        ticket.stage_id = answered_stage
    else:
        ticket.stage_id = to_be_answered_stage

So: possible, but best done with automated action/custom module on mail.message linked to helpdesk.ticket.

0
Avatar
Buang
Luc Bernard
Penulis

@Muhammad The outgoing action only works when when sending a 'simple' message but doesn't change the stage when sending a message through a template. Do you know where could be the problem with that?

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
Helpdesk module: only support email
helpdesk tickets
Avatar
0
Sep 20
6145
load all other Helpdesk teams' combo box
helpdesk tickets
Avatar
0
Jun 20
4122
How to transfer Helpdesk Tickets from one company to another company in Multi-companies Diselesaikan
helpdesk multicompany tickets
Avatar
Avatar
Avatar
Avatar
3
Okt 25
4687
Automatically move project to a stage when all tasks reach that stage Diselesaikan
project stages automatic
Avatar
Avatar
Avatar
2
Nov 23
6935
How to Enable Portal Users to Reopen Their Own Tickets in Odoo 17EE?
stages helpdesk portal-user odoo17EE
Avatar
Avatar
1
Des 24
3070
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
  • Karir
  • 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah software terintegrasi dengan 70+ aplikasi seperti CRM, Akuntansi, Inventaris, Sales, eCommerce, Marketing, POS; plus fitur lokal Indonesia!

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