Commit Graph

1408 Commits (10.0)

Author SHA1 Message Date
lreficent 3997b1fdab [9.0][ADD] web_widget_bokeh_chart 2017-12-27 12:59:01 +01:00
OCA Git Bot 5074a68401 [UPD] addons table in README.md 2017-12-22 02:42:40 +01:00
Pedro M. Baeza a028254510
Merge pull request #829 from Tecnativa/10.0-fix-web_dialog_size
[FIX] web_dialog_size: default_maximize
2017-12-20 09:20:11 +01:00
David d4909ee660 [FIX] web_dialog_size: default_maximize
- default_maximize option wasn't working due to strict value comparison
2017-12-19 20:07:03 +01:00
Dave Lasley 2c254cce51
[IMP] web_responsive: Add search feature
* Add feature to search menus in the app drawer
2017-12-14 17:07:30 -08:00
OCA Git Bot 3075230e3a [UPD] addons table in README.md 2017-12-03 02:42:57 +01:00
Pedro M. Baeza 1371182f66
Merge pull request #814 from npiganeau/patch-1
[FIX] web_timeline: css adapted to upstream
2017-12-02 02:48:57 +01:00
Benjamin Willig 14cfc98310 [FIX] Fixed navigation error after using x2x advanced search 2017-11-30 12:36:06 +01:00
Nicolas PIGANEAU 1050f1eba2 Fixed web_timeline.css
CSS classes have changed with the updated version of vis.js
2017-11-30 10:00:12 +01:00
OCA Git Bot f9a9aba4fb [UPD] addons table in README.md 2017-11-29 02:42:01 +01:00
Dave Lasley 86d181c1b0
Merge pull request #813 from fanha99/10_web_responsive_hide_header_when_print
[10] [web responsive]: hide header when print directly from browser
2017-11-28 09:49:38 -08:00
Fanha Giang 71bbedd4d0 [10] [web responsive]: hide header when print directly from browser 2017-11-28 15:26:38 +07:00
OCA Git Bot 4027ac27de [ADD] setup.py 2017-11-22 04:43:45 +01:00
OCA Git Bot 15d50f091f [UPD] addons table in README.md 2017-11-22 02:41:22 +01:00
beau sebastien f1e5bb0851
Merge pull request #722 from akretion/10.0-mig-web_switch_company_warning
[MIG] web_switch_company_warning to 10.0 Migration
2017-11-21 10:44:36 +01:00
OCA Git Bot d96901a8b3 [UPD] addons table in README.md 2017-11-21 02:41:22 +01:00
adrien.didenot 5f3ff1de5d [IMP] change the option to initialize the timeline window on display.
Change the attribute 'default_window' to 'mode' like the Odoo calendar view (to be iso functional)
2017-11-20 09:57:04 +01:00
OCA Git Bot 4197b3795b [UPD] addons table in README.md 2017-11-05 02:40:55 +01:00
Pedro M. Baeza 7f2ad70e25
Merge pull request #776 from LasLabs/bugfix/10.0/web_responsive-menu_height_init
[10.0][FIX] web_responsive: Menu Height on Init
2017-11-04 14:19:33 +01:00
OCA Git Bot bf3a8574ce [UPD] addons table in README.md 2017-11-04 02:40:49 +01:00
Pedro M. Baeza 4087af83da
Merge pull request #617 from acsone/10.0-mig-web_domain_field-dro
[10.0][MIG] Migrates web_domain_field module
2017-11-03 16:22:38 +01:00
Denis Roussel 043b476ba3 [10.0][MIG] Migrates web_domain_field 2017-11-03 16:05:20 +01:00
OCA Git Bot af42e0cfaa [UPD] addons table in README.md 2017-10-27 02:40:56 +02:00
Pedro M. Baeza 0aac3eb055 [FIX] web_advanced_search_x2x: Bump version
[skip ci]
2017-10-26 11:43:40 +02:00
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