3
0
Fork 0
Commit Graph

22 Commits (d4909ee66019efc880ec3e83b5b385a53f44ee6c)

Author SHA1 Message Date
Benjamin Willig 14cfc98310 [FIX] Fixed navigation error after using x2x advanced search 2017-11-30 12:36:06 +01: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
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
Holger Brunn d74f15fc97 [FIX] merge user context into search popup's context
fixes #175, #177
2015-07-17 11:14:17 +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 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