Post by dstanton »

Hello Bryntum team -

I am new to the Gantt module, so this may be a lack of understanding on my part. I was looking for projects in the "View BryntumGantt" view in Projects in Odoo v14, and noticed that I could see the projects that are not for the current company I had selected. We have a multi-company environment, and I have permission for all the companies in the system. I only had one company selected in the "company selector drop down" menu, so I know that is not the issue.

I have looked at a user that only has permissions for one company, and they seemed to be able to see just the one company's data. So, it seems like the code is looking at permissions rather than what company is selected?

Maybe this is by design and I'm not aware of this.

Thank you in advance for your help with this question!


Post by Terence »

To what view are you referring here 'View BryntumGantt'? Our module is build on top of 'project' or 'project_enterprise'. I think the permissions are set those modules. You can view any project shown by those modules.


Post by dstanton »

Setup:
Multi-Company Odoo v14 environment
Gantt View PRO (Enterprise) v 14.0.1.3.3 installed
Only one company is selected in the company selector drop down menu.

Attachment_1.png
Attachment_1.png (18.27 KiB) Viewed 1118 times

OTS Projects

OTS_Projects.png
OTS_Projects.png (92.41 KiB) Viewed 1118 times

BOTI Projects

BOTI_Projects.png
BOTI_Projects.png (68.92 KiB) Viewed 1118 times

Post by dstanton »

Here are some steps to reproduce the situation:
• Go into Odoo
• Navigate to Projects
• Select a Project with Tasks on it
• Go into the Task
• Click on the “View BryntumGantt” button that takes you to that view

Attachment_2.png
Attachment_2.png (74.82 KiB) Viewed 1118 times

Here is the projects that I see when I am logged in with a user that only has permissions for one company (Burr Oak Tool Inc.)

Attachment_3.png
Attachment_3.png (28.66 KiB) Viewed 1118 times

Now, if I log in with a user that has access to multiple companies and view the exact same project, here is what the user will see

Attachment_4.png
Attachment_4.png (40.03 KiB) Viewed 1118 times

What I would expect to see is just the projects that are specific for each company, not the projects for all companies.
Attached are two other screenshots that show OTS(Oak Technical Services) projects and BOTI(Burr Oak Tool) projects.

Hopefully, that explains thing better.


Post by Terence »

Thanks. We do not filter on the company selector, only on permissions.

I have created a ticket for this feature request.
https://github.com/bryntum/odoo-support/issues/69


Post Reply