Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][MIG] helpdesk_mgmt_fieldservice #652

Open
wants to merge 19 commits into
base: 17.0
Choose a base branch
from

Conversation

imlopes
Copy link

@imlopes imlopes commented Nov 5, 2024

Based on this PR: #608

marcelsavegnago and others added 17 commits November 5, 2024 11:59
When trying to open a res_partner form with a user who doesn't have permission for read fieldservice data, this view causes an error cause it try to set attributes to a button that doesn't exist. Specifying groups_id fix this, extending the view only if the current user has permissions to see that button.
Currently translated at 100.0% (32 of 32 strings)

Translation: helpdesk-12.0/helpdesk-12.0-helpdesk_mgmt_fieldservice
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-12-0/helpdesk-12-0-helpdesk_mgmt_fieldservice/fr/
Currently translated at 100.0% (36 of 36 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_fieldservice
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_fieldservice/it/
Currently translated at 100.0% (36 of 36 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_fieldservice
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_fieldservice/es/
Currently translated at 100.0% (36 of 36 strings)

Translation: helpdesk-14.0/helpdesk-14.0-helpdesk_mgmt_fieldservice
Translate-URL: https://translation.odoo-community.org/projects/helpdesk-14-0/helpdesk-14-0-helpdesk_mgmt_fieldservice/pt_BR/
@imlopes imlopes force-pushed the 17.0-mig-helpdesk_mgmt_fieldservice branch 2 times, most recently from d20e4a8 to 1696b79 Compare November 5, 2024 17:55
@imlopes imlopes force-pushed the 17.0-mig-helpdesk_mgmt_fieldservice branch from 1696b79 to 59caa0c Compare November 5, 2024 18:24
@@ -10,10 +10,10 @@ def action_view_helpdesk_tickets(self):
) and self.env.user.has_group("helpdesk_mgmt.group_helpdesk_user_own"):
context = dict(self.env.context)
context.pop("search_default_open", None)
self = self.with_context(
context_self = self.with_context(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is useless. I would instead just clean the super call as self will be updated with context anyway:
return super().action_view_helpdesk_tickets()
So we need only one return statement in the end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.