Commit Graph

505 Commits (2d1927bd4f71090748ce26e90fd931e21e104ca8)

Author SHA1 Message Date
Pedro Castro Silva 2d1927bd4f Added translation using Weblate (Portuguese) 2020-03-13 18:53:40 +01:00
eduardgm 45e81a6df5 Translated using Weblate (Spanish)
Currently translated at 100.0% (1 of 1 strings)

Translation: web-12.0/web-12.0-web_advanced_search
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_advanced_search/es/
2020-03-13 18:53:40 +01:00
OCA-git-bot bf3ce25c45 [UPD] README.rst 2020-03-13 18:53:40 +01:00
Kévin Allard e1713c16b5 Translated using Weblate (French)
Currently translated at 100.0% (1 of 1 strings)

Translation: web-12.0/web-12.0-web_advanced_search
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_advanced_search/fr/
2020-03-13 18:53:40 +01:00
OCA Transbot 8de1645e30 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-12.0/web-12.0-web_advanced_search
Translate-URL: https://translation.odoo-community.org/projects/web-12-0/web-12-0-web_advanced_search/
2020-03-13 18:53:40 +01:00
oca-travis 5fba65aa15 [UPD] Update web_advanced_search.pot 2020-03-13 18:53:40 +01:00
Jairo Llopis ea4a3d1145 [MIG] web_advanced_search: Migrate to v12 2020-03-13 18:53:40 +01:00
Jairo Llopis d63e20d101 [FIX] web_advanced_search: Ignore field domain
If we honor the domain value, the user may not be getting all available
records when selecting from an x2many dropdown, or even worse, if the
domain references another field in the view, the user may be getting
an error when opening the field dropdown, like this:

    Error: NameError: name 'company_id' is not defined

    http://localhost/web/static/lib/py.js/lib/py.js:370
    Rastreo de error:
    PY_ensurepy@http://localhost/web/static/lib/py.js/lib/py.js:370:19
    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/core/pyeval.js:886: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/core/pyeval.js:877:16
    pyeval@http://localhost/web/static/src/js/core/pyeval.js:988:16
    stringToArray@http://localhost/web/static/src/js/core/domain.js:243:16
    _getDomain@http://localhost/web/static/src/js/views/basic/basic_model.js:3004:24
    _search@http://localhost/web_m2x_options/static/src/js/form.js:139:26
    source@http://localhost/web/static/src/js/fields/relational_fields.js:198: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
    _onInputClick@http://localhost/web/static/src/js/fields/relational_fields.js:565:13
    proxy/<@http://localhost/web/static/src/js/core/mixins.js:279:20
    dispatch@http://localhost/web/static/lib/jquery/jquery.js:4640:50
    add/elemData.handle@http://localhost/web/static/lib/jquery/jquery.js:4309:41
2020-03-13 18:53:40 +01:00
OCA Transbot 559ec94468 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2020-03-13 18:53:40 +01:00
Simone Orsi 83094a86cc web_advanced_search: fix 1st domain node load 2020-03-13 18:53:40 +01:00
Jairo Llopis 6886a9bfe9 [FIX] web_advanced_search: `undefined` in x2m fields
Before this patch, when searching with the "equals to" operator in any
x2many field, the searched parameter was always `undefined`.

The problem was that the underlying field manager implementation was
treating those fields as x2many, while the widget used was the `one2many`
one.

This patch simply mocks the underlying fake record to make think that
any relational field is always a `one2many`. This sets all pieces in
place and makes the field manager work as expected, and thus you can
search as expected too.
2020-03-13 18:53:40 +01:00
Jairo Llopis 2696a04ed0 [FIX] web_advanced_search: Make linter happy 2020-03-13 18:53:40 +01:00
Hans Henrik Gabelgaard ab82c265ae Added translation using Weblate (Danish)
Currently translated at 100,0% (1 of 1 strings)

