-
- Downloads
[FIX] google_calendar: sync the right description
Steps to reproduce:
- Install 'CRM' module (for test purpose)
- Configure the google calendar credentials on Odoo
- Go to CRM -> Configuration -> Activity Types and create a new one
- Set 'Meeting' as Action
- As default note, add some bullet points:
```
Hello :
- First point
- Second point
- Third point
```
- Open any Opportunity and create a new Activity (in the chatter)
- Select 'Meeting' as activity type and open the calendar
- Add a new event (description should be field with the default note)
- Open the event (on Odoo and/or Google Calendar)
Issue:
The description of the event is broken (bullet points missing).
Cause:
When syncing the event from Odoo to Google Calendar, the description
is converted to plain text (using `html2plaintext` function).
Then, when syncing the event from Google Calendar to Odoo,
the description is also updated locally with the remote one.
Solution:
Don't convert the description to plain text but use
`tools.html_sanitize` on the html content instead to sanitize it.
opw-3105194
closes odoo/odoo#115304
Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com>
Showing
- addons/google_calendar/models/calendar.py 1 addition, 1 deletionaddons/google_calendar/models/calendar.py
- addons/google_calendar/tests/test_sync_google2odoo.py 4 additions, 4 deletionsaddons/google_calendar/tests/test_sync_google2odoo.py
- addons/google_calendar/tests/test_sync_odoo2google.py 4 additions, 1 deletionaddons/google_calendar/tests/test_sync_odoo2google.py
Loading