summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
AgeCommit message (Collapse)Author
2016-07-07[IMP] web: Quantity is very misleading in reporting views --> e.g. SO Line ↵Fabien Pinckaers
Quantity is perceived as Quantity of products, whereas it's the count of SO Lines. Renaming to Count
2016-05-25[FIX] web: chardomain, don't allow to edit the input when not in edit mode.Jeremy Kersten
2016-05-19[FIX] web: download file and editor firefox bugNicolas Lempereur
When we download a file (as can be done with attachments in Odoo), firefox is opening the link in current window but cancel the action once it is aware the resource is to be downloaded. But this get firefox into a corrupt state for some contenteditable features, for example document.queryCommandState which is needed for the editor will after downloading a file throw an error consistently instead of working as expected. It can be reproduced on firefox (at least from version 32 to 46) with the following snippet: https://jsfiddle.net/s246u3ay/3/ The issue is probably linked to the following reported issue since 2005: https://bugzilla.mozilla.org/show_bug.cgi?id=297494 This commit avoid the bug by opening attachments download links in a new window instead of the current one. closes #12109 opw-676918
2016-04-15[FIX] web: don't display view metadata for new recordJeremy Kersten
Close #11584
2016-02-02[MERGE] forward port of branch saas-6 up to 9ca7ad8Christophe Simonis
2016-02-02[MERGE] forward port of branch 8.0 up to 3ac46eeChristophe Simonis
2016-01-29[FIX] make m2m checkbox labels clickablexmo-odoo
2016-01-19[FIX] web,calendar: m2m attendee tag colorqsm-odoo
The colors for attendee tags were not used and were reset for all tags each time the color was changed for a single tag.
2016-01-13[FIX] mail,web: : untranslated term in viewMartin Trigaux
_t(...) in xml qweb views do not work, not exported, not evaluted. No reason to use t-att-*, just using simple attribute is enough.
2016-01-11[FIX] base: remove unnecessary code (td.oe-actions does not exist)Christophe Matthieu
2016-01-04[FIX] web: o2m view manager headerqsm-odoo
Revert commits b3f3c67eea0168235cec5c4246f9720286ced7dc and a40d48378d22309e53e6d38000d543de1d2f7a78 forward ported from 8.0. In 8.0 these commits removed dead code but it is actually useful in saas-6.
2015-12-30[MERGE] Forwardport of branch 8.0 up to 6efc3712Martin Trigaux
2015-12-28[FIX] web: o2m view manager headerqsm-odoo
Commit b3f3c67eea0168235cec5c4246f9720286ced7dc corrected the o2m view manager template which was useless in its previous version because of a dead selector. It appeared that some fonctionnality relied on the fact that this was dead code. This commit removes the dead code. Thanks LeartS (see #5711).
2015-12-28[FIX] web: hiding of o2m view manager headerLeonardo Donelli
One2many fields bring in the entire viewmanager widget. When there is only one view though (e.g. only kanban view for contact tab of partners), we want to hide the viewmanager header because we don't need it (it's where the view switcher would go). Odoo had the widget logic to do that, but it was wrongly implemented, resulting in a always present oe_view_manager_header div with all its elements (although empty). The wrong javascript operation should have triggered a client error when loading the view, but for pure chance it didn't because the t-jquery selector was wrong too so the javascript was never evaluated.
2015-12-24[IMP] web(_planner),website: navbars & menus mergeqsm-odoo
Merge appswitcher navbar and app navbar. Merge planner menu and user menu.
2015-12-22[FIX] web: client action change passwordDenis Ledoux
1. To change the page title, you now have to call `set_title` from `require('web.web_client')` 2. Without the `type="button"`, the `Change Password` button is regarded as a `type="submit"`, therefore submitting the form, on `web` on click, and `web` doesn't expect this POST request. The POST request must be done on `/web/session/change_password` only. opw-660567
2015-12-16[IMP] web: m2m_tags support _rec_name != 'name'Nicolas Lempereur
Currently, the m2m tags widget would only display the name present in the "name" field. This prevent them from being used with custom fields/models and other niceties. opw-658490
2015-11-17[IMP] web: better 'Odoo Enterprise' settings popupAdrien Dieudonné
The popup is now a bit more styled and needs less info to call our servers.
2015-10-30[FIX] web: no accesskey for x2m pagerNicolas Lempereur
The fix in 665bc1c solved the issue for pager of some X2Many widget x2m which would shadow the accesskey to go to previous/next page of the top view's current model. But in the case a web.Pager (used in community for a X2Many kanban widget) the fix had no effect. opw-652888
2015-10-28[FIX] web{,_kanban}: too much and too little shortcutsNicolas Lempereur
When several accesskey with the same key, are defined on elements, the last one (even if not displayed) is the one which will be actioned and the key sequence is pressed. This caused an issue since the "Pager" template is shared between all elements, even the x2many relational widgets. Also there was shortcut for Create/Save/Discard on the form view, but those shortcuts should also be enabled in the list and kanban view. closes #9267 opw-652888
2015-10-01[FIX] enterprise settings upgrade widgetsAdrien Dieudonne
2015-10-01[IMP] enterprise settingsAntony Lesuisse
2015-10-01[ADD] client-side CSRF supportXavier Morel
* add CSRF token as core.csrf_token * add CSRF tokens to client-generated and/or JS-submitted forms * remove broken "compatibility" mode of web.ajax.post /cc @dmo-odoo I've no idea how that was supposed to work, from looking things up all modern browsers seem to support FormData, and old IEs which don't don't support fallbacks either and would require submitting an actual form as fallback so...
2015-09-30[FIX] web: reintroduce ChangePassword templateqsm-odoo
The template had been previously dropped by mistake. + the validation buttons were not correctly handled and so changing his password was not possible (these buttons must be in the modal footer).
2015-09-24 [REF] web: datepicker widgetqsm-odoo
(backport of enterprise version) * JS/XML refactoring * Allow user to override default options for the picker
2015-09-24[IMP] web, web_planner: move 'Help' in systrayMartin Geubelle
* 'Help' has now its own dropdown, directly accessible in the systray, instead of being hidden in the Administrator dropdown * 'About' has been moved there also * We can access the planner through this dropdown, even if the planner is hidden (complete)
2015-09-22[FIX] web_kanban, web: KanbanSelection widget refactoringYannick Tivisse
- Change the widget behavior from asynchronous to asynchronous, by adding 3 related fields on the project.task model, which are the custom labels defined for the stage - Instead of making a rpc call, we are taking directly the labels on the parent for the kanban view, or on the view datarecord for the form view - There are now 2 templates for the kanban view or the form view - The development has been backported in the community version - The options attribute has been removed on the project_view.xml file for the kanban_state field
2015-09-15[FIX] web: m2m tags glitch on some resolutionsMartin Geubelle
2015-09-08[FIX] web: many2many2tags if no color fieldMartin Geubelle
If there is no field 'color' on tag model, the colorpicker should not be displayed.
2015-09-07[IMP] web, web_kanban: many2manytags color selectionMartin Geubelle
2015-09-01[REF] web: backport some classnames renamingAaron Bohy
oe_form_binary_form -> o_form_binary_form oe_form_binary_file -> o_form_input_file Required for new design compatibility (classnames accessed in addon mail)
2015-09-01[IMP] web: sidebar: generalize it for client actionsAaron Bohy
2015-09-01[ADD] web: fields char and many2one can take an option barcode_eventsArthur Maniet
This allows to detect barcode scans while the focus is in such a field. It is not the default behaviour because buffering keystrokes to see if they are a barcode then releasing them if they aren't isn't trivial (it is impossible to trigger a native keyboard event).
2015-09-01[FIX] web: stat_button: display none on hoverAaron Bohy
A 'display: none' rule on hover has been added for boolean buttons, on each 'o_stat_button o_stat_text' that hasn't classname o_hover. This applies on every stat button that isn't a boolean button, so their content is always hidden on hover.
2015-08-31[IMP] web: make `boolean_button` more specific, and change label on hoverRaphael Collet
The widget now provide labels that depend on widget option "terminology". For each terminology, it provides four button labels that are shown depending on the field's value and hover status on the button.
2015-08-28[IMP] web: in `boolean_button`, move options to inner elements to handle ↵Raphael Collet
translations In practice, we replace: <field name="active" widget="boolean_button" options='{"true": "Active", "false": "Inactive"}'/> by: <field name="active" widget="boolean_button"> <span class="o_stat_text o_true text-success">Active</span> <span class="o_stat_text o_false text-danger">Inactive</span> </field>
2015-08-27[ADD] web: add dynamic widget to toggle boolean buttonGaurav Panchal
2015-08-24[FIX] web: FieldRadio without any valueqsm-odoo
When a FieldRadio had no selected value, a traceback occured when trying to render the widget in readonly mode.
2015-08-21[IMP] web: use css to display attachment mimetypeChristophe Matthieu
Widgets and website display images or display the type with icon like pdf, doc...
2015-08-21[FIX] web: M2ODialog, adaptation to new Dialog APIqsm-odoo
(backport from the enterprise version) The M2ODialog still used the old Dialog API.
2015-08-19[IMP] web: sorted custom group by itemsSrushti Patel
2015-08-19[IMP] *: Uniformize all modal footersRonak Baxi
The main button has classnames btn btn-primary. Other buttons have classnames btn btn-default. No more 'or' between the buttons.
2015-08-14[IMP] web, website: Split base.xml into base.xml/base_common.xmlqsm-odoo
This allows to always have the templates in base_common.xml in the frontend.
2015-08-14[FIX] web: radio horizontalGaurav Panchal
The widget was completely broken when usign the horizontal display. It has been fixed, hopefully in a way that lessen the xml and css.
2015-08-07[REF] web(_*): views: view_switcher iconAaron Bohy
Add a key icon in the view's prototype corresponding to the font-awesome icon to display in the view switcher.
2015-08-06[IMP] web: classnames update for new design compatibilityAaron Bohy
The DOM structure and elements's classnames diverge in community and enterprise editions. Tips must work perfectly with both editions, obviously. This rev. updates some classnames in the community edition for the tips's selectors to match in both editions. The following classnames have been renamed/introduced: - oe_form_buttons_view renamed to o_form_buttons_view - oe_form_buttons_edit renamed to o_form_buttons_edit - oe_form_invisible renamed to o_form_invisible - oe_list now also has classname o_list_view - header tag in form views now has classname o_form_statusbar_buttons Other changes like these might be required later if other tips are introduced...
2015-08-04[FIX] web: form_view: WidgetButtonAaron Bohy
Buttons that are not stat buttons couldn't use font-awesome icons, as it automatically fallbacked on the icons in /web/static/src/img/icons. This was the case for several templates where the icon thus couldn't be found as it was looking for a font-awesome icon in the icons folder (e.g. fa-cog.png). Also cleans some unused less rules defined on the stat buttons in enterprise_compatibility.less
2015-08-03[IMP] web: New priority widget + form fieldqsm-odoo
2015-08-01[IMP] web: web 1.0 database managerAntony Lesuisse
Implement the database manager with plain HTML forms and HTTP controllers.
2015-07-29[IMP] web: about dialog for v9Antony Lesuisse