Wednesday, October 16, 2024
3 changes · 17.0
Resolved issues and error corrections
The ChatGPT prompt dialog now avoids duplicate submissions when users press Ctrl+Enter, preventing repeated AI responses for the same request. It also blocks empty prompts from being sent when pressing Enter, reducing meaningless results and accidental usage.
Original PR description
**Behaviour before PR:** - In chatgpt prompt dialog, `submitPrompt` method gets called twice when user presses `ctrl + enter` after writing something. As result chatgpt responds twice with same content. This happens because in `dialog.js` a hotkey service is active on `ctrl + enter` which is responsible to trigger a click event on submit button of dialog and `submitPrompt` gets called second time. - Moreover, if text-area is empty and user hits `enter` then an empty prompt is sent to chatGPT resulting in a meaningless response. **Behaviour after PR:** - Now, `submitPrompt` method gets called once on `ctrl + enter.` - If text-area is empty then pressing `enter` will not submit prompt. task-4207108 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an error that could occur when users added tasks from a custom many-to-many field on a CRM lead. The CRM-specific success message logic now only runs for actual CRM lead records, preventing task popups from trying to use the wrong record information.
Original PR description
Steps to reproduce ================== - Go to CRM - Open a lead - Open studio - Add a new notebook page - Add a many2many field - Select the task model - Save and exit studio - Switch to the new notebook page - Add a new task => Record does not exist or has been deleted. Cause of the issue ================== The CrmFormRecord is also used for the Many2Many popup. project.task also has a stage_id field, checkRainbowmanMessage is then called, but with the id of the task https://github.com/odoo/odoo/blob/54d6a19444bfa4f01d03117e4542a5244f274429/addons/crm/static/src/views/crm_form/crm_form.js#L44-L51 Solution ======== It makes no sense to do this if we are not acting on a crm.lead record => We check the resModel before proceeding opw-4101752
The training-themed mailing template now displays its cover section when emails are sent. This ensures recipients see the intended email design and branding instead of a missing visual section.
Original PR description
Issue: ===== The cover template of the training theme template doesn't show in the sent email. Steps to reproduce the issue: ============================= - Create a new mailing with training template - Send a test email - Cover snippet missing Origin of the issue: ==================== While converting the template from bootstrap to table we expect to have `container` -> `row` -> `col` classes but the template was missing the `col` class opw-3944347