Commit Graph

2268 Commits (c78d73d9b14fa6ec698cf5a3cc8f1379610d994c)

Author SHA1 Message Date
Jairo Llopis 7692f52c77
[FIX] web_responsive: Make app icons and search results middle-button-clickable
In the case of app icons, those weren't getting the `href` attribute filled.

In the case of search results, those weren't even an `<a>` element.

Fixed in both cases to fix https://github.com/OCA/web/issues/1170.
2019-02-05 11:58:28 +00:00
Jairo Llopis e180390ae1
[FIX] web_responsive: Skip re-search when not writing
When the user uses TAB or SHIFT+TAB to navigate in search results, he can trigger a SHIFT-only keydown event without noticing, which would reset the selected result position to the first or last.

It is disturbing, so, to avoid that problem, the re-search is only triggered if the currently pressed key has length=1 or is Backspace, which will skip most keys that are not actually writing a character into the search input, like i.e. "Shift", "Alt", "F4", etc.

In addition to that, to detect if the search results is empty, the `:empty` selector is not trustable because it considers not empty nodes with whitespace-only content. That has been patched too.
2019-02-05 11:58:28 +00:00
Simone Orsi 9a7a9fd769
Merge pull request #1174 from brainbeanapps/12.0-fix-web_widget_x2many_2d_matrix-total_cell_calculation
[12.0][FIX] web_widget_x2many_2d_matrix: total cell calculation
2019-02-05 08:24:09 +01:00
oca-travis 366508a492 [UPD] Update web_widget_x2many_2d_matrix_example.pot 2019-02-05 07:11:22 +00:00
OCA-git-bot 91bc5ea5f4 [ADD] setup.py 2019-02-05 07:04:12 +00:00
OCA-git-bot e32cd393d4 [UPD] README.rst 2019-02-05 07:04:12 +00:00
Simone Orsi 79ece2c45d
Merge pull request #1146 from anandkansagra/12.0-mig-web_widget_x2many_2d_matrix_example
[12.0] [MIG] web_widget_x2many_2d_matrix_example
2019-02-05 08:04:06 +01:00
Alexey Pelykh 6ca36a4b36 [FIX] web_widget_x2many_2d_matrix: total cell calculation 2019-02-05 09:03:13 +02:00
OCA Transbot aca5b137b7 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-12.0/web-12.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_timeline/
2019-01-27 11:12:12 +00:00
OCA Transbot 1d94170138 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-12.0/web-12.0-web_responsive
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_responsive/
2019-01-27 11:12:11 +00:00
oca-travis 5a5dda4db7 [UPD] Update web_ir_actions_act_multi.pot 2019-01-21 12:00:52 +00:00
OCA-git-bot 21b2155309 [ADD] setup.py 2019-01-21 11:55:43 +00:00
Alexey Pelykh a50d9abd22 [MIG] web_ir_actions_act_multi: Migration to 12.0 2019-01-21 12:55:37 +01:00
oca-travis 2df5039d8a [UPD] Update web_ir_actions_act_multi.pot 2019-01-21 12:55:37 +01:00
Petar Najman 4cecb791ac Add module web_ir_actions_act_multi 2019-01-21 12:55:37 +01:00
Jairo Llopis 67f76e8fab
[FIX] web_decimal_numpad_dot: Restore keyboard navigation
When https://github.com/OCA/web/pull/1154 switched to using `keydown` as the event to trigger the numpad dot replacement, it was actually [disabling upstream's `_onKeyDown()`][1], which in turn disabled the keyboard navigation.

To fix this situation, I replaced the method that is being used to directly override `_onKeyDown`.

[1]: 19558129f0/addons/web/static/src/js/fields/abstract_field.js (L41)
2019-01-21 09:41:24 +00:00
Anand Kansagra 6774c97dc7 [MIG] web_tree_many2one_clickable: Migration to 12.0. 2019-01-20 09:36:30 +05:30
OCA-git-bot fc13aaf330 [ADD] setup.py 2019-01-19 16:38:49 +00:00
Moises Lopez - https://www.vauxoo.com/ 752570a028
Merge pull request #1161 from anandkansagra/12.0-mig-web_widget_many2many_tags_multi_selection
[12.0] [MIG] web_widget_many2many_tags_multi_selection
2019-01-19 10:38:42 -06:00
Anand Kansagra 03263e261b [MIG] web_widget_many2many_tags_multi_selection: Migration to 12.0. 2019-01-19 09:39:07 +01:00
Rodrigo Macedo d99bab5366 Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (2 of 2 strings)

