Thursday, July 24, 2025
4 changes · master
Resolved issues and error corrections
A small internal fix makes the web editor available consistently across automated tours. This helps reduce test issues and supports more reliable validation of Studio-related behavior without changing day-to-day user workflows.
Original PR description
This commit moves the patch of editor into html_editor to expose the editor instance globally for all the tours. Community PR: https://github.com/odoo/odoo/pull/212032 Forward-Port-Of: odoo/enterprise#90764
The AI assistant no longer sends the latest user question twice when building conversation context. This helps produce cleaner, more accurate AI responses and avoids unnecessary processing.
Original PR description
Prior to this commit, we send messages to the llm like the following:
```
[
{'content': Markup('<p>first question</p>'), 'role': 'user'},
{'content': Markup("<p>Sure, I'm here to help. What's your first question?</p>"), 'role': 'assistant'},
{'content': Markup('<p>second question</p>'), 'role': 'user'},
{'role': 'system', 'content': "You are a RAG assistant.\n\nToday's date to be used: 2025-07-18"},
{'role': 'user', 'content': 'second question'}
]
```
We're actually duplicating the user's prompt and this is because of the retrieval of the chat history. Before calling generate_response, we post the user's message. Therefore, he's message is already recorded in the db. We should then skip the most recent message to assemble the chat history since its just the same to the prompt.
Forward-Port-Of: odoo/enterprise#90665
Forward-Port-Of: odoo/enterprise#90502The automated Field Service stock test was adjusted to match the updated task list behavior. This keeps quality checks aligned with the product and helps prevent false test failures after related platform changes.
Original PR description
This commit adapts the `industry_fsm_stock_test_tour` tour according to the changes made in community. That is, now the main list view of tasks will now be readonly as before instead of editable with a open form view button. Forward-Port-Of: odoo/enterprise#89585
Point of Sale now stops zero-amount customer deposits before they are processed and shows a warning instead. This prevents an unexpected error screen and helps cashiers continue their workflow smoothly.
Original PR description
Steps to reproduce: =================== - From the POS UI, select a customer - Select Deposit Money - Try to deposit `0` amount by clicking Validate button Issue: ====== A traceback is raised when attempting to validate a deposit with zero amount. Cause: ====== The system does not check for zero-amount orders when creating a deposit payment line. Fix: ==== Add a dialog warning when the deposit amount is zero to prevent further processing. Task: 4862811 Forward-Port-Of: odoo/enterprise#90739 Forward-Port-Of: odoo/enterprise#87709