summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/web_calendar.xml
AgeCommit message (Collapse)Author
2020-08-11[IMP] base,web: add scales param to calendarMichael Mattiello (mcm)
This commit adds the parameter `scales` in the calendar view's template. This parameter can be used to choose which mode(s) is/are allowed. This commit also refactors the way we manage calendar scales. Before scales were defined in model and renderer, now it's defined in the view and given to model, controller and renderer by params. Task: 2193921
2020-08-11[IMP] base,web: add year scale to calendarMichael Mattiello (mcm)
This commit adds a new year scale to the calendar view. It comes with a new view in the calendar, this view displays a 4x3 grid which cells are month views. Task: 2193921
2020-06-23[IMP] project: improve calendar viewArnaud Joset
Before this commit, the calendar view showcases tasks by deadline. Because it is a simple date field, the day/week modes don't have much value and are even confusing to the users, who expect to be able to define timeframes. In addition, the quickcreate doesn't allow to select a project. This is problematic because it leads to "ghost" tasks. closes odoo/odoo#52478 Taskid: 2264594 Related: odoo/enterprise#10976 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-26[FIX] web: calendar: hide event span when not usedRomeo Fragomeli
Due to commit odoo/odoo@8e48ba3eb59939cb5f8bdb715afa5e520b532a00 a span was added to show the time before the title on a event in month view. DOM of event +---------------+ | SPAN FOR TIME | +---------------+ | TITLE | | | | | +---------------+ This commit, hide the empty span when is not needed, to avoid empty blank space. Steps to reproduce: * Go in calendar app * Go in view week (BUG) closes odoo/odoo#51859 X-original-commit: 8456be44b1bc6746563cbca5366257a1da8b4a53 Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com> Signed-off-by: rfr-odoo <rfr-odoo@users.noreply.github.com>
2020-03-31[MOV] web: extract mobile-specific code to enterpriseRomeo Fragomeli
Task ID: 2092550
2020-03-31[REF] web: extracts calendar's methods to allow customizationRomeo Fragomeli
This commit extracts some calendar's event handlers, private methods and templates to create 'hooks' allowing further customization. Task ID: 2092550
2020-03-20[IMP] calendar, web: private events shouldn't be editable/deletableHiral Bhavsar
Before this commit, when user attempts to edit or delete a private event without being an attendee, it raises an access right error. This commit disables edit and delete buttons in this case, in addition to hide event details. task-2151150 Closes https://github.com/odoo/odoo/pull/42569 closes odoo/odoo#42569 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-03-04[IMP] web: prevent tooltip duplication on a responsible in the calendarKaushalya Mandaliya
Before this commit, Hovering on a responsible on the right column of the calendar will: - show a classic yellow tooltip - show a custom tooltip with a bigger image After this commit, Hovering on a responsible on the right column of the calendar will: - show a custom tooltip with a bigger image if image exist else, show classic tooltip PR odoo/odoo#45353 Task-2194828 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-01-29[REF] web: calendar: allow disabling the delete buttonAnkita Raval
In this commit, we add a new attribute "Delete" for user conveniency if he don't want 'Delete' button on popover card they easily achive by "delete=false" attribute and also add a testcase for it. task-id:2088954
2020-01-24[IMP] web: show start time of regular event in calendarPriyanka Kakadiya
With this commit, the start time of single day events is displayed in the calendar view, in month mode. This only applies to non allday events. This can be disabled by setting (already existing) option 'hide_time' to true on the calendar arch. task-2058477 Co-authored-by: Mohammed Shekha <msh@odoo.com>
2019-12-19[FIX] web: color for calendar views without `color` attributeDamien Bouvy
The `color` attribute allows specifying a field by which the calendar view will color the event entries in the view. In views where this attribute is not defined, the event was instead given the `text-white` class, which rendered the event invisible in the calendar, save for a slight left-border. This commit just use the 1st color class by default in such cases, ensuring all events are visible. opw-2145652 closes odoo/odoo#42200 X-original-commit: 375b34be6ef198753f52a650159edee4d1883006 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-12-09[REV] web: reverts update to fontawesome 5.11.2Kevin Baptiste
This reverts commit ff1c35513aecef5fbc30f7c2f3834450e719714e. closes odoo/odoo#41480 X-original-commit: 116057b26e71db4692280463669f3e80d813ddcc Related: odoo/enterprise#7110 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-11-28[FIX] web: typo calendar highlight -> ok nowNicolas Lempereur
Adapt calendar highlight option (that "highlight" event linked to the record we come from) to current JS framework data structures. note: this changeset also fixes the original `_compute_is_highlighted` that was would trigger CacheMiss errors, and also adds back the CSS for highlighting that was lost between 12.0 and 13.0 version. opw-2131494 closes #40791 closes odoo/odoo#41077 X-original-commit: da56e3e7036ecdb3905f4152778e853e080e0163 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-11-28[IMP] web: update to fontawesome 4.7.0 to 5.11.2Kevin Baptiste
FontAwesome 5 introduced new names for some icons as described on https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#name-changes This commit replaces the old names to the new ones. closes odoo/odoo#35826 Taskid: 2050241 Related: odoo/enterprise#5180 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-08[FIX] web: remove flickering in calendar popoverGéry Debongnie
Before this commit, the calendar popover was opened before the popover widget was ready. This is not usually the way it is done in odoo. closes odoo/odoo#31874 Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2019-08-07[REF] web: refactor the calendar viewsri-odoo
Improve design and introducing several usability improvements: - Removed customization of an event card, just display event title. - Added popover, popover consist of two sections: 1) Show the title, date and time of an event. Date and time are automatically computed according to the user timing preferences, language and event duration. Can be hidden with hide_date/hide_time attribute respectively. 2) Display all the fields specified inside the <calendar/> element. fields can be specified with a widget and its options. e.g. <field name="name" string="Custom Name" widget="char" options="{}"/> - Show avatar in popover for filters. - Removed hide sidebar feature. - Increase readability using a better color selection. - Better UI in mobile. And, Adapted test cases Task 1919926 Co-authored-by: jat-odoo <jat@openerp.com>
2019-05-02[IMP] web: make the summary field mandatory on calendar view.Rishabh Jadia
while creating the event directly from calendar it opens a quick create with summary field which is not mandatory. Task-1917002 closes odoo/odoo#31236 Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-02-08[IMP] web: mobile calendar today button alignmentRomain Estievenart
The "today" button should be aligned (both size and position) with the view switcher icon. Task ID: 1891955
2019-02-05[IMP] web: Improve calendar display when no partner is set on eventVandan Shah
Task:- 1906798 PR:- #28669 Co-authored By:- Mohammed Shekha <msh@odoo.com>
2018-08-17[FIX] web: BS4, restore calendar view's sidebar filters checkboxHiral Bhavsar
Currently cross sign not appearing inline to checkbox while hovering sidebar filters and checkbox tick/untick not working properly.
2018-07-27[REF] *: BS4, 'pull-left/right' -> 'float-left/right'qsm-odoo
2018-07-27[REF] web, *: BS4, use custom BS4 checkbox everywhereqsm-odoo
Before this commit, Odoo used checkboxes in three different ways: - A simple <input type="checkbox"/>, mainly in the frontend. The style is browser dependant. - Same as above but with the BS3, checkbox structure. The style is still the same, but the alignement is supposed to be better (which is not always the case). - The Odoo official structure: ``` <div class="o_checkbox"> <input type="checkbox"/> <span/> </div> ``` which allows to have a cross-browser checkbox style and correct alignements. The goal after this commit is to only use the BS4 *custom* checkbox structure to achieve the same goal as our official structure (and remove that one): ``` <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="customCheck1"> <label class="custom-control-label" for="customCheck1">...</label> </div> ``` /!\ Labels are now required (use a zero-width space if necessary)
2018-07-27[REF] *: BS4, adapt formsqsm-odoo
The 'form-horizontal' class have been removed; the '.form-group' elements must now use the 'row' class for an horizontal layout. The 'control-label' class was renamed to 'col-form-label'. The 'help-block' class was renamed to 'form-text'. The 'has-error' and 'has-success' classes have been removed and replaced by a new system using the :valid and :invalid pseudo-classes, when a parent has the 'was-validated' class. While this system is great, it is not straightforward to use it in Odoo. Fortunately, BS4 provides the 'is-valid' and 'is-invalid' classes as fallback. This commit replaces the 'has-error' and 'has-success' classes by 'o_has_error' and 'o_has_success' classes (for JS compatibility) and use the 'is-*' fallback classes. (The 'has-warning' class has no equivalent but was unused in Odoo anyway).
2018-07-27[REF] *: BS4, rename btn-default to btn-secondaryqsm-odoo
BS4 "btn-default" class was replaced with "btn-secondary", which makes more sense.
2018-07-27[REF] *: BS4, remove the use of btn-smqsm-odoo
Odoo made the bad choice of using the 'btn-sm' class for every button instead of configuring the padding for default 'btn' to be smaller. In BS4, the style of btn-sm is actually more complex, lowering the font-size too. Also, btn-xs was removed so we would not have the possibility to display smaller button than our default ones. This commit removes btn-sm wherever it was used. Unfortunately, this might remove it at some places where it made sense but this can be restored in a second time.
2018-07-27[REF] *: BS4, adapt display classesqsm-odoo
The system completely changed. I also had to adapt classes to new screen breakpoints. hidden/hide -> d-none show -> d-block hidden-xs -> d-none d-md-(block/inline/...) hidden-sm -> d-md-none d-lg-(block/inline/...) hidden-md -> d-lg-none d-xl-(block/inline/...) hidden-lg -> d-xl-none visible-xs-* -> d-* d-md-none visible-sm-* -> d-none d-md-* d-lg-none visible-md-* -> d-none d-lg-* d-xl-none visible-lg-* -> d-none d-xl-* hidden-print -> d-print-none visible-print-* -> d-none d-print-* ... and all possible combination of those had to be handled too.
2018-06-22[IMP] Improve compatibility with screen readers (accessibility) (#24574)kujiu
Today, Odoo is really tricky to use without seeing the screen, it must be improved to be usable. This PR forbid to use labels without a "for" attribute, add some title, rule and aria attributes in HTML. With that, Odoo will be fully usable with a screen reader. * [IMP] Labels must have a for attribute. Improve accessibility. * [IMP] Better error message when trying to read a missing cached value * [FIX] Add some aria-label and title attributes for screen readers. * [FIX] Template name is not included in the error message in case of SyntaxError in QWeb * [FIX] Improve the Tour failed at step error message to be more explicit. * [IMP] Add aria-labels * [FIX] Add missing aria-label on failing test * [IMP] aria-hidden means hidden. Fix all bad aria-hidden and hide aria-hidden for all. * [IMP] Color names on kanban views and many2many tags * [IMP] Add some checks on views for accessibility. * [IMP] Add `alt` attribute on `img` tags. * [IMP] Add aria-label and title on non-described icons * [IMP] Add button role to widgets with btn class * [IMP] Translate aria and formatted attributes. * [IMP] Remove wrong aria-labelledby * [IMP] Add menu role on dropdowns * [IMP] Buttons must be focusable * [IMP] Add aria attributes on progress bars * [IMP] Improve accessibility of basic widgets * [IMP] Change main layout to more semantic tags * [IMP] Add menuitem role when missing * [IMP] Remove wrong role='presentation' * [IMP] Improve accessibility of tab panels * [IMP] Add aria-invalid on invalid fields * [IMP] Add aria-sort on ordered columns * [IMP] Add role on alerts * [IMP] Use dialog role, header, main and footer tags for modals * [IMP] Add labels on o_status * [IMP] Improve accessibility of kanban view with feeds and articles * [IMP] Add alerts in case of new messages * [IMP] Add widget, navigation or img role to aria-labelled items
2018-03-05[FIX] web: Calendar: control panel buttons in mobileAaron Bohy
In mobile, we want a special 'Today' button to be displayed on the bottom right corner of the control panel. Rev. ebe58d92 enforces this by defining less layout rules on the control panel. However, those rules apply globally, for all control panels, not only in Calendar views. So it produces undesired behaviors in other views. This rev. removes the undesired less rules, and instead appends the 'Today' button in the pager area, which is in the bottom right corner.
2018-02-27[IMP] web: Calendar: mobile UX improvementsSuraj Shukla
The following tweaks have been applied on mobile devices: - remove left and right arrow in control panel - enable swipe navigation (instead of left/right arrows) - replace 'Today' button by a calendar icon - remove static text 'Attendees:' in events - shorten header content in week mode to prevent them from overlapping - ensure that the calendar fits in the screen Also introduce a mobile test suite for the calendar view. Task #31449
2017-09-07[FIX] web: allow default value for calendar quick createAkash Bhavsar
* fix typo, widged is actually widget; * support name coming from context for calendar event quick create; Support of context could be made generic in quick create mechanism but in the meantime this fix is considered as sufficient for the use case we have.
2017-07-03[FIX] web: display indicator when many attendees in calendar eventDavid Monjoie
In saas-15, when an event had more than 3 attendees, it used to show a '+' at the left of the avatars. This behavior was lost in saas-16 where it became 'display 5 avatars max and that's it'. This commit brings back the behavior of saas-15 and improves it such that the '+' sign displays the number of additional attendees whose avatars are not shown and displays it on the right. Example for 7 attendees, '[]' representing an avatar: saas-15: +[][][] saas-16 before: [][][][][] saas-16 now: [][][]+4
2017-06-01[FIX] web: add `o_input` class on calendar dialog inputMartin Geubelle
Since the rev 250e716 the class `o_input` needs to be set on an input to be correctly styled.
2017-04-28[DOC] web: add documentation to use calendarChristophe Matthieu
The calendar view was changed with the new view, but the documentation was not updated.
2017-04-11[REF] web, *: redesign all JS viewsGéry Debongnie
This commit introduce a full redesign of all JS views. We started basically from scratch. The goal was to unify all the various views under a common framework, to make them testable, to make then usable in different conditions (in studio, or in the frontend), and to make our lives easier. Some important points are: - we introduced new coding guidelines (camelCase, 80 chars width, ...) - we have a brand new testing framework (still QUnit based) - kanban view moved to the web addon - calendar view (formerly web_calender) moved to web as well - the tree view was removed - all new code should be documented We hope that this code is the start of a new era for the Odoo web client, we want to have a high quality codebase, well documented, well tested, well designed. Work done by the framework team: mostly aab, ged, chm, dmo, qsm