Jairo Llopis
ab07a7ebc8
[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
```
7 years ago
OCA Git Bot
b0682bd6c6
[UPD] addons table in README.md
7 years ago
Pedro M. Baeza
6072ce509a
Merge pull request #734 from Tecnativa/10.0-web_responsive-fix_horizontal_scroll
[FIX]web_responsive: Scrolling and mobile search/group buttons
7 years ago
Jairo Llopis
e3eb15bc69
[FIX][web_responsive] Scrolling and mobile search/group buttons
- Display horizontal scroll bar in big screens with wide list views.
- Display "group by" button in XS screens.
- More responsive search buttons layout in SM-XS screens.
7 years ago
Jordi Ballester Alomar
6dee0183a0
Merge pull request #733 from Callino/10.0-dialog_draggable-WP
[IMP] Added draggable support to dialogs
7 years ago
Wolfgang Pichler
d61bcef81b
[IMP] Added draggable support to dialogs
7 years ago
OCA Git Bot
c9e44bfdd0
[ADD] setup.py
7 years ago
OCA Git Bot
5c643400e8
[UPD] addons table in README.md
7 years ago
Pedro M. Baeza
c6813df939
Merge pull request #730 from Tecnativa/10.0-PR-web_responsive-kanban-view
[IMP] web_responsive: Load default kanban view for small screen
7 years ago
Sergio Teruel Albert
853ea8eac0
[10.0][IMP] web_responsive: Load default kanban view for small screen
8 years ago
Pedro M. Baeza
725269db81
Merge pull request #729 from StefanRijnhart/10.0/web_ir_actions_act_window_page
[MIG][10.0] web ir actions act window page
7 years ago
OCA Git Bot
5a958ba127
[ADD] setup.py
7 years ago
OCA Git Bot
8f66351206
[UPD] addons table in README.md
7 years ago
Stefan Rijnhart
e08bd6520a
[ADD] Demo data for testing
7 years ago
Stefan Rijnhart
a7843d6049
[MIG][10.0] web_ir_actions_act_window_page
7 years ago
Pedro M. Baeza
7788b2af4c
[FIX] web_shorcut: Version number changed
7 years ago
Pedro M. Baeza
ff7c7649ba
Merge pull request #694 from maxodoo/translated_shortcut_menu
translate shortcut menu items to user's language
7 years ago
Holger Brunn
ef61526e26
run onclose handler if we got one
8 years ago
Pedro M. Baeza
0e053a7d05
Merge pull request #725 from eLBati/10.0-mig-web_widget_digitized_signature
[10.0] porting web_widget_digitized_signature
7 years ago
OCA Git Bot
a7c2e252a0
[ADD] setup.py
7 years ago
OCA Git Bot
1e81eb2ebf
[UPD] addons table in README.md
7 years ago
Dave Lasley
ad466e2b5a
Merge pull request #706 from LasLabs/feature/10.0/SMD-263-mig-web_widget_slick
[ADD] web_widget_slick: Add module
7 years ago
eLBati
1cdc14f9f9
porting web_widget_digitized_signature to 10.0
7 years ago
cubells
569dff1f9d
[FIX] Incorrect field name to track signature ( #691 )
7 years ago
OCA Transbot
949b57e345
OCA Transbot updated translations from Transifex
7 years ago
Pedro M. Baeza
58c97a02c5
[IMP] web_widget_digitized_signature: Add tests
7 years ago
cubells
705af75b40
[ADD] web_widget_digitized_signature
8 years ago
Brenton Hughes
63bfc0f668
[MIG] web_widget_slick_example: Migrate to v10
* Bump version
* Rename __openerp__.py -> __manifest__.py
* Replace openerp import, tags with odoo
* Remove data tags
* Replace LasLabs icon w/ OCA icon
* Update readme
* Update license (AGPL -> LGPL)
* Update copyright
7 years ago
Dave Lasley
b3ffddfb95
[ADD] web_widget_slick_example: Create module
* Create SlickJS widget field in example module for usage instructions
* Add security to example slick widget model
9 years ago
Brenton Hughes
d59af25db3
[MIG] web_widget_slick: Migrate to v10
* Add local slick files to use instead of CDN
* Override CSS to display widget correctly
* Adjust arrow button size/placement
* Bump version
* Rename __openerp__.py -> __manifest__.py
* Rename widget_slick.js -> web_widget_slick.js
* Update copyright, license (AGPL -> LGPL)
* Update readme
* Correct eslint errors
* Change module name in various places for consistency
* Improve styling of widget arrows, dots
* Change css -> less
* Remove unneeded slick files
* Copyright 2017 -> 2016-2017
* Add OCA to authors
* Use OCA icon
* Fix readme
* Clean up assets
* Fix file permissions
* Update readme with reference to example module
* Fix formatting error, incorrect link
* Add javascript tests
* Add note to readme about functional testing with example module
* Fix/cleanup javascript
* Fix destroy_content() method
* Move slide navigation out of slide addition loop
* Remove unused variables
* Remove unneeded DOM append
* Reorganize files/directories
* Adjust template tags (templates -> template)
* Add slick-field class to field template instead of using jQuery
* Misc cleanup
* Adjust breakpoint settings to show fewer images by default
* Enable adaptiveHeight by default
* Add .img and .img-responsive classes to images
* Fix dragging issues by preventing default mousedown and
touchstart event behavior
* Set swipeToSlide default to true
* Change how slick slides are populated to allow grid mode
* Fix issue causing carousel images to display improperly in some
situations
* Add better functional testing instructions to readme
* Add roadmap to readme
* Make minor styling changes
* Fix issue with template loading w/ PhantomJS
* Clean up template, use css class provided by widget
* Remove unneeded dependency from tests
* Break up render_value method
* Break up destroy_content method
* Add unslicking to destroy_content, add test
* Clean up qweb template formatting
* Fix indentation
* Change widget name
* Add Slick copyright information
* Add padding left/right, move arrows in to avoid clipping when
widget not in a sheet tag
* Apply dot and arrow styles only when needed
* Add _resizeCarousel() and related methods to ensure accurate
carousel sizing in various views
* Resize carousel on core.bus resize
* Account for differences in group layouts and labels,
sheet/no-sheet layouts
* Adjust, clean up less
* Clean up js
7 years ago
Dave Lasley
ec343b6ec8
[ADD] web_widget_slick: Create module
* Create SlickJS widget field
* Remove template test
* Move web_widget_slick assets to backend only, update ReadMe, bump version
* Remove highlighting in ReadMe
9 years ago
OCA Git Bot
acc84e089a
[ADD] setup.py
7 years ago
OCA Git Bot
a3663d62fd
[UPD] addons table in README.md
7 years ago
Dave Lasley
a2c20fd293
Merge pull request #522 from LasLabs/10.0-mig-web_widget_float_formula
[MIG] web_widget_float_formula: Migrate to 10.0
7 years ago
Kelly Lougheed
f19ee39524
[MIG] web_widget_float_formula: Migrate to 10.0
8 years ago
OCA Git Bot
de8f773348
[UPD] addons table in README.md
7 years ago
Pedro M. Baeza
92c74c01c7
Merge pull request #720 from Tecnativa/10.0-web_decimal_numpad_dot-fix_only_float
[FIX][IMP][web_decimal_numpad_dot] Support float time
7 years ago
Jairo Llopis
83ec032ee3
[FIX][IMP][web_decimal_numpad_dot] Support float time
- All Char widgets were getting affected by this behavior.
- Time float widgets now get ":" instead of "," or ".".
- Little code refactor.
- Only detect numpad dot, not normal dot and comma.
7 years ago
OCA Git Bot
b5e2437efa
[UPD] addons table in README.md
7 years ago
Pedro M. Baeza
9df3f77a76
Merge pull request #716 from Tecnativa/10.0-web_advanced_search_x2x-fix_false_text
[FIX][web_advanced_search_x2x] Fix "false" label
7 years ago
Jairo Llopis
c7b692ecfc
[FIX][web_advanced_search_x2x] Fix "false" label
When you were adding a custom filter in a x2x field using "contains", it always became "contains 'false'". Now it is fixed.
7 years ago
Akim Juillerat
34c4b108bc
[10.0][ADD] option to deactivate color picker on many2many_tags ( #713 )
7 years ago
OCA Git Bot
e141f32185
[ADD] setup.py
7 years ago
OCA Git Bot
20a20cffb2
[UPD] addons table in README.md
7 years ago
Pedro M. Baeza
a1e93d16d4
Merge pull request #708 from Tecnativa/10.0-mig-web_decimal_numpad_dot
[MIG] web_decimal_numpad_dot: Migration to 10.0
7 years ago
David Vidal
0a080f57ac
[MIG] web_decimal_numpad_dot: Migration to 10.0
7 years ago
Roel Adriaans
0b414fafdc
[IMP] web_decimal_numpad_dot: use the decimal_point defined in user language
9 years ago
Omar Castiñeira Saavedra
5cfd1a0f4b
[IMP] web_decimal_numpad_dot: fixed float widget not working properly
9 years ago
oihane
ac4cdcfffc
[IMP] web_decimal_numpad_dot: now changes . for , in floating numbers
9 years ago
oihane
63910c1745
[ADD] New module <web_decimal_numpad_dot>
10 years ago