Commit Graph

635 Commits

Author SHA1 Message Date
OCA-git-bot
4d03d6fe66 Merge PR #1480 into 13.0
Signed-off-by simahawk
2020-03-19 12:14:52 +00:00
Guewen Baconnier
03cf40d81b run pre-commit with new prettiers 2020-03-19 11:38:41 +01:00
Guewen Baconnier
a8b8e706c5 Run pre-commit and fix js issues after rebase on new config 2020-03-19 11:37:58 +01:00
Guewen Baconnier
8469dbb954 Remove support of dynamic colors on <tree>
The 'colors' and 'options' fields are not supported by the RelaxNG
schema of the <tree> element. Remove the support until we find a
good solution for this.
2020-03-19 11:37:58 +01:00
Guewen Baconnier
0280e0479c [MIG] web_tree_dynamic_colored_field: Migration to 13.0
Use 'options' instead of 'colors' on tree views

The colors attribute has been removed from the RelaxNG schema in
Odoo [0], so use the 'options' instead.

Closes #1479

[0] 7024f8d58b (diff-e9acd2f731cc01f302055b6e232df983)
2020-03-19 11:37:58 +01:00
Guewen Baconnier
796c683279 [REF] web_tree_dynamic_colored_field: Black python code 2020-03-19 11:37:58 +01:00
OCA Transbot
acf04d5c5e OCA Transbot updated translations from Transifex 2020-03-19 11:37:58 +01:00
OCA-git-bot
8918d695ec [UPD] README.rst 2020-03-19 11:37:58 +01:00
Adrià Gil Sorribes
afb25604c2 remove pyeval class and fixup 2020-03-19 11:37:58 +01:00
mreficent
266d5906bc web_tree_dynamic_colored_field: Migration to 12.0 2020-03-19 11:37:58 +01:00
Damien Crier
58ed66c412 Update README because of wrong license
Found in this commit: 3965057913
2020-03-19 11:37:58 +01:00
QS5ELkMu
bc096bace2 [FIX] Issue #906 2020-03-19 11:37:58 +01:00
Luis Adan
d2a4d24115 [IMP] web_tree_dynamic_colored_field: Update README.rst (#899)
Use more than one color condition
2020-03-19 11:37:58 +01:00
Guewen Baconnier
801bc5fcc0 web_tree_dynamic_colored_field: correct options examples in readme 2020-03-19 11:37:58 +01:00
Guewen Baconnier
c3bb0ab121 web_tree_dynamic_colored_field: Assume that color may not start with 'color_field'
The index at 0 in the following code:
  var colorField = this.arch.attrs.colors.split(';')
  .filter(color => color.trim().startsWith('color_field'))[0]
Was failing on such valid xml:
  <tree string="Buffer monitor"
        colors="red:procure_recommended_qty &gt; 0">
2020-03-19 11:37:58 +01:00
Guewen Baconnier
67894c6ad5 web_tree_dynamic_colored_field: Parse field options with pyeval
The options in <field> attributes are parsed as python expressions:
d18976d748/addons/web/static/src/js/services/data_manager.js (L273)

And the options in <button> are parsed as json...
d18976d748/addons/web/static/src/js/services/data_manager.js (L411)

This code only support the <field> element because I'm not sure there
is a use for the <button> element.
2020-03-19 11:37:58 +01:00
Artem Kostyuk
2fe7b1553f [MIG] web_tree_dynamic_colored_field: Migration to 11.0 2020-03-19 11:37:58 +01:00
jesusVMayor
5f937ffee6 Migration of web_tree_dynamic_colored_field to 10.0 2020-03-19 11:37:58 +01:00
Holger Brunn
58eb0738f5 web_tree_dynamic_colored_field v9
demo view
2020-03-19 11:37:58 +01:00
Holger Brunn
ef4be297ba delete unused code, move files to standard locations
support color_field attribute

update manifest

higher version number bump

typo
2020-03-19 11:37:58 +01:00
Damien Crier
aecb612f61 [IMP] rename module to 'web_tree_dynamic_colored_field' 2020-03-19 11:37:58 +01:00
Alexandre Díaz
0732a98b84 [MIG] web_advance_search: Migration to 13.0 2020-03-18 19:17:16 +01:00
OCA-git-bot
6bbbc3cb07 Merge PR #1550 into 13.0
Signed-off-by legalsylvain
2020-03-17 10:59:04 +00:00
Lois Rilo
ba96690bc2 freeze dependency to avoid futures issues when the library gets updated 2020-03-17 10:59:51 +01:00
OCA-git-bot
9a7a9c9248 [ADD] setup.py 2020-03-17 08:41:29 +00:00
OCA-git-bot
539fd2cee8 [ADD] icon.png 2020-03-17 08:41:29 +00:00
OCA-git-bot
9f617c513f [UPD] README.rst 2020-03-17 08:41:28 +00:00
oca-travis
f429a27d2e [UPD] Update web_widget_mpld3_chart.pot 2020-03-17 08:36:16 +00:00
OCA-git-bot
6d364c2617 Merge PR #1549 into 13.0
Signed-off-by JordiBForgeFlow
2020-03-17 08:30:44 +00:00
Adrià Gil Sorribes
705361c823 [IMP] web_widget_mpld3_chart: black, isort 2020-03-17 08:19:19 +01:00
Jordi Ballester Alomar
0404c9c077 add web_widget_mpld3_chart 2020-03-17 07:12:52 +01:00
OCA-git-bot
8a62823681 pre-commit update 2020-03-14 12:32:49 +01:00
Alexandre Díaz
5ad636678c [IMP] web_advanced_search: black, isort 2020-03-13 19:04:49 +01:00
OCA-git-bot
4d11f9c5b6 web_advanced_search 12.0.1.0.2 2020-03-13 18:53:40 +01:00
sbejaoui
811cb163a5 [FIX] - advanced search, combination of several OR operators
There is a problem when converting a domain object to an array.

in the case of a combination of several OR operators, the retroconversion into an array
from the domain object is not equal to the original array used for initialization.

The problem can be related to the initialization of the domain object or to the
conversion to an array, but in any case, it is out of this PR scope.

The humanDomain needs an array domain, which mean that the conversion and the
retro-conversion are useless in this case.
2020-03-13 18:53:40 +01:00
OCA-git-bot
73af768a54 [UPD] README.rst 2020-03-13 18:53:40 +01:00
tarteo
22efa5bc9b [IMP] web_advanced_search: contains search 2020-03-13 18:53:40 +01:00
Bole
f86b57622f Translated using Weblate (Croatian)
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/hr/
2020-03-13 18:53:40 +01:00
黎伟杰
0e2603de8f Translated using Weblate (Chinese (Simplified))
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/zh_CN/
2020-03-13 18:53:40 +01:00
黎伟杰
f221215400 Added translation using Weblate (Chinese (Simplified)) 2020-03-13 18:53:40 +01:00
Rodrigo Macedo
4251c4d8a3 Translated using Weblate (Portuguese (Brazil))
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/pt_BR/
2020-03-13 18:53:40 +01:00
Pedro Castro Silva
f833031d40 Translated using Weblate (Portuguese)
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/pt/
2020-03-13 18:53:40 +01:00
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