Skip to content
Snippets Groups Projects
Commit f7e3f7c2 authored by Pierrot (prro)'s avatar Pierrot (prro)
Browse files

[FIX] hr_timesheet: allow specific user to preview invoice

How to reproduce the problem:
- Go to Settings -> Users -> choose any user (example Laurie Poiret)
- Note the ID of the res.user (example ID = 8)
- Go to Contacts -> open the contact with that same ID.
- Set that user as a company if not already one.
- Go back to Settings -> Users
- Open the related partner to the concerned user (visible in debug mode)
- Set the parent company of that user as the contact modified before
(contact with the ID = 8, in our example)
- Log in with that user.
- Go to Accounting -> Invoices -> open any invoice
- Click on the preview button -> it will load forever.

Cause of the problem : the system loops on a wrongly configured domain

Solution : the system uses another domain for internal users.
(fix inspired from
https://github.com/odoo/odoo/commit/3378ca8252d3ac0e22a8aa1632ffc436864b26b7

)

opw-2543174

closes odoo/odoo#77683

Signed-off-by: default avatarLTU-Odoo <IT-Ideas@users.noreply.github.com>
parent 8a998285
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment