Commit Graph

37 Commits (7f2ad70e254c32e2831e679974600a031cfdb96e)

Author SHA1 Message Date
Pedro M. Baeza 0aac3eb055 [FIX] web_advanced_search_x2x: Bump version
[skip ci]
2017-10-26 11:43:40 +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
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
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.
2017-09-05 11:57:59 +02:00
Jairo Llopis 709c11c842 [FIX][web_advanced_search_x2x] Do not hide filter when clicking in it
Fixes #703.
2017-08-21 13:46:59 +02:00
Jairo Llopis 2cc0d8d52f [FIX] Compatibilize web_widget_domain_v11 with web_advanced_search_x2x 2017-07-25 09:39:21 +02:00
OCA Transbot 977a85c133 OCA Transbot updated translations from Transifex 2017-07-15 12:53:39 +02:00
OCA Transbot 5b64d6801c OCA Transbot updated translations from Transifex 2017-07-01 12:43:17 +02:00
OCA Transbot f33cf1292c OCA Transbot updated translations from Transifex 2017-06-24 12:40:00 +02:00
OCA Transbot 10f1b9be01 OCA Transbot updated translations from Transifex 2017-06-03 12:41:51 +02:00
ralwafaie 725bc6cb41 [MIG] web_advanced_search_x2x: Migrated to 10.0 FIX review Remarks 2017-05-29 12:09:09 +02:00
ralwafaie 588c5cdaaf [MIG] web_advanced_search_x2x: Migrated to 10.0 2017-05-29 12:09:09 +02:00
Jairo Llopis b13f0324bb Make other operators work again 2017-05-29 12:09:09 +02:00
Jairo Llopis dec6f86de5 Make it good-looking, update known issues, fix templates. 2017-05-29 12:09:09 +02:00
Holger Brunn 9f0baade9c inhibit closing the menu when selecting from the dropdown 2017-05-29 12:09:09 +02:00
Jairo Llopis a81622e2cd Adapt to v9 API.
- Use the new domain widget.
- Use modules system.
2017-05-29 12:09:09 +02:00
cubells 06991fc89d web_advanced_search_x2x module 2017-05-29 12:09:09 +02:00
Pedro M. Baeza 648315dadf [MIG] Rename manifest files 2016-10-06 16:13:01 +02:00
Pedro M. Baeza 8a9710a005 [MIG] Make modules uninstallable 2015-10-14 02:57:05 +02:00
Stéphane Bidoul fa199590b3 [UPD] prefix versions with 8.0 2015-10-09 10:03:39 +02:00
Antonio Espinosa 06fe08f3b8 Change fitro by dominio 2015-08-24 13:03:17 +02:00
Antonio Espinosa 56e0ba31a8 [IMP] web_advanced_search_x2x spanish translation 2015-08-24 12:53:43 +02:00
Pedro M. Baeza 44d5523572 Merge pull request #178 from hbrunn/8.0-web_advanced_search_x2x
[FIX] merge user context into search popup's context
2015-07-30 21:13:59 +02:00
Holger Brunn d74f15fc97 [FIX] merge user context into search popup's context
fixes #175, #177
2015-07-17 11:14:17 +02:00
Lionel Sausin cd60b2072c [I18N] FR translation for web_advanced_search_x2x
I could not find the project on Transifex...
2015-07-07 18:05:37 +02:00
Markus Schneider 4696fffbe4 add OCA to author 2015-06-04 14:30:25 +02:00
Holger Brunn 557a4309b4 [RFR] rebuild our domains in a different way
this solves timing problems
2015-05-28 10:55:44 +02:00
Holger Brunn d43dd07625 [FIX] correct js reference 2015-05-27 19:40:16 +02:00
Holger Brunn fc15a0c833 [ADD] translations 2015-05-27 09:31:33 +02:00
Holger Brunn 894095bfc3 [FIX] typos 2015-05-27 09:19:06 +02:00
Holger Brunn 8b611126d9 [IMP] reflect recent additions in README.rst 2015-05-27 09:15:34 +02:00
Holger Brunn b2cae75895 [IMP] UI fixes 2015-05-27 09:06:09 +02:00
Holger Brunn f233b91782 [FIX] eval search view's domain 2015-05-26 15:40:13 +02:00
Holger Brunn 777c9d3eea [ADD] support selecting domains on x2x fields 2015-05-26 15:33:30 +02:00
Holger Brunn d875f7726c [FIX] move our patched equals operator to top of list 2015-05-26 09:05:43 +02:00
Holger Brunn ae3ec7c54e [FIX] js syntax 2015-05-18 11:10:55 +02:00
Holger Brunn f66ddf8718 [REN] to web_advanced_search_x2x
and replace company icon
2015-05-06 17:44:45 +02:00