odoo/odoo#163626
Created by fw-bot
- label
- odoo-dev:16.0-15.0-opw-3892778-allow-employee-without-user-to-create-expenses-from-email-cano-I_pz-fw
- head
- 63069177bd00f08c38f7dec6089a1e6dd2e272ed
- target
- 16.0
- merged
- 3 weeks ago by Accounting, Brice Bartoletti (bib)
- forward-port of
- odoo/odoo#163494
[FW][FIX] hr_expense: allow to create expenses via alias for employees not related to a user
[FIX] hr_expense: allow to create expenses via alias for employees not related to a user
Current behavior:
When trying to create an expense using alias, if a `hr.employee` not linked to a user want to, he won't be able
This bug occurs after this [commit](https://github.com/odoo/odoo/commit/fbeb7aebcadbe77ff7774b538550373650b329fe)
Steps to reproduce the error :
- Create an employee not related to a user
- Configure alias for expenses
- Try to send an email to the expense's alias and check at the logs
After this commit:
Employees without a related user will be able to create an expense from an email alias
opw-3892778
opw-3892701
opw-3893319
opw-3893591
Forward-Port-Of: odoo/odoo#163494