summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
AgeCommit message (Collapse)Author
2019-07-18[FIX] web: add href to main menusAaron Bohy
This was already the case for sub menus. This allows to right-click and open menu in a new tab. Closes #29345 closes odoo/odoo#34983 Signed-off-by: Julien Mougenot (JUM) <Arcasias@users.noreply.github.com>
2019-07-16[FIX] web: restore kanban progressbar animationNimesh Jethva
With BS4 migration, the progressbar 'active' class should have been renamed 'progress-bar-animated'. closes odoo/odoo#26868 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-06-18[FIX] web: avatar on empty fieldNicolas Martinelli
- Create a calendar event - In debug mode, remove the responsible The 'Avatar Undefined' string is displayed at the botton of the responsibles' list. Do no fetch an image for a falsy value (= falsy id) opw-2010007 closes odoo/odoo#34215 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-05-06[FIX] web: checkbox in favorites menu: don't close on clickLucas Perais (lpe)
Following f4fbaf1efae11e8bd3b1a2938ab765d391764a1b which changes the label/checkbox structure into: ``` <div class="custom-control custom-checkbox"> <input type="checkbox" class="custom-control-input" id="customCheck1"> <label class="custom-control-label" for="customCheck1">...</label> </div> ``` So, before this commit, there may have been multiple input with the same Id. The consequence is that, when clicking on a label, the browser would take the first Id it found which was erroneous, because all checkboxes in Favorites menu had the same Id In reality, the use case goes as: - open a x2m, - search more - Favorites > Save current search > click on one the two checkboxes > The dropdown closed, without checking the box After this commit, when clicking on the checkbox in the favorites menu the checkbox is toggled and the dropdown stays. Also, the checkboxed have now unique ids OPW 1974587 closes odoo/odoo#33032 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-05-06[FIX] web: blurry menu dropdown on chrome when zoom != 100%Aaron Bohy
This rev. disables Popper.js 3d transformation for positioning bootstrap dropdowns in navbar, as this transformation causes a rendering issue on webkit-based browsers (the text in the dropdown is blurry). See https://github.com/twbs/bootstrap/issues/23590 Note that it has already been disabled for the other menu dropdowns (user menu, debug menu) by rev. 5373db1. Another solution would have been to override the default value in our bootstrap.js extension file, but for dropdowns that aren't in the navbar, the dynamic positionning could be interesting. Fixes #33096 closes odoo/odoo#33174 Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-03-21[FIX] web: previousNicolas Martinelli
Wrong label. opw-1958313 closes odoo/odoo#32008 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-02-27[FIX] web: avoid crash when clicking on colored m2m in listMartin Geubelle
With the BS4 update, a traceback occured when clicking on a m2m tag using colors in a list view. When using colors on m2m tags, the badge was wrapped inside a `dropdown-toggle`. However, there is no `dropdown-menu` by default (it is only rendered in FormFieldMany2ManyTags when clicking on the `.dropdown-toggle`, hence the traceback. The `dropdown-toggle` class is now only set if necessary. Task 1925313 closes odoo/odoo#31445
2019-02-19[FIX] web: avoid long menu dropdown overflowOlivier Dony
The Actions/Print dropdowns may overflow the screen in case of very long lists of menu entries, when based solely on the default BS4 styles for `dropdown-menu`. The `o_dropdown_menu` class forces a vertical limit and a scrollbar when this happens, and should be applied to those control-panel dropdowns to prevent this UI glitch. See also 1c1c0897e8eca607c7f1b96b68a06c026c543e6a which adapted dropdowns to BS4. closes odoo/odoo#31251
2019-01-25[MERGE] forward port branch saas-11.3 up to 387d5cff90bChristophe Simonis
closes odoo/odoo#30566
2019-01-24[FIX] web: translation issue fixedTejas Shahu
Before this commit: Editing a translatable field -> clicking on a translation warning -> come back through breadcrumb do not preserve translation warning. After this commit: Editing a translatable field -> clicking on a translation warning -> come back through breadcrumb preserves translation warning. Technical note: alertFields is now an object and an attribute of the form renderer that stores translation alerts per record. The translation alerts created for a given record are maintained unless they are closed manually or the renderer is destroyed. Issue-ID: 1877480 Co-authored-by: Mohammed Shekha <msh@openerp.com> closes odoo/odoo#29377
2019-01-09[FIX] web: make pie chart title translatableNicolas Martinelli
The Pie Chart title is not translatable, since a string defined in a `t-att-` cannot be translated. We use the attribute `title` instead. Tests are adapted in https://github.com/odoo/enterprise/pull/3379 opw-1908220 closes odoo/odoo#29991
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-10-19[MERGE] forward port branch 11.0 up to 22a13073f0eChristophe Simonis
2018-10-18[FIX] web: correct attribute nameChristophe Simonis
Oversight of previous forward-port.
2018-10-18[MERGE] forward port branch saas-15 up to 54db75396f7Christophe Simonis
2018-10-18[MERGE] forward port branch saas-14 up to ef670016e6dChristophe Simonis
2018-10-18[MERGE] forward port branch 10.0 up to b8b33c6363aChristophe Simonis
2018-10-16[FIX] web: FieldMany2one: don't ignore tabindex in readonlyAaron Bohy
opw 1889710
2018-10-22[MERGE] forward port branch saas-11.4 up to 3c108977c1eChristophe Simonis
2018-10-19[MERGE] forward port branch saas-11.3 up to d82a9077289Christophe Simonis
2018-10-08[FIX] web: remove reference to Enterprise versionNicolas Martinelli
closes odoo/odoo#27505
2018-10-02[FIX] web: no shortcut for app menuAlexandre Kühn
This menu mistakenly tells that there is a keyboard shortcut to navigate in the app menu.
2018-10-02Revert "[FIX] web: 'Shortcuts' in user menu (community)"Alexandre Kühn
This reverts commit 05971d00509a0f5d25b425ac93ef0640af1caa97. This menu makes sense in community, therefore we re-enable this menu.
2018-10-01[FIX] web: 'Shortcuts' in user menu (community)Alexandre Kühn
Revision on https://github.com/odoo/odoo/commit/19eacf7d23c9413de4430a3422b5ed74b37ef242 This menu item should not appear in the community version of Odoo. The commit above mistakenly added this menu item, even though no logic was implemented for it. This was a consequence of the copy & paste approach to rapidly deploy the new navbar in community. (Note: a big refactoring of the web client is coming very soon, so this duplicated code issue should only be temporarily). This commit fixes the issue by removing this menu item in the community version.
2018-10-01[FIX] web, *: support opacity in colorpicker dialogAndrea Ulliana
* web_editor, website Add an opacity slider and an opacity input to control opacity over the chosen color. task-1887571 Closes https://github.com/odoo/odoo/pull/27289
2018-09-28[ADD] web: ability to become superuser (uid=1)Xavier Morel
* requires that current user has group_system * only visible in debug mode (?debug) * available at login or via debug menu * special systray color in superuser sessions Closes #27254
2018-09-26[IMP] web: update design and icons for dashboard subviews buttonssvs-odoo
- Change icon and design for dashboard subviews buttons, according to the new mockup. - Primary buttons are put into the same 'btn-group' to have better border jointure. ! The new icon for the 'fullscreen button' requires to update Font Awesome (currently in 4.7 and need at least the 5.0). Task #1882571
2018-09-24[FIX] web: graph_renderer: show graph titleAdrien Dieudonne
Since odoo/enterprise@e3b0d2a, the title wasn't set anymore. This logic is now moved in the graph renderer to be able to set a title in every graphs. For now, we only use the title attribute for pie charts embedded in dashboard views. Additional tests has been added in 'web_dashboard' (enterprise).
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-09-20[IMP] web: no dropdown icon ('v') next to app menu iconAlexandre Kühn
Task-ID 1878649
2018-09-20[REF] web: Use graph renderer to render pie_chart widgetAdrien Dieudonne
Before this rev., the pie_chart widget was rendered from scratch with nv.d3 and we had duplicated code. In comparison mode, two widgets were instancied and it was a bit difficult to synchronize the size of these svg graphs. nv.d3 graphs are attached when the dom is ready because it needs to calculate the available space. UI bugs can appear if the dom changes... .update() must be executed on the graph to avoid this as we already do in graph renderer. So now, the rendering of the pie_chart widget is done by the graph renderer. As comparaison mode is supported by the rendering, only one widget needs to be instancied. Task ID: 1835644
2018-09-18[FIX] web: do not re-render app menu on every app clickAlexandre Kühn
This was necessary because the rendering was always determining which app item should have the class 'active'. This was an issue with the 'Click Everywhere Test': at the beginning of the script, it gets the jQuery element that matches all nodes `a.o_app` in the app menu. When an app item is clicked, it re-renders the whole app menu, so that older referenced nodes are detached from the DOM. As a result, clicking on them no longer works, because it never triggers the MouseEvent `click .o_app`. This commit fixes the issue by rendering the whole app menu once. When an item in the app menu is clicked, it dynamically changes the `active` app.
2018-09-17[IMP] web: new navbar in communityAlexandre Kühn
The navbar in community now looks more like the navbar in enterprise. Here is a sum-up of the changes in community: - The navbar in community is now in blue, instead of black. - No more app list that almost fills the whole navbar: there is now an "Apps Menu" in the left-most side of the navbar. - No more sidebar for the menus inside an app: those menus are now located in the middle part of the navbar. The navbar in community does not support mobile (< 768px width), but it should still somewhat usable on most mobile devices. As for the website navbar, it has been unchanged and should still support mobile layout. Task-ID 1878649
2018-09-17[FIX] web: datepicker: correctly use libAaron Bohy
The datepicker lib has been updated to tempus dominus (BS4) recently, but our code hasn't been adapted correctly to the requirements of the new version of the lib. As a consequence, the datepicker didn't close itself when the input was focused out anymore. This required a slight change in the DomainSelector widget as it produced a crash when a focused datepicker widget is removed from the DOM (before the datepicker is destroyed), e.g. by a call to html() on one of its parent. Task 1878254
2018-09-13[FIX] mail, web: open systray menu dropdown in mobile.Hiral Bhavsar
Before this commit, it was not possible to open systray menus in mobile. This is due to popper.js that is wrongly dynamically positioning the dropdown menu. This commit fixes the issue by disabling dynamic positioning by popper.js for the systray menus, so that it uses ou custom styles for dropdown menu. Closes #26434
2018-09-13[IMP] mail, web: attachments & messages in debug actions.ThanhDodeurOdoo
- added two new actions to the form view debug action list, both opens list (+ form) views of messages and attachments respectively for which the domain is restricted to the current record. task: 1860031
2018-09-04[IMP] web: review time range menu renderingMathieu Duckerts-Antoine
This commit changes two things in the time range menu appearance: - the order of range options - the spacing between them (now two different groups are separated by an empty lines) Some tests had to be changed accordingly.
2018-09-04[FIX] web: fix time range menu button style in mobile modeMathieu Duckerts-Antoine
The search view in mobile mode has been redesigned and looks a bit different from the search view in desktop mode. This commit adapts the time range menu appearance in mobile mode.
2018-09-04[REF] web: improved fix from 'Edit View: X' (017e7132)Alexandre Kühn
Revision on https://github.com/odoo/odoo/commit/017e71322b6b7f0c232f0d66ba659a5972fc3534 Commit above correctly fixes an issue with 'Edit View: X' menu item in the debug manager, in which the name of the view was missing. To do so, it lets the controller be aware of the name of the view, so that it can be used in the template of the debug menu. However, we think there is a much better solution to fixing this issue: since the debug manager has knowledge of the view action, we can extend this object with the name of the view. This is exactly what this commit does: extend the action view object so that it knows the name of the view. That way, the template is much more readable, as `view.displayName` is more meaningful than `controller.viewName`. Task-ID 1878254
2018-09-03[FIX] web: display view name in debug menu ('Edit View: X')Alexandre Kühn
Revision on https://github.com/odoo/odoo/commit/f7fbe8adffb1ee585c8171f6c86d38145c11848d The commit above wrongly assumes that the object 'view' is an instance of the view class. As a result, the property `display_name` was undefined. This commit fixes the issue by letting the controller remember the name of the view in a similar was as the type of the view. That way, the name of the view can simply be retrieved from the instance of the controller class. Task-ID 1878254
2018-08-31[FIX] web: make 'Edit View: X' translatableAlexandre Kühn
Revision on https://github.com/odoo/odoo/commit/4f6f562c973ce2efd5631ea0e249e75d94cac104 Contrary to what the commit above said, the string was not translatable. This commit fixes the issue by using the property `display_name`, which is the translatable equivalent string of `_.str.capitalize(type)`.
2018-08-29[IMP] web: New test to test Odoo menusChristophe Monniez
This commit adds a new js test in web that enters each app and click on each view switcher, each menu and each search filter. This test is tagged '-standard' and 'click_all' as it could last a long time, that way it's not executed by default. It could also be started from the browser console with 'clickEverywhere();'.
2018-08-27[FIX] web, *: use correct DOM for m2m tagsqsm-odoo
* mail, calendar - Fix traceback when clicking on a tag without color field (introduced in recent changes) - Properly allow to delete tags on firefox (a button obviously cannot contain another button) Closes https://github.com/odoo/odoo/pull/26547 Thanks to @hbh-odoo
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-08-20[FIX] web: restore many2manytags colorpicker dropdownDeep Patel
Bug revealed with BS4.
2018-08-19[FIX] web: BS4, restore statusbar "more" dropdownSiddarth Gajjar
2018-08-17[IMP] web,various: Add 'Remove' button to view dialogs opened from x2m fieldsDharmraj Jhala
Currently, to remove link of x2m field from any record, sometimes there's no way. For example, if we are on mobile and open any Quotation, it's linked quotation lines are automatically converted in kanban, and there is no way to delete a line from that quotation. However, in some of the manually designed kanban, there is special 'x' for removing / unlinking x2m record, for example, Contacts of Partner. This commit makes the behavior more consistent. During edition (mobile and desktop), if a view dialog is opened on click of x2m field, it will have one 'Remove' button (based on user rights) on right side of dialog footer, allowing users to delete / unlink the record. Moreover, in mobile, the modal is opened fullscreen, with sticky header and footer. Related Task# : 31641 Closes PR #15857 Co-authored-by: Mohammed Shekha <msh@openerp.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-08-17[FIX] web: no_open in field options no longer workingSimon Lejeune
example: <field name="product_id" options="{'no_open': True}" readonly="1"/> This has been broken by rev. 43d21dd9c due to misplaced parentheses (an empty object in javascript being truthy).
2018-08-15[IMP] hr_expense: misc bugfixes and usability cleaningFabien Pinckaers
Search, form views and menu cleaned Hide attachment button when you can not attach (record not created) Allow to submit multiple expenses of different payment mode list: show creation date on reports, accounting date for accountants