3
0
Fork 0
Commit Graph

1234 Commits (eaa37d83bb6dfdb2118cda88c5dec0ec968e7c9c)

Author SHA1 Message Date
Pedro M. Baeza 2166640792 Merge pull request #766 from acsone/10.0-fix_web_advanced_search_x2x_domain-bwi
[FIX] Ensure that domain field can be evaluated before creating x2x field
2017-10-26 11:41:42 +02:00
Dave Lasley cd22422740
[FIX] web_responsive: Menu Height on Init
* Add a call to the window resize method during init to fix OCA#773
2017-10-25 07:41:37 -07:00
OCA Git Bot 65a75793d8 [UPD] addons table in README.md 2017-10-25 02:40:28 +02:00
David Vidal a5b11ca375 [10.0][FIX] web_dialog_size: export modal (#746)
* [10.0][FIX] web_dialog_size: export modal

- PR #733 introduced draggable dialogs wich broke some of them
2017-10-24 12:15:53 +02:00
Pedro M. Baeza 35a5b8b95a Merge pull request #767 from Tecnativa/10.0-web_m2x_options-fix_advanced_search_compatibility
[FIX] web_m2x_options: Compatibilize with web_advanced_search_x2x
2017-10-23 10:10:18 +02:00
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
```
2017-10-20 13:31:52 +02:00
Benjamin Willig a76e1ced54 [FIX] Ensure that domain field can be evaluated before creating x2x field 2017-10-20 12:42:11 +02:00
OCA Git Bot 98297d7cf2 [UPD] addons table in README.md 2017-10-20 02:40:50 +02:00
Pedro M. Baeza 85d519d937 Merge pull request #764 from Tecnativa/10.0-web_advanced_search_x2x-fix_string_leafs
[FIX] web_advanced_search_x2x: Allow to combine multiple domains
2017-10-19 18:13:43 +02:00
Jairo Llopis fb2c263145 [FIX] web_advanced_search_x2x: Allow to combine multiple domains
Before this patch, when a domain leaf was a string (such as `&`, `|` or `!`), it was being treated as an array. This was leading to errors such as this one:

```
2017-10-19 11:22:01,578 1 ERROR devel odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
    File "/opt/odoo/custom/src/odoo/odoo/http.py", line 640, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
    File "/opt/odoo/custom/src/odoo/odoo/http.py", line 677, in dispatch
    result = self._call_function(**self.params)
    File "/opt/odoo/custom/src/odoo/odoo/http.py", line 333, in _call_function
    return checked_call(self.db, *args, **kwargs)
    File "/opt/odoo/custom/src/odoo/odoo/service/model.py", line 101, in wrapper
    return f(dbname, *args, **kwargs)
    File "/opt/odoo/custom/src/odoo/odoo/http.py", line 326, in checked_call
    result = self.endpoint(*a, **kw)
    File "/opt/odoo/custom/src/odoo/odoo/http.py", line 935, in __call__
    return self.method(*args, **kw)
    File "/opt/odoo/custom/src/odoo/odoo/http.py", line 506, in response_wrap
    response = f(*args, **kw)
    File "/opt/odoo/auto/addons/web/controllers/main.py", line 827, in search_read
    return self.do_search_read(model, fields, offset, limit, domain, sort)
    File "/opt/odoo/auto/addons/web/controllers/main.py", line 849, in do_search_read
    offset=offset or 0, limit=limit or False, order=sort or False)
    File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4733, in search_read
    records = self.search(domain or [], offset=offset, limit=limit, order=order)
    File "/opt/odoo/custom/src/odoo/odoo/models.py", line 1559, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
    File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4275, in _search
    query = self._where_calc(args)
    File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4074, in _where_calc
    e = expression.expression(domain, self)
    File "/opt/odoo/custom/src/odoo/odoo/osv/expression.py", line 640, in __init__
    self.expression = distribute_not(normalize_domain(domain))
    File "/opt/odoo/custom/src/odoo/odoo/osv/expression.py", line 289, in distribute_not
    elif token in DOMAIN_OPERATORS_NEGATION:
