Friday, December 9, 2022
3 changes · master
Enhancements to existing features
Social media feed views were updated to use safer, more compatible interaction handling. This reduces the risk of crashes when views are customized in Studio and keeps post formatting and engagement actions working consistently across social channels.
Original PR description
Kanban view archs should not contain t-on-click directives as it is not a qweb directive. Also, it's forbidden to use JS implementation details that are only available in the custom js_class the main reason for that is that it will crash if used by studio because js_class are ignored by it. This PR converts all t-on-click occurences in the views arch by addEventListener in the KanbanRenderer for the Image Carousel and in the KanbanRecord for the Comments / Likes feature of the various social medias. It also converts formatPost method call in the views arch by a custom field widget. And finally it removes _insertThousandsSeparator for the same reason and also because integer field widget already does the same. Task-3061215
The social media calendar now supports dragging and dropping draft posts, making it easier to reschedule content. Posts are color-coded by campaign and draft posts are visually hatched, while users are prevented from creating or moving draft or scheduled posts into the past.
Original PR description
PURPOSE This commit allows one to drag and drop the draft post on the calendar view. It also color the post depending on the utm campaign instead of its state. The draft state are hatched to easily distinguish them from others. LINKS Task-2860008
Country-specific fields are now shown only when a selected company belongs to the relevant country. This reduces confusion in multi-company setups by hiding irrelevant localization options from users working with companies in other countries.
Original PR description
Many country-specific fields were displayed while a company with another country was selected (in case of a multi-company environment). These country-specific fields are now visible only if one of the selected companies with said country is selected. Community PR https://github.com/odoo/odoo/pull/106221