odoo/odoo#195804
Created by fw-bot
Merged
at 7985c10a587d9ea5a4a019abe03fd07db60101fa
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-18.1-16.0-opw-4378487-jelu-dpYE-fw
- head
- 7128818c3fa683f03b72e59e36d929151d898235
- merged
- 4 months ago by Security, Florian Vranckx (flvr)
odoo/odoo | |
---|---|
16.0 | #193495 |
17.0 | #193778 |
saas-17.2 | #193800 |
saas-17.4 | #193822 |
18.0 | #193835 |
saas-18.1 | #195804 |
saas-18.2 | |
saas-18.3 | |
master | #195835 |
[FW][FIX] auth_ldap: add email on new res.partner
Before this commit, when a new res.user is created after signing in with auth_ldap, there was no email on the linked res.partner, which may cause issues in modules such as helpdesk, where partner email is used to find related tickets.
res.users created through the form view will trigger the onchange which sets the 'email' = 'login', which does not happen when creating a user directly through the ORM.
This commit adds 'email' as a key which is returned by the method _map_ldap_attributes, which is used to create new partners with the correct email associated with the res.user login.
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr