Skip to content

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

Open
gurneyalex wants to merge 3 commits into
onesteinbv:12.0from
gurneyalex:12.0-fix_connector_office_365
Open

[12.0] Fix issues with connector_office_365 and hr.leaves#83
gurneyalex wants to merge 3 commits into
onesteinbv:12.0from
gurneyalex:12.0-fix_connector_office_365

Conversation

@gurneyalex

Copy link
Copy Markdown

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

@astirpe astirpe left a comment

Copy link
Copy Markdown
Contributor

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.

3 participants