Friday, January 24, 2025
1 change · master
Code cleanup and technical improvements
WhatsApp template fields were reorganized so templates are not unnecessarily recalculated when messages are sent. This makes the sending flow more reliable while avoiding disruptive view updates for existing customers.
Original PR description
The previous fix https://github.com/odoo/enterprise/commit/6f1b1a8 was not an actual solution, as the proper fix requires a view update. This is not feasible in the stable version since we cannot force-update all customers' views. The purpose of this task is to refactor the **header_text_1**, **free_text_x** and **button_dynamic_url_x** fields. This will eliminate the need to use _origin and move the readonly attribute from the XML side to the Python file, preventing the WhatsApp template from being recomputed upon sending. Task-4083217