helpdesk icon indicating copy to clipboard operation
helpdesk copied to clipboard

helpdesk_mgmt sequence

Open tduverger opened this issue 2 months ago • 6 comments

When i create a new ticket on mail team incoming, sequence HT doesn't work. Ticket number is the mail subject. When i create manually a new ticket it works.

tduverger avatar Oct 03 '25 19:10 tduverger

@tduverger It would be helpful to mention the affected Odoo version.

rrebollo avatar Oct 16 '25 12:10 rrebollo

V18 and it works for V12

tduverger avatar Oct 20 '25 07:10 tduverger

@rrebollo @tduverger I have the same problem!

When receiving an email, it search the rec_name (line 1454) to insert the subject (line 1456) https://github.com/odoo/odoo/blob/18.0/addons/mail/models/mail_thread.py#L1454

The rec_name is defined here : https://github.com/OCA/helpdesk/blob/18.0/helpdesk_mgmt/models/helpdesk_ticket.py#L8

The problem begin with this commit since Aug 26, 2024 : https://github.com/odoo/odoo/commit/75b385bae036031b8fef651977bad71691b1e7a2#diff-a90153cd0202b1feb0d5ef9cf041bf662256cb7ce1434b610709a7557db3c9ce When change «data.get('name')» to «data.get(name_field)» Check file mail_thread.py

It's complicate to fix it, it can broke hr_recruitment

mathben avatar Oct 29 '25 22:10 mathben

I create a patch, it's not clean, but it works! https://github.com/ERPLibre/odoo/commit/cd227bda3f96f4c33b55d49f98eda2baa8b266b9

mathben avatar Oct 29 '25 22:10 mathben

Same problem here.

mileo avatar Oct 30 '25 02:10 mileo

Your code is better, I test it (without the migration, I don't need it) and it works. Thanks

mathben avatar Oct 30 '25 20:10 mathben