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

[12.0] Fix issues with connector_office_365 and hr.leaves #83

Open
wants to merge 3 commits into
base: 12.0
Choose a base branch
from

Conversation

gurneyalex
Copy link

The details are in each commit

  • fix a crash when migrating from a version where tenant_id is not present
  • fix a crash when validating a Leave request when the employee is not authenticated in office 365
  • improve some error messages and logging

the ORM returns False in that case, and you get a crash when concatenating
strings and booleans
the validation of the leave creates the calendar event which is immediately
exported to Office 365, and this fails if the employee is not authenticated.

This fix calls super() with a changed context to prevent the synchronisation of
the event to Office 365, and give us the chance to create the task requesting the
employee to authenticate to get the proper creation of the event in Office 365
Copy link
Contributor

@astirpe astirpe left a comment

Choose a reason for hiding this comment

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

LGTM
I think @tarteo would be interested in reviewing this.

and add an error log when access is refused
@gurneyalex gurneyalex force-pushed the 12.0-fix_connector_office_365 branch from add166f to 90f9eb0 Compare March 30, 2021 12:35
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.

None yet

3 participants