Translation: web-11.0/web-11.0-web_widget_many2many_tags_multi_selection
Translate-URL: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_widget_many2many_tags_multi_selection/pt_BR/
2019-01-19 09:38:28 +01:00
oca-travis 050e77c669 [UPD] Update web_widget_many2many_tags_multi_selection.pot 2019-01-19 09:38:28 +01:00
Maxence Groine f89e2b18ad [FIX] Error when using the Quick Create on many2many_tags_multiselection widget 2019-01-19 09:38:28 +01:00
Maxence Groine e72ee021dc [MIG] web_widget_many2many_tags_multi_selection: Migration to 11.0 2019-01-19 09:38:28 +01:00
OCA Transbot 5f104ea820 OCA Transbot updated translations from Transifex 2019-01-19 09:38:28 +01:00
Florent de Labarre e831274ebc [MIG] web_widget_many2many_tags_multi_selection: Migration to 10.0 (#623) 2019-01-19 09:38:28 +01:00
Jamin Shah baae1df603 [MIG]Migrated web widget many2many_tags multi selection in v9 2019-01-19 09:38:24 +01:00
Sylvain Calador 4b50cb4f22 [ADD] web_widget_many2many_tags_multi_selection 2019-01-19 09:37:41 +01:00
oca-travis fcc030f7e5 [UPD] Update web_tree_many2one_clickable.pot 2019-01-19 13:21:24 +05:30
Guewen Baconnier 5a442b7d06 web_tree_many2one_clickable: Check if the node is a field
If a list contains a node which is not a field (e.g. a button), it will
not be found in the fields so we'll have an error trying to get 'type'
from undefined.
2019-01-19 13:21:24 +05:30
Artem Kostyuk 3fb7bcd0d5 [MIG] web_tree_many2one_clickable: Migration to 11.0 2019-01-19 13:21:24 +05:30
Atchuthan, Sodexis 1df6647fa3 [MIG] web_tree_many2one_clickable: Migrated to 10.0 2019-01-19 13:21:24 +05:30
Antonio Espinosa 0f3574b638 [MIG] web_tree_many2one_clickable: Migration to 9.0 2019-01-19 13:21:24 +05:30
Holger Brunn 8f6287b74d support reference fields in many2one_clickable widget 2019-01-19 13:21:24 +05:30
Antonio Espinosa 9d7c20ea94 [FIX] Allow set web_tree_many2one_clickable.default as True 2019-01-19 13:21:24 +05:30
Pedro M. Baeza 745e7e54d3 [ADD] web_tree_many2one_clickable
Clickable many2one fields for tree views
========================================

This addon provides a separate widget to allow many2one fields in a tree view
open the linked resource when clicking on their name.

You can also define a system parameter to have this behaviour for all the
existing many2one fields in tree views.

Installation
============

Install it the regular way.

Configuration
=============

If you want to have all many2one fields clickable by default, you have to
define in *Configuration > Technical > Parameters > System parameters*, a new
parameter with name `web_tree_many2one_clickable.default` and with value
`true`.

Usage
=====

For the widget option, you need to add `widget="many2one_clickable"` attribute
in the XML field definition in the tree view.

For example:

`<field name="partner_id" widget="many2one_clickable" />`

will open the linked partner in a form view.

Known issues / Roadmap
======================

* You cannot deactivate clickable behaviour for an specific many2one field if
  you configure the system parameter.
* The value of the system parameter is retrieved for each many2one field
  present in the view instead of only once.
2019-01-19 13:21:24 +05:30
oca-travis 242102823c [UPD] Update web_timeline.pot 2019-01-18 15:41:39 +00:00
Pedro M. Baeza 34e2041bc3
Merge pull request #1156 from tarteo/11-web-timeline-fix-reload
[12.0][FIX] web_timeline: Reloading view
2019-01-18 16:33:34 +01:00
tarteo 4677153270 [FIX] web_timeline: Reloading view
[FIX] web_timeline: Reloading view

[FIX] web_timeline: Reloading view
2019-01-17 14:38:05 +01:00
Jairo Llopis 75ac50be53
[FIX] web_decimal_numpad_dot: Fix inconsistent behavior
When user was replacing some specific sections or being too fast, the module wasn't behaving fine. Also, it was always displaying the original `.` slightly before doing the replacement.
2019-01-17 10:58:31 +00:00
oca-travis 9f91d5d9a9 [UPD] Update web_responsive.pot 2019-01-10 16:01:42 +00:00
OCA-git-bot 8842e91b9b [ADD] setup.py 2019-01-10 15:32:40 +00:00
Pedro M. Baeza 4d1031142c
Merge pull request #1066 from Tecnativa/12.0-web_responsive
[MIG] web_responsive: Migrate to v12 and refactor
2019-01-10 16:32:32 +01:00
Jairo Llopis 69a7491f4a
[MIG] web_responsive: Migrate to v12 and refactor
This migration includes a full refactoring to make this module more
maintainable. Some things that have changed:

- Removed external libraries.
- Change Less for Scss.
- Reduce ES and XML to the minimal required needs.
- Implement as much features as possible with just Scss.
- Remove copyright from `__init__.py` files.
- Trigger the new hotkeys system from Odoo v12 with `Shift+Alt` instead
  of just `Alt`, and restore some good old hotkeys (`E` for "Edit",
  `D` for "Discard", and `A` for "Apps menu").
  See https://github.com/odoo/odoo/issues/30068 on the matter.
- Control panel breadcrumbs are collapsed into a single backwards icon.
- Add FA icons to most common buttons in control panel.
- Hide text in XS for those buttons, to have a slicker phone experience.
- Lots of gifs in the README!
2019-01-10 13:51:17 +00:00
OCA-git-bot 9e9c409c86 [UPD] README.rst 2019-01-08 08:40:22 +00:00
Cyril VINH-TUNG ccda9edc82 [web_timeline][IMP] Add margin support in web_timeline (#1135) 2019-01-08 09:40:02 +01:00
Anand Kansagra 4aafcfa5a5 [MIG] web_widget_x2many_2d_matrix_example: Migration to 12.0. 2018-12-31 18:55:58 +05:30
oca-travis 22441ad62f [UPD] Update web_widget_x2many_2d_matrix_example.pot 2018-12-31 10:37:05 +05:30
Simone Orsi 366b3015b6 [ADD] `web_widget_x2many_2d_matrix_example` 2018-12-31 10:37:05 +05:30
oca-travis 2b240d2082 [UPD] Update web_widget_image_url.pot 2018-12-31 10:12:01 +05:30