summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/kanban.xml
AgeCommit message (Collapse)Author
2019-04-18[MOV] web, project: make cover image generic in kanbanSuraj Shukla
Previously, we could only set cover image on the kanban view of project task. This commit makes the feature generic so now cover image can be added to any kanban view. Technical notes: - field used to display the cover image has to be set as 'data-field' attribute on the kanban dropdown's menu related to cover image - developer will have to take care while designing kanban views with cover image ability in such a way that it does not break the design Task 32108 closes odoo/odoo#31731 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-02-19[IMP] web: improve kanban tooltipVandan Shah
1) Remove the total record tooltip from kanban group. 2) Remove progressbar help from kanban view. 3) Improvements in testcase since we have removed total record tooltip.
2019-02-13[IMP] web: add kanban searchPanelAaron Bohy
This rev. defines a searchPanel widget used in Kanban views to refine search according to specific dimensions. This wigdet is displayed as a sidebar to the left of the kanban view. Part of task 1892462 Co-authored-by: Aaron Bohy <aab@odoo.com> Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by: Raphael Collet <rco@odoo.com>
2019-01-16[IMP] web: add example kanban backgroundjem-odoo
The background example is a set of random fake column and card, directly inspired from the kanban example modal. We want to toggle this background depending on the kanban state; the background will be displayed when there is no column yet, and the quick create column is shown. To do so, we need to update the state of the kanban when deleting a column to (re)display the background in case of removal of the last column. Now, on column deletion, the entire kanban is updated and so entirely rerender (with aab's benediction). Task-1893021
2019-01-16[IMP] web: make kanban example support state bulletsjem-odoo
2019-01-16[IMP] project: improve kanban example sentencesjem-odoo
This commit improves the sentences used in the kanban example modal in order to be more concrete and precised for the users Task-1893021
2018-12-22[FIX] web: Add missing aria attributes in menusLuis González
Some aria attributes were missing on menus, and are required to ensure a good compatibility with keyboard users and screen readers. To solve the above, the following attributes are included: - `aria-expanded`: this should be present in all dropdown menus. This is set on elements with class `dropdown-toggle` and `o_closed_menu`. - `role`: used to improve given information about what elements are for. It is added in the following cases: 1. Non-button elements that have the class `dropdown-menu` are set to `role="button"`. 2. Menu items that have the class `dropdown-item` are set to `role="menuitem"`. 3. Menu separators that have the class `dropdown-divider` are set to `role="separator"`. This is a continuation of baa1c515c592 closes odoo/odoo#29719
2018-09-21[IMP] web: add an option to hide archive option in kanban columnsThibault Delavallée
Currently kanban columns propose an Archive / Unarchive option if the records model has an active field. It allows to directly archive or restore all records belonging to that column. It is currently not possible to control whether this option is present or not as it only depends on the active field being defined on the model. In some specific cases we want to be able to hide this option even if the active field exists. For example future commits will hide this option for leads (crm.lead) as business flow goes through marking them as won or lost instead of archiving / restoring them. This commit adds support of a new archivable parameter when defining the kanban view that hides the archive buttons if it is set to False. Default value is true so that current behavior is kept as it is by default. Doc and tests are added. This commit is linked to task ID 1880051 and PR #26977.
2018-08-22[FIX] project: kanban examples modalDemaret Rivarola Johan
- tab not showing: fade animation was causing the issue. - redirection to home: button instead of anchor to avoid redirection to target href Task #1878160
2018-07-27[REF] web: BS4, review kanban designqsm-odoo
2018-07-27[REF] *: BS4, 'pull-left/right' -> 'float-left/right'qsm-odoo
2018-07-27[REF] *: BS4, adapt input-group structureqsm-odoo
The input-group-addon class has been replaced by a combination of the input-group-text and the input-group-append/prepend classes. The input-group-btn class is replaced by the input-group-append/prepend classes.
2018-07-27[REF] *: BS4, review the 'nav' and 'navbar' componentsqsm-odoo
Now the nav structure is more declarative: the 'nav-item' and 'nav-link' classes have to be put on related nav item and links. Also, the 'active' class has to be put on links instead of items. Same as for the navbar component: - The navbar structure was simplified and meant to be more declarative. - The navbar colors are also now handled by a different set of classes. The 'nav-stacked' class was removed and replaced by flex utilities. The set of classes for colors and nav styles also changed.
2018-07-27[REF] *: BS4, adapt dropdowns and caretsqsm-odoo
- The dropdown structure was simplified, allowing to get rid of the 3-levels structure induced by <ul/> elements and dropdowns can now contain anything. The class 'dropdown-item' is now mandatory for each dropdown clickable element. The class 'dropdown-item-text' can be used to add same padding and style but without making the element have a clickable look. - Dividers now use the class 'dropdown-divider' - The way dropdowns are opened and hidden also changed (before the 'open' class was added on the `.dropdown-menu` parent, now the 'show' class is added on both the `.dropdown-menu` parent and the `.dropdown-menu` itself). - JS-wise, no click event handlers can be put on `.dropdown-toggle` elements anymore (instead, use handlers for dropdown events). - Carets are automatically put on `.dropdown-toggle` elements, so this commit replaces the `.caret` elements with this. This feature was possible to disable but would prevent us from adding a caret with scss. Also, this simplifies the DOM. The 'o-no-caret' class was also introduced to allow using the 'dropdown-toggle' class on non-caret elements. - Also adapt the scss to use $caret-width instead of $caret-width-base
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-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-05-30[IMP] web, crm: minor copywriting in Kanban and CRM flowFabien Pinckaers
2018-05-30[IMP] web: better copy for adding a column in kanban viewsFabien Pinckaers
2018-04-25[IMP] base(_import),web: mute Add/Create button in x2mDipali Tank
... by setting it 'btn-default', because users hesitate between that button, and those in the control panel. Task 32950 Co-authored-by: dbh <dbh@odoo.com> Co-authored-by: aab-odoo <aab@odoo.com>
2018-04-25[IMP] web: Kanban: allow to archive/restore column recordsHiral Bhavsar
This feature has been removed in rev. odoo/odoo@e533085 but this commit reintroduces it. It was considered as "too dangerous" for new users. Instead of removing the feature, a confirmation request has been added to warn the user about his potentially harmful action. The same warning has also been added in List view when archiving records. Task 60393 Co-authored-by: Mohammed Shekha <msh@openerp.com>
2018-01-31[IMP] web: add better message in column quick createGéry Debongnie
This commit add a help message in the column to indicate that pressing escape will discard the current column creation. Note that some JS had to be added to make the message disappear when the input is no longer focused. The reason is that the create column widget may still be visible when the input is no longer focused (for example, because the user clicked on the fake records, or clicked on the example link)
2018-01-26[IMP] web,project: Kanban onboardingParth Patel
The goal of this rev. is to improve the user onboarding on the Project app: when the user creates a new project, he is now guided to properly configure the stages of its project. To do so, we added a new mechanism in the Kanban view, allowing to define examples of processes that can be used in the corresponding view. The style of the ColumnQuickCreate widget has also been changed. Part of task #38740
2018-01-26[IMP] web: Kanban: quick create record with more fieldsAaron Bohy
This rev. improves the QuickCreate widget for grouped Kanban views. It allows specifying in the Kanban arch a form view xmlid, e.g.: <kanban quick_create_view="some_form_view_xmlid"> ... </kanban> When this attribute is set, the referenced form view is loaded and rendered inside the QuickCreate widget. A real FormView widget is instantiated, meaning that all form view mechanisms are available in the QuickCreate (modifiers, default_get, onchanges, widgets...). Task #27475.
2018-01-15[REM] Removed mass archiving from kanban viewRomainLibert
As discussed with fgi and apr mass archiving has been removed in kanban it has been judged too dangerous for the new users that won't be abble to easily revert the archived records
2018-01-03[MERGE] forward port branch 11.0 up to fe22a0f9ca9Christophe Simonis
2017-12-18[FIX] web: kanban column id may be based on valueNicolas Lempereur
A kanban column has two identifiers: - db_id: framework unique identifier for the column - id: either the record res_id (grouped on x2o) or the value The issue is that sometimes the value may be a any string which would be source of issue unexpected for an ID (and there was one issue in mobile renderer). This code change this so "id" is either the record res_id or `undefined` value, and when used in XML we use id or fallback on db_id when we need an identifier. So in the XML data-id on a colum is always either the ID of the record the group is based on, or the db_id in the form. opw-782433 closes #21199
2017-10-18[REF] web: remove dead template/code/filesGéry Debongnie
We sometimes need to clean up stuff. I am actually surprised that there were no more dead templates. We should do the same for css/less.
2017-09-27[FIX] web: review and fix kanban designstefanorigano
- Folded column design - Adapt progressbar header layout - Remove custom opacity mixin (use default o-hover-opacity) - Remove columns' border (increase padding-right) - Decrease counter opacity if no records - Refine counter animations - ...
2017-09-25[IMP] web: grouped Kanban: UX improvements in mobileAaron Bohy
This commit refactors the JS and LESS of the new mobile version of the grouped kanban views. It ensures that the touchSwipe library is lazy-loaded (only in mobile, when entering a kanban view).
2017-09-25[IMP] web: grouped Kanban: UX improvements in mobileDharmang Soni
This commit aims to improve the UX of grouped Kanban views on mobile devices. Only one column is now displayed, full width. The columns' records are lazy-loaded. The user can swipe horizontally to navigate through columns (thanks to the touchSwipe library).
2017-09-25[FIX] web: review kanban column progressbar designqsm-odoo
Now: - Animations do not trigger on first rendering - Fix a bug where 5k was considered smaller than 9 (since 5 < 9) - Properly animate number when it crosses over multiple thousands levels - Always preserve at least 3 digits when switching to a thousands level and never show a decimal (4500000 is represented as 4500k, not 4.5M) - Monetary symbol is not bold (and is better integrated) - Add thousands separators for > 3 digits numbers
2017-09-14[IMP] web, *: add kanban column progress barsqsm-odoo
* crm, project Add a new feature which allows to put a progressbar in the kanban columns. The progressbar shows with the same color the amount of records whose value of a given field are the same in the column. It also indicate the sum of another given field or simply the total number of records. It also allows to subgroup the column content. To define a progressbar, add this as a direct child of the kanban arch: <progressbar field="<name of the field to use for subgroups>" colors="{<one possible value for the above field>: <success, warning or danger>, ...}" sum="<name of the field to sum or nothing to use total number of records>"/> Also: - Properly update record model data's parentID when moving a record - ...
2017-09-14[REF] web: allow adding custom stuff in kanban headerqsm-odoo
Previous kanban header was a div with `flex-flow: row nowrap`. So if someone tried to add some stuff in it, it will be forced to stay on the same row as the title and config buttons. This commit wraps these row elements in a new div to allow kanban header customization (this prepares for the kanban progressbars).
2017-08-28[REF] web: set new kanban designstefanorigano
2017-08-28[REF] web: change kanban icons and colorpickersstefanorigano
2017-08-24[MERGE] forward port branch saas-17 up to 877e7098719Christophe Simonis
2017-08-18[IMP] web: Kanban: quick create and edit featureDhawal Limbuwala
This commit adds an 'Edit' button to the record quick create in grouped Kanban views. When this button is clicked, a name_create RPC is performed and the created record is directly opened in a form view in edit mode.
2017-08-18[FIX] mail, web: use 'o_input' class on kanban and discuss elementsqsm-odoo
Since the new views, the 'o_input' class has to be set explicitely on <input/>, <select/> and <textarea/> elements to have the proper styling.
2017-05-04[IMP] web: custom tooltip in dashboard graph widgetMitali Patel
2017-04-11[REF] web,*: convert Kanban widgets to new styleAaron Bohy
The remaining widgets were KanbanRecord and the two quick create widgets. Now, all kanban files have been converted and refactored.
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