Daily updates from Odoo
Sunday, July 12, 2026
1 change · 19.0
Resolved issues and error corrections
AI requests now continue working for non-admin users when some record fields are not accessible to them. Instead of crashing, the system skips restricted fields and still provides the available context to the AI feature.
Original PR description
- issue: _ai_serialize_fields_data() builds the JSON context sent to the AI model by iterating over all fields of a record. It is meant to silently skip any field the current user has no access to, but the field value was read outside of the try/except AccessError guard. As a result, any field that raises an AccessError when accessed (e.g. res.partner.rtc_session_ids, restricted to base.group_system) made the whole AI request crash for non-admin users, even though the feature is meant to be usable by everyone. - fix: Move the field value read inside the try block so the existing except AccessError: continue correctly skips inaccessible fields instead of letting the exception propagate. opw-6311015