TypeError: unhashable type: 'list'
```

Now they are treated specifically and the problem is fixed.˜Ž
2017-10-19 18:13:18 +02:00
Pedro M. Baeza 15be76862e [FIX] web_widget_domain_v11: Bump version
[skip ci]
2017-10-19 18:13:00 +02:00
Pedro M. Baeza 3bdd1baccf Merge pull request #763 from Tecnativa/10.0-web_widget_domain_v11-fix_operator_selector
[FIX] web_widget_domain_v11: Allow to change operator
2017-10-19 18:10:28 +02:00
Jairo Llopis 05381660f7 [FIX] web_widget_domain_v11: Allow to change operator
Previously, a Bootstrap dropdown was being used to choose the domain operator.

It was not working due to a problem that doesn't allow to have nested dropdowns in Odoo 10.0 search views, but possibly yes in the intermediate version where this addon was backported.

To get this working, the BS dropdown is replaced by a standard select element, so no more conflicts.
2017-10-19 14:01:27 +02:00
hpar 967d0f5489 Switch to old name 2017-10-17 10:54:46 +02:00
OCA Git Bot b1f0cf0df2 [ADD] setup.py 2017-10-17 04:42:42 +02:00
OCA Git Bot 9e6756f006 [UPD] addons table in README.md 2017-10-17 02:40:31 +02:00
Dave Lasley d98d9e45f2 Merge pull request #742 from LasLabs/bugfix/10.0/gh-741-chrome_slow_scroll
[FIX] web_responsive: Chrome slow scroll
2017-10-16 08:51:40 -07:00
Pedro M. Baeza edcbae383b Merge pull request #743 from simahawk/mig-10-web_readonly_bypass
[MIG][10.0] web_readonly_bypass
2017-10-16 17:33:30 +02:00
Dave Lasley f52d2ab674
[FIX] web_responsive: Chrome Slow Scrolling
* Update to iScoll bleeding edge to fix #741
2017-10-16 08:07:50 -07:00
Simone Orsi d606e348de [IMP] web_readonly_bypass: remove hard to port issue link 2017-10-16 12:39:15 +02:00
Pedro M. Baeza 199e6383fa [IMP] web_readonly_bypass: Include one2many fields instructions 2017-10-16 09:52:10 +02:00
Jonathan Nemry (ACSONE) aad46d9f76 [FIX+MIG] web_readonly_bypass: fix one2many popup 2017-10-16 09:52:10 +02:00
Simone Orsi 32aad6b60c [MIG][10.0] web_readonly_bypass rewrite JS and tests 2017-10-16 09:52:09 +02:00
OCA Git Bot 4e38b820e2 [UPD] addons table in README.md 2017-10-11 02:41:44 +02:00
Pedro M. Baeza d78ee651f5 Merge pull request #735 from Horanet/10.0
[10.0][IMP] web_timeline improvements
2017-10-10 17:50:44 +02:00
Kalpana Hemnani 112290d9b1 [MIG][10.0] web_readonly_bypass 2017-10-10 15:09:28 +02:00
OCA Git Bot 1edb170bf4 [ADD] setup.py 2017-10-03 04:43:37 +02:00
OCA Git Bot 16c5ed0200 [UPD] addons table in README.md 2017-10-03 02:43:09 +02:00
Dave Lasley 36c62c8d11 Merge pull request #595 from LasLabs/10.0-mig-web_widget_darkroom
[10.0][MIG] web_widget_darkroom: Migrated to 10.0
2017-10-02 08:44:32 -07:00
Brenton Hughes bb2b144a2f
[MIG] web_widget_darkroom: Add migration changes
* Remove fabric.js CDN link, source from static/lib instead
* Update python imports (openerp -> odoo)
* Remove unnecessary require('_')
* Update overlay image classes to v10
* Fix typo in readme
* Change module version number to standard (10.0.1.0.0)
* Add DarkroomJS version number to lib files
* Downgrade fabric.js (1.7.15 -> 1.6.7)
* Add Darkroomjs issue to ReadMe
2017-10-02 08:43:41 -07:00
adrien.didenot ea82165639 [IMP] Add an option to initialize the timeline window on display.
The default window display all the events (aka 'fit'), in case of events spread over the year, the events are invisibles (too small to be readable)

Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
2017-09-28 17:33:00 +02:00
adrien.didenot b0219bb219 [Fix OCA/project#317] Add the property date_delay to TimeLine views (same as base Calendar view)
In Odoo calendar view, the attribute date_delay is an alternative to date_stop, to provides the duration of the event instead of its end date.
This commit integrate this attribute to the Timeline view, but contrary to the base Calendar view the Timeline view could use both arguments (date_stop and date_delay) simultaneously.

Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
2017-09-28 17:28:17 +02:00
adrien.didenot 0c6cb5dff3 Cosmetic changes (to skip or squash)
Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
2017-09-27 14:12:18 +02:00
adrien.didenot 56cb7b53ec [10.0][IMP] web_timeline improvements:
* Update the vis.js framework to latest stable version (v4.20.1) to add new functionality and save almost
400ko of source code in odoo assets (the vis dev team has isolate the code for timeline widget from the
 rest of their widgets)

* Add the possibility to display events with no duration (instantaneous) as the same time has regular events

* Add the possibility to choose between two scroll mode :
  -  zoom in time resolution (default)
  or
  -  vertical scroll (web browser default behaviour)

Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
2017-09-27 14:09:37 +02:00
OCA Git Bot b0682bd6c6 [UPD] addons table in README.md 2017-09-26 02:41:48 +02:00
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
2017-09-25 09:24:40 +02:00
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.
2017-09-25 09:23:58 +02:00
Jordi Ballester Alomar 6dee0183a0 Merge pull request #733 from Callino/10.0-dialog_draggable-WP
[IMP] Added draggable support to dialogs
2017-09-20 17:44:35 +02:00
Wolfgang Pichler d61bcef81b [IMP] Added draggable support to dialogs 2017-09-19 10:11:10 +02:00
OCA Git Bot c9e44bfdd0 [ADD] setup.py 2017-09-17 04:41:38 +02:00
OCA Git Bot 5c643400e8 [UPD] addons table in README.md 2017-09-17 02:41:01 +02:00
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
2017-09-15 20:40:04 +02:00
Sergio Teruel Albert 853ea8eac0 [10.0][IMP] web_responsive: Load default kanban view for small screen 2017-09-15 18:10:50 +02:00
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
2017-09-15 11:24:12 +02:00
OCA Git Bot 5a958ba127 [ADD] setup.py 2017-09-15 04:41:51 +02:00
OCA Git Bot 8f66351206 [UPD] addons table in README.md 2017-09-15 02:41:21 +02:00
Stefan Rijnhart e08bd6520a [ADD] Demo data for testing 2017-09-14 21:40:43 +02:00
Stefan Rijnhart a7843d6049 [MIG][10.0] web_ir_actions_act_window_page 2017-09-14 15:47:52 +02:00
Pedro M. Baeza 7788b2af4c [FIX] web_shorcut: Version number changed 2017-09-14 14:10:05 +02:00
Pedro M. Baeza ff7c7649ba Merge pull request #694 from maxodoo/translated_shortcut_menu
translate shortcut menu items to user's language
2017-09-14 14:09:26 +02:00