Commit Graph

533 Commits

Author SHA1 Message Date
Jairo Llopis
cbecd4f9a8 [MIG] web_advanced_search: Migrate to v12 2022-02-21 17:40:46 -03:00
Jairo Llopis
26d641f207 [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
2022-02-21 17:40:46 -03:00
OCA Transbot
7231d0fa88 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2022-02-21 17:40:45 -03:00
Simone Orsi
696f1cacaa web_advanced_search: fix 1st domain node load 2022-02-21 17:40:45 -03:00
Jairo Llopis
2959785eb9 [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.
2022-02-21 17:40:45 -03:00
Jairo Llopis
578d2b3e23 [FIX] web_advanced_search: Make linter happy 2022-02-21 17:40:44 -03:00
Hans Henrik Gabelgaard
54cc2f8668 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/
2022-02-21 17:40:44 -03:00
OCA Git Bot
94c8d9fc54 [UPD] README.rst 2022-02-21 17:40:44 -03:00
oca-travis
857beebab1 [UPD] Update web_advanced_search.pot 2022-02-21 17:40:43 -03:00
Jairo Llopis
50f118a63d [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
2022-02-21 17:40:43 -03:00
Jose Maria Bernet
b0ffa80316 [MIG] web_advanced_search_x2x: Migration to 11.0
[FIX] StopPropagation when clicking in domain selector.
2022-02-21 17:40:43 -03:00
oca-travis
23bf949399 [UPD] Update web_advanced_search_x2x.pot 2022-02-21 17:40:42 -03:00
OCA Transbot
1f0c78bbea OCA Transbot updated translations from Transifex 2022-02-21 17:40:42 -03:00
Benjamin Willig
e51140f6a4 [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
2022-02-21 17:40:42 -03:00
Jairo Llopis
ffa10a8247 [FIX] Compatibilize web_widget_domain_v11 with web_advanced_search_x2x 2022-02-21 17:40:41 -03:00
ralwafaie
c08bd3571f [MIG] web_advanced_search_x2x: Migrated to 10.0
[MIG] web_advanced_search_x2x: Migrated to 10.0 FIX review Remarks
2022-02-21 17:40:41 -03:00
Jairo Llopis
5bb2ee44ea [FIX] web_advanced_search_x2x: Several things
* Make it good-looking
* Update known issues
* Fix templates.
* Make other operators work again
2022-02-21 17:40:41 -03:00
Holger Brunn
6b3553b968 inhibit closing the menu when selecting from the dropdown 2022-02-21 17:40:40 -03:00
Jairo Llopis
524264a54b Adapt to v9 API.
- Use the new domain widget.
- Use modules system.
2022-02-21 17:40:40 -03:00
cubells
e5c142d429 web_advanced_search_x2x module 2022-02-21 17:40:40 -03:00
Antonio Espinosa
a5dbffc3a5 [IMP] web_advanced_search_x2x spanish translation
Change fitro by dominio
2022-02-21 17:40:39 -03:00
Lionel Sausin
6ea0c02ecf [I18N] FR translation for web_advanced_search_x2x
I could not find the project on Transifex...
2022-02-21 17:40:39 -03:00
Holger Brunn
22494534ff [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
2022-02-21 17:40:39 -03:00
OCA-git-bot
0c32a2fcbf [UPD] addons table in README.md 2022-02-21 10:49:13 +00:00
OCA-git-bot
151bdfa439 web_widget_x2many_2d_matrix 15.0.1.0.1 2022-02-21 10:49:07 +00:00
OCA-git-bot
b55077cd31 [UPD] README.rst 2022-02-21 10:49:07 +00:00
OCA-git-bot
82babb31ce [UPD] addons table in README.md 2022-02-21 10:49:05 +00:00
OCA-git-bot
d63365d5c9 Merge PR #2150 into 15.0
Signed-off-by etobella
2022-02-21 10:46:41 +00:00
Lois Rilo
d6a5d17888 [UPD] web_widget_x2many_2d_matrix dev status to Production/stable 2022-02-21 11:42:33 +01:00
Pedro M. Baeza
077231f767 [IMP] web_responsive: Indicate incompatibility
Closes #2149
2022-02-18 15:40:27 +01:00
OCA-git-bot
b69172e788 [ADD] setup.py 2022-02-18 09:12:05 +00:00
OCA-git-bot
1678c450e4 [UPD] README.rst 2022-02-18 09:12:05 +00:00
OCA-git-bot
57025b31e9 [UPD] addons table in README.md 2022-02-18 09:12:03 +00:00
oca-ci
8e2d9ab65e [UPD] Update web_widget_x2many_2d_matrix.pot 2022-02-18 09:09:21 +00:00
OCA-git-bot
921669699d Merge PR #2110 into 15.0
Signed-off-by etobella
2022-02-18 09:06:58 +00:00
Christopher Ormaza
918f014040 [15.0][MIG] web_widget_x2many_2d_matrix 2022-02-18 09:33:22 +01:00
Christopher Ormaza
9445264f5f [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2022-02-18 09:33:22 +01:00
OCA-git-bot
3069215ffd web_widget_x2many_2d_matrix 14.0.1.0.1 2022-02-18 09:33:22 +01:00
Sylvain LE GAL
2ee1c27dae [FIX] web_widget_x2many_2d_matrix: remove console.log 2022-02-18 09:33:22 +01:00
Bosd
424e0507cb Translated using Weblate (Dutch)
Currently translated at 100.0% (3 of 3 strings)

Translation: web-14.0/web-14.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_x2many_2d_matrix/nl/
2022-02-18 09:33:22 +01:00
Bosd
ac984626dc Translated using Weblate (Dutch)
Currently translated at 33.3% (1 of 3 strings)

Translation: web-14.0/web-14.0-web_widget_x2many_2d_matrix
Translate-URL: https://translation.odoo-community.org/projects/web-14-0/web-14-0-web_widget_x2many_2d_matrix/nl_NL/
2022-02-18 09:33:22 +01:00
Bosd
f3bd1898f8 Added translation using Weblate (Dutch) 2022-02-18 09:33:22 +01:00
OCA-git-bot
fa2c0053d9 [UPD] README.rst 2022-02-18 09:33:22 +01:00
oca-travis
c4f6f5ba2b [UPD] Update web_widget_x2many_2d_matrix.pot 2022-02-18 09:33:22 +01:00
Saran440
1571fd787f [14.0][MIG] web_widget_x2many_2d_matrix 2022-02-18 09:33:22 +01:00
Saran440
c04bbcb411 [IMP] web_widget_x2many_2d_matrix: black, isort, prettier 2022-02-18 09:33:22 +01:00
Alexey Pelykh
83c3b860c1 [UPD] Brainbean Apps => CorporateHub 2022-02-18 09:33:22 +01:00
c2cdidier
a462109491 Translated using Weblate (German)
Currently translated at 100.0% (3 of 3 strings)

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/de/
2022-02-18 09:33:22 +01:00
Alexandre Díaz
12cc1e4980 [IMP] web_widget_x2many_2d_matrix: Debug mode 2022-02-18 09:33:22 +01:00
OCA Transbot
928f74338b 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/
2022-02-18 09:33:22 +01:00