Odoo web client UI related addons
 
 
 
 
 
Go to file
Jairo Llopis c1f65f52d6 [FIX] web_m2x_options: Compatibilize with web_advanced_search_x2x
`web_m2x_options` is supposed to render fields in the context of a form or tree view, where domains can safely be applied because there's a main record that includes a context.

However, when installing along with `web_advanced_search_x2x`, they produce an incompatibility when a x2x field's domain is defined and depends on the current record's context, because a search view has no notion of a *current record*.

The fix is simple: try to do as usual, and if it fails, try without the field's domain.

Without this patch, an exception like this would be raised, i.e. when both addons are installed and you are trying to search project tasks by stage:

``` Error: NameError: name 'project_id' is not defined
http://localhost/web/static/lib/py.js/lib/py.js:370# Traceback:# Changes to be committed:
PY_ensurepy@http://localhost/web/static/lib/py.js/lib/py.js:370:19# modified: static/src/js/form.js
py.evaluate@http://localhost/web/static/lib/py.js/lib/py.js:1340:20#
py.evaluate@http://localhost/web/static/lib/py.js/lib/py.js:1397:35
py.evaluate@http://localhost/web/static/lib/py.js/lib/py.js:1409:34
py.eval@http://localhost/web/static/lib/py.js/lib/py.js:1453:16
eval_domains/<@http://localhost/web/static/src/js/framework/pyeval.js:869:39
_.forEach@http://localhost/web/static/lib/underscore/underscore.js:145:9
_.mixin/</_.prototype[name]@http://localhost/web/static/lib/underscore/underscore.js:1484:29
eval_domains@http://localhost/web/static/src/js/framework/pyeval.js:860:5
eval_domains/<@http://localhost/web/static/src/js/framework/pyeval.js:873:39
_.forEach@http://localhost/web/static/lib/underscore/underscore.js:145:9
_.mixin/</_.prototype[name]@http://localhost/web/static/lib/underscore/underscore.js:1484:29
eval_domains@http://localhost/web/static/src/js/framework/pyeval.js:860:5
eval_domains/<@http://localhost/web/static/src/js/framework/pyeval.js:873:39
_.forEach@http://localhost/web/static/lib/underscore/underscore.js:145:9
_.mixin/</_.prototype[name]@http://localhost/web/static/lib/underscore/underscore.js:1484:29
eval_domains@http://localhost/web/static/src/js/framework/pyeval.js:860:5
pyeval@http://localhost/web/static/src/js/framework/pyeval.js:977:16
eval_arg@http://localhost/web/static/src/js/framework/pyeval.js:988:16
ensure_evaluated@http://localhost/web/static/src/js/framework/pyeval.js:1011:21
call@http://localhost/web/static/src/js/framework/data_model.js:56:9
name_search@http://localhost/web/static/src/js/framework/data.js:537:16
get_search_result@http://localhost/web_m2x_options/static/src/js/form.js:130:50
OdooClass.extend/Class.include/</prototype[name]</<@http://localhost/web/static/src/js/framework/class.js:122:35
source@http://localhost/web/static/src/js/views/form_relational_widgets.js:271:17
_search@http://localhost/web/static/lib/jquery.ui/jquery-ui.js:6823:3
$.widget/</proxiedPrototype[prop]</<@http://localhost/web/static/lib/jquery.ui/jquery-ui.js:415:19
search@http://localhost/web/static/lib/jquery.ui/jquery-ui.js:6815:10
$.widget/</proxiedPrototype[prop]</<@http://localhost/web/static/lib/jquery.ui/jquery-ui.js:415:19
$.widget.bridge/$.fn[name]/<@http://localhost/web/static/lib/jquery.ui/jquery-ui.js:508:19
each@http://localhost/web/static/lib/jquery/jquery.js:383:49
each@http://localhost/web/static/lib/jquery/jquery.js:136:24
$.widget.bridge/$.fn[name]@http://localhost/web/static/lib/jquery.ui/jquery-ui.js:494:4
render_editable/<@http://localhost/web/static/src/js/views/form_relational_widgets.js:189:21
dispatch@http://localhost/web/static/lib/jquery/jquery.js:4640:50
add/elemData.handle@http://localhost/web/static/lib/jquery/jquery.js:4309:41
```
2018-06-21 12:00:56 +02:00
setup [ADD] setup.py 2018-06-16 05:55:10 +02:00
web_action_conditionable [MIG] web_action_conditionable: Migration to 11.0 2018-02-13 08:23:55 +00:00
web_decimal_numpad_dot fix tab navigation issue in web_decimal_numpad_dot 2018-05-25 18:03:43 +02:00
web_dialog_size [UPD] README.rst 2018-06-21 05:43:32 +02:00
web_environment_ribbon web_environment_ribbon: import from odoo instead of openerp. 2018-04-24 09:54:00 +02:00
web_favicon [11.0][MIG] Standard Migration 2018-03-25 19:22:17 +02:00
web_group_expand [IMP/Fix]Improved group by functionality. (#941) 2018-06-07 20:57:22 +02:00
web_ir_actions_act_multi Add module web_ir_actions_act_multi 2018-06-12 11:16:59 +02:00
web_ir_actions_act_view_reload Contribution: add module web_ir_actions_act_view_reload 2018-06-07 13:22:01 +02:00
web_listview_range_select [MIG] web_listview_range_select: Migration to 11.0 2018-04-16 10:16:05 +02:00
web_m2x_options [FIX] web_m2x_options: Compatibilize with web_advanced_search_x2x 2018-06-21 12:00:56 +02:00
web_no_bubble [MIG] web_no_bubble: Migration to 11.0 2017-10-24 10:24:10 +02:00
web_notify [MIG] web_notify: Migration to 11.0 2018-04-03 10:13:42 +01:00
web_responsive [FIX] web_responsive: Hide header when print directly from browser issues 808 (#809) 2017-11-27 19:47:16 +01:00
web_search_with_and [MIG] web_search_with_and: Migration to 11.0 2018-05-25 17:55:51 +02:00
web_searchbar_full_width [MIG] web_searchbar_full_width: Migration to 11.0 2018-03-25 19:31:42 +02:00
web_sheet_full_width [FIX] web_sheet_full_width: PEP8 2017-10-19 16:25:55 +02:00
web_timeline [FIX] Missing GroupClick Functionality 2018-04-17 09:22:52 -03:00
web_tree_dynamic_colored_field [IMP] web_tree_dynamic_colored_field: Update README.rst (#899) 2018-03-28 09:31:27 +01:00
web_tree_many2one_clickable web_tree_many2one_clickable: Check if the node is a field 2018-03-07 10:06:16 +01:00
web_widget_bokeh_chart [MIG] web_widget_bokeh_chart: Migration to 11.0 2018-02-19 13:30:30 +02:00
web_widget_color [MIG] web_widget_color: Migration to 11.0 2017-11-02 10:54:05 +01:00
web_widget_datepicker_options [FIX] web_widget_datepicker_options: Fix error when field is undefined 2018-06-11 00:00:07 +00:00
web_widget_image_download [UPD] README.rst 2018-06-21 05:43:32 +02:00
web_widget_image_url ADD: Adding module web_widget_image_url 2018-06-07 19:45:20 +02:00
web_widget_many2many_tags_multi_selection [FIX] Error when using the Quick Create on many2many_tags_multiselection widget 2018-06-04 15:00:54 +02:00
web_widget_x2many_2d_matrix [FIX] Make matrix editable depending of the status of the parent 2018-05-02 15:28:31 +02:00
web_widget_x2many_2d_matrix_example [ADD] `web_widget_x2many_2d_matrix_example` 2018-03-28 12:47:39 +02:00
.gitignore [MIG] Add metafiles 2017-10-03 17:06:45 +02:00
.travis.yml .travis.yml: Remove Transifex 2017-10-17 09:09:36 +02:00
README.md [MIG] Add metafiles 2017-10-03 17:06:45 +02:00
requirements.txt [MIG] web_widget_bokeh_chart: Migration to 11.0 2018-02-19 13:30:30 +02:00

README.md

Runbot Status Build Status Coverage Status

Web addons for Odoo

This project aims to deal with modules related to the webclient of Odoo. You'll find modules that:

  • Add facilities to the UI
  • Add widgets
  • Ease the import/export features
  • Generally add clientside functionality