Daily updates from Odoo
Thursday, June 5, 2025
1 change · master
Enhancements to existing features
This update removes direct user creation options from user reference fields across multiple Odoo apps. It prevents employees from triggering broken user records and avoids database errors when assigning or selecting users in everyday workflows.
Original PR description
```
* = {account_followup, appointment, approvals, documents, frontdesk, helpdesk,
hr_contract_salary, hr_payroll, hr_referral, knowledge, l10n_ch_hr_payroll_elm_transmission,
marketing_automation, mrp_pim, quality, quality_control, room/views, sale_renting,
sale_subscription, social, spreadsheet_dashboard_sale_subscription, whatsapp}
```
**Current behavior:**
When a field referencing the `res.users` model is included in an XML view, users are offered a "Create" and "Create and Edit" options. If "Create" is selected, it attempts to create the user without required fields like `login`, resulting in a database integrity error due to the NOT NULL constraint on `res_users.login`.
**Improved behavior:**
This commit disables the direct "Create" option for fields referencing `res.users`, preventing invalid record creation.
Sentry - 6263547789
Related Community PR: https://github.com/odoo/odoo/pull/208227