Saturday, February 3, 2024
5 changes · master
Enhancements to existing features
Odoo’s calendar-related screens have been updated to use a newer version of the underlying scheduling component. This improves long-term maintainability and compatibility while preserving key calendar behavior across attendance, time off, homeworking, Google Calendar, and point of sale areas.
Original PR description
*: calendar,google_calendar,hr_holidays,hr_homeworking,point_of_sale In this commit: * Update Fullcalendar to V6.1.10 * Adapt CSS/SCSS for FC (due to skeleton changes) * Remove all calculation of the…
*: calendar,google_calendar,hr_holidays,hr_homeworking,point_of_sale In this commit: * Update Fullcalendar to V6.1.10 * Adapt CSS/SCSS for FC (due to skeleton changes) * Remove all calculation of the height * Adapt mandatoryDays hook * Adapt remove empty week (year month view) * Adapt "more link" hook for styling * Adapt all `hr_homeworking` stuff * Adapt all code that replace elements of FullCalendar * Display background for event in year (`eventDisplay`) * Workaround to restore the week column in FullCalendar [1] Renaming (CSS classes): * fc-bgevent -> fc-bg-event * fc-day-top -> fc-daygrid-day-top * fc-content -> fc-event-main * fc-event-container -> fc-event * fc-day-header -> fc-col-header-cell and fc-day * fc-event-container -> fc-event Renaming (FC/JS options): * allDayText -> allDayContent * columnHeaderFormat -> dayHeaderFormat * dayRender -> NA use hook instead -> dayCellClassNames * defaultDate -> initialDate * defaultView -> initialView * dir -> direction * eventLimit -> dayMaxEventRows * eventLimitClick - > moreLinkClick * eventRender -> NA use hook instead -> eventDidMount and eventContent * header -> headerToolbar * weekLabel -> weekNumberFormat * columnHeaderHtml -> NA use hook instead -> dayHeaderContent Note for altering element of FullCalendar ----------------------------------------- Since FullCalendar V5+, FC use a `VirtualDOM` (Preact). > FullCalendar now internally uses a miniature virtual-DOM library > called Preact. Aside from making the codebase more maintainable, > it makes FullCalendar more performant to end-users. DOM manipulations > and page reflows are kept to a minimum. This is especially true for > rerendering events. FullCalendar no longer needs to rerender ALL > events when just one event changes. It rerenders only what it needs So in our code we can't use `replaceWith` to have custom render on Events and Headers, instead we need to use the FC hooks `eventContent`. Note for `weekNumbersWithinDays`: --------------------------------- Since FullCalendar V5+, the `weekNumbersWithinDays` is not more available and so there is no more the "Week" column into the calendar. So instead, we patch the Fullcalendar at the end (`viewDidMount`) of the "Preact Lifecycle" to add the week column. Note for visual: ---------------- Due to the skeleton's changes of FullCalendar V6, some CSS rules have no equivalent matches, so it's challenging to reproduce exactly the old style. Refs: https://fullcalendar.io/docs/v5/upgrading-from-v4 https://fullcalendar.io/docs/upgrading-from-v5 [1]: https://fullcalendar.io/docs/v4/weekNumbersWithinDays task-3600478 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update refreshes Odoo's spreadsheet engine with improvements to highlighting, formula searches, exports, clipboard handling, and Mac keyboard shortcuts. Business users should see a smoother spreadsheet experience, especially when working with conditional formatting, data validation, lookup formulas, and exported files.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/816e346fc [REL] 17.2.0-alpha.3 https://github.com/odoo/o-spreadsheet/commit/da3fd36ca [FIX] link: use updated…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/816e346fc [REL] 17.2.0-alpha.3 https://github.com/odoo/o-spreadsheet/commit/da3fd36ca [FIX] link: use updated secondary color https://github.com/odoo/o-spreadsheet/commit/8f233b349 [REF] model: rename drawGrid method https://github.com/odoo/o-spreadsheet/commit/cf1af1799 [MOV] composer: rename store test file https://github.com/odoo/o-spreadsheet/commit/34c244576 [REF] composer: rewrite plugin with stores https://github.com/odoo/o-spreadsheet/commit/f851c3cdb [REF] notification: rewrite with stores https://github.com/odoo/o-spreadsheet/commit/78c973722 [REF] Popover: rewrite plugin with store https://github.com/odoo/o-spreadsheet/commit/7e5469736 [MOV] find & replace: rename test file https://github.com/odoo/o-spreadsheet/commit/471fd6c7b [REF] find & replace: rewrite with a store https://github.com/odoo/o-spreadsheet/commit/74d6c4c44 [MOV] SelectionInput: rename test file https://github.com/odoo/o-spreadsheet/commit/25d50701d [REF] SelectionInput: rewrite plugin with store https://github.com/odoo/o-spreadsheet/commit/69f4397b6 [IMP] highlight: add highlight on CF/DV hover Task: 3571796 https://github.com/odoo/o-spreadsheet/commit/8d2ae4d21 [IMP] stores: add a way for store to draw on the canvas Task: 3571796 https://github.com/odoo/o-spreadsheet/commit/f0486f503 [IMP] highlight: draw highlight over cell borders Task: 3571796 https://github.com/odoo/o-spreadsheet/commit/0ea6a277f [REF] conditional_format: split list panel and cf preview Task: 3571796 https://github.com/odoo/o-spreadsheet/commit/1f29a5831 [ADD] store engine: a state management system for components https://github.com/odoo/o-spreadsheet/commit/4f478b584 [IMP] formulas: allow lookup formulas to perform wildcard search Task: 3703048 https://github.com/odoo/o-spreadsheet/commit/81577bfa4 [IMP] build: add odoo-module ignore annotation Task: 3439583 https://github.com/odoo/o-spreadsheet/commit/1402030d4 [REF] clipboard: Rename handlers files https://github.com/odoo/o-spreadsheet/commit/d7b90d4ef [REF] model: preserve default currency format https://github.com/odoo/o-spreadsheet/commit/3c3d312f1 [REF] clipboard: refactor copy-paste handling Task: 3637334 https://github.com/odoo/o-spreadsheet/commit/76ce136d0 [FIX] export: transform unbound references Task: 3618912 https://github.com/odoo/o-spreadsheet/commit/fb47aa22f [FIX] export: transform unbound references Task: 3618912 https://github.com/odoo/o-spreadsheet/commit/05e1e1d4d [FIX] export: remove line returns in formula Task: 3618912 https://github.com/odoo/o-spreadsheet/commit/97c88097c [FIX] Grid: Support Mac shortcuts in `Grid` Task: 3707416
Ecuadorian customers can now provide the required local identification information when editing their contact details through the portal. The portal form adds an identification type, renames VAT to Identification Number, and requires both fields to help businesses collect compliant customer data.
Original PR description
Currently, if a customer wants to edit his/her information from the Portal access, they cannot modify the information linked to EC. This commit aims to support Ecuadorian companies needed information when editing the portal contact information: - added "Identification Type" field - renamed "VAT" to "Identification Number" - make those 2 fields required task-id: 3620196
The spreadsheet features have been updated to a newer library version, bringing incremental improvements to spreadsheet behavior and related link and filter interfaces. This helps keep document spreadsheets current and more reliable for users working with embedded spreadsheet tools.
Original PR description
…-alpha.3
The calendar technology used by Appointment, Knowledge, and Planning has been updated to a newer version. This helps keep scheduling views compatible, maintainable, and ready for future improvements without changing the core business workflows.
Original PR description
Enterprise adaptation for the update of the lib FullCalendar. task-3600478