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

[16.0][IMP] fieldservice_calendar: Sync description #1199

Open
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

houzefa-abba
Copy link
Member

This PR contains 2 commits: 1 to modernize code related to this field sync; 1 which adds description sync.


Propagate description updates between FSM order & calendar event.

1 is an HTML field, the other is not; we handle conversion.

Before this change, description was only propagated at calendar event creation, and without text➔html conversion.


To test:

  • Field Service > Configuration > Settings: Enable "Manage Teams"
  • Field Service > Configuration > Teams: Set a "Team's calendar"
  • Create an FSM order, give it a scheduled date & duration
  • Update FSM order description, observe updates in calendar event

FSM order with multiline description & schedule:
Screenshot at 2024-07-12 15-30-33

Calendar event with that multiline description (thanks to text➔html conversion):
Screenshot at 2024-07-12 15-31-26

* Factor out recurse_order_calendar context key checks
* Use record sets more
* Tests: Factor out order creation & use tests.Form instead of plain create
Propagate description updates between FSM order & calendar event.

1 is an HTML field, the other is not; we handle conversion.

Before this change, description was only propagated at calendar event
creation, and without text➔html conversion.
@OCA-git-bot
Copy link
Contributor

Hi @hparfr,
some modules you are maintaining are being modified, check this out!

@max3903 max3903 added this to the 16.0 milestone Sep 19, 2024
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