odoo/odoo#193778
Created by fw-bot
Merged
at 0617a9469a26bccc58cf37b16b886c6b38008c3b
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:17.0-16.0-opw-4378487-jelu-9xsB-fw
- head
- 98b7317b9d31c762136200c87d701ac67c7da399
- merged
- 5 months ago by Jeffrey Luo (jelu)
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
Forward-Port-Of: #193495