Commit Graph

485 Commits

Author SHA1 Message Date
Jairo Llopis
2cc975aac0 [MIG] web_advanced_search: Migrate to v12 2023-03-07 14:45:59 +01:00
Jairo Llopis
74995bcba4 [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
2023-03-07 14:45:59 +01:00
OCA Transbot
c43478c990 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2023-03-07 14:45:59 +01:00
Simone Orsi
4ffe89bcf8 web_advanced_search: fix 1st domain node load 2023-03-07 14:45:59 +01:00
Jairo Llopis
f9ebb1b649 [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.
2023-03-07 14:45:59 +01:00
Jairo Llopis
b90fb1b7b3 [FIX] web_advanced_search: Make linter happy 2023-03-07 14:45:59 +01:00
Hans Henrik Gabelgaard
271a7593af 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/
2023-03-07 14:45:59 +01:00
OCA Git Bot
b13bc64d71 [UPD] README.rst 2023-03-07 14:45:59 +01:00
oca-travis
cae24ba691 [UPD] Update web_advanced_search.pot 2023-03-07 14:45:59 +01:00
Jairo Llopis
9a5a9d5ef5 [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
2023-03-07 14:45:59 +01:00
Jose Maria Bernet
50928c02aa [MIG] web_advanced_search_x2x: Migration to 11.0
[FIX] StopPropagation when clicking in domain selector.
2023-03-07 14:45:59 +01:00
oca-travis
e2b345873b [UPD] Update web_advanced_search_x2x.pot 2023-03-07 14:45:59 +01:00
OCA Transbot
b2c4c840e6 OCA Transbot updated translations from Transifex 2023-03-07 14:45:59 +01:00
Benjamin Willig
51f535dfe0 [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
2023-03-07 14:45:59 +01:00
Jairo Llopis
4abb1b59e7 [FIX] Compatibilize web_widget_domain_v11 with web_advanced_search_x2x 2023-03-07 14:45:59 +01:00
ralwafaie
54496bef25 [MIG] web_advanced_search_x2x: Migrated to 10.0
[MIG] web_advanced_search_x2x: Migrated to 10.0 FIX review Remarks
2023-03-07 14:45:59 +01:00
Jairo Llopis
0c984c5b3a [FIX] web_advanced_search_x2x: Several things
* Make it good-looking
* Update known issues
* Fix templates.
* Make other operators work again
2023-03-07 14:45:59 +01:00
Holger Brunn
24dfdd0d32 inhibit closing the menu when selecting from the dropdown 2023-03-07 14:45:59 +01:00
Jairo Llopis
5a0eb15972 Adapt to v9 API.
- Use the new domain widget.
- Use modules system.
2023-03-07 14:45:59 +01:00
cubells
00ad98c2b1 web_advanced_search_x2x module 2023-03-07 14:45:59 +01:00
Antonio Espinosa
6a2ede8326 [IMP] web_advanced_search_x2x spanish translation
Change fitro by dominio
2023-03-07 14:45:59 +01:00
Lionel Sausin
95b8b81443 [I18N] FR translation for web_advanced_search_x2x
I could not find the project on Transifex...
2023-03-07 14:45:59 +01:00
Holger Brunn
22cf47f3ad [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
2023-03-07 14:45:59 +01:00
Ediz Duman
a18481444e Translated using Weblate (Turkish)
Currently translated at 87.5% (21 of 24 strings)

Translation: web-16.0/web-16.0-web_responsive
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_responsive/tr/
2023-03-07 08:02:26 +00:00
Weblate
6fe45fb06b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-16.0/web-16.0-web_responsive
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_responsive/
2023-03-06 20:09:05 +00:00
Weblate
7ab1190a25 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: web-16.0/web-16.0-web_responsive
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_responsive/
2023-03-06 20:08:51 +00:00
Ediz Duman
3ab1ed967f Translated using Weblate (Turkish)
Currently translated at 80.0% (4 of 5 strings)

Translation: web-16.0/web-16.0-web_chatter_position
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_chatter_position/tr/
2023-03-06 20:08:51 +00:00
Ediz Duman
22672a106b Translated using Weblate (Turkish)
Currently translated at 100.0% (13 of 13 strings)

Translation: web-16.0/web-16.0-web_timeline
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_timeline/tr/
2023-03-06 20:08:50 +00:00
Ediz Duman
1ae7e8ffc6 Translated using Weblate (Turkish)
Currently translated at 100.0% (4 of 4 strings)

Translation: web-16.0/web-16.0-web_dark_mode
Translate-URL: https://translation.odoo-community.org/projects/web-16-0/web-16-0-web_dark_mode/tr/
2023-03-06 20:08:50 +00:00
Ediz Duman
5eb88a1529 Added translation using Weblate (Turkish) 2023-03-06 18:53:16 +00:00
Ediz Duman
d60abf7892 Added translation using Weblate (Turkish) 2023-03-06 18:46:09 +00:00
Ediz Duman
b06fac833f Added translation using Weblate (Turkish) 2023-03-06 18:42:13 +00:00
OCA-git-bot
a01f9fb656 [ADD] setup.py 2023-03-06 16:42:18 +00:00
OCA-git-bot
62dc302a43 [UPD] README.rst 2023-03-06 16:42:18 +00:00
OCA-git-bot
4000a7e062 [UPD] addons table in README.md 2023-03-06 16:42:16 +00:00
oca-ci
db50d0a3b3 [UPD] Update web_responsive.pot 2023-03-06 16:39:48 +00:00
OCA-git-bot
5fd901583d Merge PR #2405 into 16.0
Signed-off-by pedrobaeza
2023-03-06 16:37:11 +00:00
anjeel.haria
beda62914b [MIG] web_responsive: Migration to 16.0
Fix for optional dropdown checkbox in list view

Made Changes for compatibility with web_chatter_position module

Fix for attachment delete dialog
2023-03-06 17:01:59 +01:00
OCA-git-bot
3e488cdf61 [ADD] setup.py 2023-03-04 18:02:17 +00:00
OCA-git-bot
2548c960b0 [UPD] README.rst 2023-03-04 18:02:16 +00:00
OCA-git-bot
be9bec06d9 [UPD] addons table in README.md 2023-03-04 18:02:14 +00:00
oca-ci
b3c050bd3c [UPD] Update web_chatter_position.pot 2023-03-04 17:59:48 +00:00
OCA-git-bot
3d3e06a986 Merge PR #2419 into 16.0
Signed-off-by pedrobaeza
2023-03-04 17:57:31 +00:00
OCA-git-bot
729f12f7b9 [ADD] setup.py 2023-03-02 09:34:10 +00:00
OCA-git-bot
b82f608f2c [UPD] README.rst 2023-03-02 09:34:09 +00:00
OCA-git-bot
1eed8f6187 [UPD] addons table in README.md 2023-03-02 09:34:08 +00:00
oca-ci
39081b996a [UPD] Update web_timeline.pot 2023-03-02 09:31:26 +00:00
OCA-git-bot
c9db24045a Merge PR #2378 into 16.0
Signed-off-by tarteo
2023-03-02 09:29:21 +00:00
OCA-git-bot
b7aef5c2f7 [ADD] setup.py 2023-03-02 08:58:56 +00:00
OCA-git-bot
ed14ddfa5b [ADD] icon.png 2023-03-02 08:58:55 +00:00