helpdesk_mgmt sequence
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 It would be helpful to mention the affected Odoo version.
V18 and it works for V12
@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
I create a patch, it's not clean, but it works! https://github.com/ERPLibre/odoo/commit/cd227bda3f96f4c33b55d49f98eda2baa8b266b9
Same problem here.
Your code is better, I test it (without the migration, I don't need it) and it works. Thanks