Translation: web-11.0/web-11.0-web_advanced_search
Translate-URL: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_advanced_search/da/
2020-03-13 18:53:40 +01:00
OCA Git Bot fde7c38655 [UPD] README.rst 2020-03-13 18:53:40 +01:00
oca-travis c1073ac09b [UPD] Update web_advanced_search.pot 2020-03-13 18:53:40 +01:00
Jairo Llopis 80a3f86161 [MIG][REF] web_advanced_search: Rename, refactor, migrate
* Complete migration to v11
* Refactor to use the new v11 decoupled widgets system
* Advanced search is now a high-level feature from the filters menu; it simplifies code a lot, and the UX is even better
* Split README system
* Add fun to ROADMAP
* Addon is renamed to web_advanced_search, since it enhaces the searching experience for all kind of fields now
2020-03-13 18:53:40 +01:00
Jose Maria Bernet d1b7b090ea [MIG] web_advanced_search_x2x: Migration to 11.0
[FIX] StopPropagation when clicking in domain selector.
2020-03-13 18:53:40 +01:00
oca-travis 7100f3f178 [UPD] Update web_advanced_search_x2x.pot 2020-03-13 18:53:40 +01:00
OCA Transbot dcb9e36935 OCA Transbot updated translations from Transifex 2020-03-13 18:53:40 +01:00
Benjamin Willig e8bb4080dd [FIX] web_advanced_search: 2 fixes
* Ensure that domain field can be evaluated before creating x2x field
* Fixed navigation error after using x2x advanced search
2020-03-13 18:53:40 +01:00
Jairo Llopis b853f714a8 [FIX] Compatibilize web_widget_domain_v11 with web_advanced_search_x2x 2020-03-13 18:53:40 +01:00
ralwafaie 9984ddbc11 [MIG] web_advanced_search_x2x: Migrated to 10.0
[MIG] web_advanced_search_x2x: Migrated to 10.0 FIX review Remarks
2020-03-13 18:53:40 +01:00
Jairo Llopis 4e54a3194b [FIX] web_advanced_search_x2x: Several things
* Make it good-looking
* Update known issues
* Fix templates.
* Make other operators work again
2020-03-13 18:53:40 +01:00
Holger Brunn 2ad33e82cf inhibit closing the menu when selecting from the dropdown 2020-03-13 18:53:40 +01:00
Jairo Llopis 33c4483f16 Adapt to v9 API.
- Use the new domain widget.
- Use modules system.
2020-03-13 18:53:40 +01:00
cubells d7457a5f51 web_advanced_search_x2x module 2020-03-13 18:53:40 +01:00
Antonio Espinosa 1e056606c6 [IMP] web_advanced_search_x2x spanish translation
Change fitro by dominio
2020-03-13 18:53:40 +01:00
Lionel Sausin 33bcba0303 [I18N] FR translation for web_advanced_search_x2x
I could not find the project on Transifex...
2020-03-13 18:53:40 +01:00
Holger Brunn 9bab0f605b [REN] to web_advanced_search_x2x
and replace company icon

[FIX] js syntax

[FIX] move our patched equals operator to top of list

[ADD] support selecting domains on x2x fields

[FIX] eval search view's domain

[IMP] UI fixes

[IMP] reflect recent additions in README.rst

[FIX] typos

[ADD] translations

[FIX] correct js reference

[RFR] rebuild our domains in a different way

this solves timing problems
2020-03-13 18:53:40 +01:00
OCA Transbot 516cc0f6f7 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-13.0/web-13.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_x2many_2d_matrix/
2020-03-09 07:36:52 +00:00
OCA Transbot 9a95f92c7e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-13.0/web-13.0-web_widget_x2many_2d_matrix_example
Translate-URL: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_x2many_2d_matrix_example/
2020-03-09 07:36:52 +00:00
OCA-git-bot 95c04268c5 web_widget_url_advanced 13.0.1.1.0 2020-03-09 07:36:39 +00:00
OCA-git-bot 6b03c6cab6 [ADD] setup.py 2020-03-09 07:36:39 +00:00
OCA-git-bot c395dbb074 [UPD] README.rst 2020-03-09 07:36:38 +00:00
oca-travis c2d65118cc [UPD] Update web_widget_url_advanced.pot 2020-03-09 07:31:14 +00:00
OCA-git-bot eaa36a86d6 Merge PR #1541 into 13.0
Signed-off-by simahawk
2020-03-09 07:25:59 +00:00
Joan Sisquella b8d28ba8cf [IMP] Merge 'web_widget_prefixed_url' 2020-03-06 10:12:56 +01:00
Joan Sisquella e79b46bb63 [MIG] web_widget_url_advanced: Migration to 13.0 2020-03-06 10:07:30 +01:00
Joan Sisquella 22cd93947a [IMP] web_widget_url_advanced: black, isort 2020-03-06 10:07:30 +01:00
黎伟杰 a26f32f2ce Added translation using Weblate (Chinese (Simplified)) 2020-03-06 10:07:30 +01:00
OCA-git-bot 227610390d [UPD] README.rst 2020-03-06 10:07:30 +01:00
oca-travis 65f3bd33f7 [UPD] Update web_widget_url_advanced.pot 2020-03-06 10:07:30 +01:00
Alexey Pelykh d1f91f489a [MIG] web_widget_url_advanced: Migration to 12.0 2020-03-06 10:07:30 +01:00
oca-travis 55e884777e [UPD] Update web_widget_url_advanced.pot 2020-03-06 10:07:30 +01:00
Simone Orsi 5c268e4606 [ADD] web_widget_url_advanced 2020-03-06 10:07:30 +01:00
OCA-git-bot d419b546ec web_widget_x2many_2d_matrix 13.0.1.1.0 2020-03-06 07:35:43 +00:00
OCA-git-bot b4f012a81e web_widget_x2many_2d_matrix_example 13.0.1.1.0 2020-03-06 07:35:41 +00:00
OCA-git-bot 4216bcb879 [ADD] setup.py 2020-03-06 07:35:41 +00:00
OCA-git-bot fef6fbcb12 [UPD] README.rst 2020-03-06 07:35:40 +00:00
oca-travis b75deea8cb [UPD] Update web_widget_x2many_2d_matrix_example.pot 2020-03-06 07:30:23 +00:00